Skip to main content

Policy

Diagram

Classes

vxlan

NameTypeConstraintMandatoryDefault Value
policyClass[policy]No

policy (vxlan)

NameTypeConstraintMandatoryDefault Value
policiesList[policies]No
groupsList[groups]No
switchesList[switches]No

policies (vxlan.policy)

NameTypeConstraintMandatoryDefault Value
nameStringYes
template_nameStringNo
filenameStringNo
template_varsMapNo

groups (vxlan.policy)

NameTypeConstraintMandatoryDefault Value
nameStringYes
priorityIntegermin: 1, max: 1000No
policiesList[policies]No

switches (vxlan.policy)

NameTypeConstraintMandatoryDefault Value
nameStringYes
groupsListStringYes

policies (vxlan.policy.groups)

NameTypeConstraintMandatoryDefault Value
nameStringYes
priorityIntegermin: 1, max: 1000No

Examples

vxlan:
policy:
policies:
- name: alias
filename: ./data/policies/alias.cfg
# file contents:
# cli alias name wr copy run start
- name: banner
template_name: banner
template_vars:
BANNER: "VXLAN as Code Banner"
BANNERDELIMITER: "_"
TYPE: "motd"
- name: grpc feature
template_vars:
CONF: |-
feature grpc
- name: grpc config
template_name: switch_freeform
filename: ./data/policies/grpc_config.yml
# file contents:
# ---
# CONF: |-
# grpc use-vrf default
# grpc port 50051
# grpc gnmi max-concurrent-call 16
groups:
- name: server leafs
priority: 500
policies:
- name: grpc feature
priority: 50
- name: grpc config
- name: banner
- name: alias
switches:
- name: nac-leaf3
groups:
- server leafs
- name: nac-leaf4
groups:
- server leafs