Policy
Diagram
Classes
vxlan
Name | Type | Constraint | Mandatory | Default Value |
---|---|---|---|---|
policy | Class | [policy] | No |
policy (vxlan)
Name | Type | Constraint | Mandatory | Default Value |
---|---|---|---|---|
policies | List | [policies] | No | |
groups | List | [groups] | No | |
switches | List | [switches] | No |
policies (vxlan.policy)
Name | Type | Constraint | Mandatory | Default Value |
---|---|---|---|---|
name | String | Yes | ||
template_name | String | No | ||
filename | String | No | ||
template_vars | Map | No |
groups (vxlan.policy)
Name | Type | Constraint | Mandatory | Default Value |
---|---|---|---|---|
name | String | Yes | ||
priority | Integer | min: 1 , max: 1000 | No | |
policies | List | [policies] | No |
switches (vxlan.policy)
Name | Type | Constraint | Mandatory | Default Value |
---|---|---|---|---|
name | String | Yes | ||
groups | List | String | Yes |
policies (vxlan.policy.groups)
Name | Type | Constraint | Mandatory | Default Value |
---|---|---|---|---|
name | String | Yes | ||
priority | Integer | min: 1 , max: 1000 | No |
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