-
Notifications
You must be signed in to change notification settings - Fork 13
/
nxos.yaml
188 lines (188 loc) · 5.5 KB
/
nxos.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
- match: version (?P<version>\S+)
- match: hostname (?P<hostname>\S+)
- match: (?:no )?feature lldp
name: lldp_run
action: bool
- match: ip domain name (?P<domain>\S+)
- match: ip name-server (?P<name_server>\S+)
- match: ip route (\S+) (?P<nexthop>\S+)
parent: route
- match: callhome
name: call_home
child:
- match: destination-profile (\S+) transport-method (?P<transport>\S+)
parent: profile
- match: transport http proxy server (?P<http_proxy>.*?) port (?P<proxy_port>\d+)
- match: (?:no )?enable
name: enable
action: bool
- match: vrf context (\S+)
parent: vrf
child:
- match: description (?P<description>.*)
- match: ip route (\S+) (?P<nexthop>\S+)
parent: route
- match: rd (?P<rd>\S+)
- match: address-family (\S+)
child:
- match: route-target export (?P<export>\S+)
- match: route-target import (?P<import>\S+)
- match: vlan configuration (\S+)
parent: vlan_conf
action: expand
child:
match: (?:no )?ip igmp snooping
name: igmp_snoop
action: bool
- match: vlan ([0-9-,]+)
parent: vlan
action: expand
- match: vlan (\d+)$
parent: vlan
child:
match: name (?P<name>.*)
- match: (?:no )?cdp enable
name: cdp_run
action: bool
- match: interface (\S+)
parent: interface
child:
- match: description (?P<description>.*)
- match: (?:no )?switchport$
name: switchport
action: bool
- match: switchport mode (?P<mode>\S+)
- match: switchport trunk allowed vlan (?!add)(.*)
name: allowed_vlan
action: expand
- match: switchport trunk allowed vlan add (.*)
name: allowed_vlan
action: expand
- match: switchport trunk native vlan (?P<native_vlan>\d+)
- match: switchport access vlan (?P<access_vlan>\d+)
- match: channel-group (?P<id>\d+) mode (?P<mode>\S+)
parent: channel
- match: vpc (?P<vpc>\S+)
- match: fex associate (?P<fex>\d+)
- match: spanning-tree port type (?P<stp_port_type>.*)
- match: speed (?P<speed>\d+)
- match: duplex (?P<duplex>\S+)
- match: encapsulation dot1q (?P<dot1q>\d+)
- match: ip address (?P<ipv4>\S+)
- match: vrf member (?P<vrf>\S+)
- match: bfd interval (?P<interval>\d+) min_rx (?P<min_rx>\d+) multiplier (?P<multiplier>\d+)
parent: bfd
- match: (?:no )?ip redirects
name: ipv4_redirects
action: bool
- match: (?:no )?hsrp bfd
name: bfd
action: bool
parent: hsrp
- match: hsrp version (?P<version>\d+)
parent: hsrp
- match: hsrp (\d+)
name: hsrp
child:
- match: ip (?P<ipv4>\S+)
- match: priority (?P<priority>\d+)
- match: preempt$
value: true
- match: preempt delay minimum (?P<delay_min>\d+)
parent: preempt
- match: timers (?P<hello>\d+) (?P<dead>\d+)
parent: timers
- match: ip directed-broadcast ?(?P<ipv4_dir_bcast>.*)
- match: ip dhcp relay address (\S+)
action: list
name: ipv4_dhcp_relay
- match: ip pim (?P<ip_pim>.*-mode)
- match: mtu (?P<mtu>\d+)
- match: ip access-group (?P<ingress>\S+) in
parent: ipv4_acl
- match: ip access-group (?P<egress>\S+) out
parent: ipv4_acl
- match: (?:no )?shutdown
name: shutdown
action: bool
- match: (?:no )?cdp enable
name: cdp_enable
action: bool
- match: (?:no )?lldp transmit
name: lldp_tx
action: bool
- match: (?:no )?lldp receive
name: lldp_rx
action: bool
- match: ip router ospf (\S+) area (?P<area>\S+)
parent: ospf
- match: ip ospf network (?P<network>\S+)
parent: ospf
- match: ip ospf authentication (?P<auth>\S+)
- match: (?:no )?ip ospf passive-interface
name: passive
action: bool
parent: ospf
- match: (?:no )?ipv6 redirects
name: ipv6_redirects
action: bool
- match: router ospf (?P<instance_tag>\S+)
name: ospf
child:
- match: router-id (?P<router_id>\S+)
- match: 'redistribute (\S+)(?: route-map (?P<route_map>\S+))?'
parent: redistribute
- match: passive-interface default
name: passive_default
value: true
- match: vrf (\S+)
parent: vrf
child:
- match: router-id (?P<router_id>\S+)
- match: 'redistribute (\S+)(?: route-map (?P<route_map>\S+))?'
parent: redistribute
- match: passive-interface default
name: passive_default
value: true
- match: router bgp (?P<local_as>\d+)
name: bgp
child:
- match: bgp router-id (?P<router_id>\S+)
- match: address-family (\S+)
parent: af
child:
- match: network (?P<network>.*)
- match: 'redistribute (\S+)(?: route-map (?P<route_map>\S+))?'
parent: redistribute
- match: default-information originate
name: default_originate
value: true
- match: neighbor (\S+)
parent: neighbor
child:
- match: remote-as (?P<remote_as>.*)
- match: description (?P<description>.*)
- match: address-family (\S+)
parent: af
- match: vrf (\S+)
parent: vrf
child:
- match: address-family (\S+)
parent: af
child:
- match: network (?P<network>.*)
- match: 'redistribute (\S+)(?: route-map (?P<route_map>\S+))?'
parent: redistribute
- match: default-information originate
name: default_originate
value: true
- match: neighbor (\S+)
parent: neighbor
child:
- match: (?:no )?bfd
name: bfd
action: bool
- match: remote-as (?P<remote_as>.*)
- match: description (?P<description>.*)
- match: address-family (\S+)
parent: af