Files
.github
config
docs
intest
unittest
yaml
correct-address.yaml
correct-bondethernet.yaml
correct-bridgedomain.yaml
correct-empty.yaml
correct-empty2.yaml
correct-example1.yaml
correct-l2xc.yaml
correct-loopback.yaml
correct-tap.yaml
correct-vxlan.yaml
error-address1.yaml
error-bondethernet1.yaml
error-bondethernet2.yaml
error-bondethernet3.yaml
error-bondethernet4.yaml
error-bondethernet5.yaml
error-bondethernet6.yaml
error-bondethernet7.yaml
error-bondethernet8.yaml
error-bondethernet9.yaml
error-bridgedomain1.yaml
error-bridgedomain2.yaml
error-bridgedomain3.yaml
error-bridgedomain4.yaml
error-bridgedomain5.yaml
error-bridgedomain6.yaml
error-bridgedomain7.yaml
error-bridgedomain8.yaml
error-bridgedomain9.yaml
error-interface-mtu1.yaml
error-interface-mtu2.yaml
error-interface1.yaml
error-l2xc1.yaml
error-l2xc2.yaml
error-l2xc3.yaml
error-l2xc4.yaml
error-l2xc5.yaml
error-l2xc6.yaml
error-l2xc7.yaml
error-l2xc8.yaml
error-lcp-unique1.yaml
error-lcp-unique2.yaml
error-loopback1.yaml
error-loopback2.yaml
error-schema-field1.yaml
error-schema-field2.yaml
error-subinterface1.yaml
error-subinterface2.yaml
error-subinterface3.yaml
error-subinterface6.yaml
error-subinterface7.yaml
error-subinterface8.yaml
error-subinterface9.yaml
error-tap1.yaml
error-tap2.yaml
error-tap3.yaml
error-tap4.yaml
error-tap5.yaml
error-tap6.yaml
error-vxlan1.yaml
error-vxlan2.yaml
error-vxlan3.yaml
test_bondethernet.yaml
test_bridgedomain.yaml
test_interface.yaml
test_lcp.yaml
test_loopback.yaml
test_tap.yaml
test_vxlan_tunnel.yaml
vpp
.gitignore
.pylintrc
LICENSE
README.md
example.yaml
schema.yaml
tests.py
vppcfg
vppcfg.spec
vppcfg/unittest/yaml/error-interface1.yaml
Pim van Pelt 92a20d0755 Add a few MAC checks
Notably mac.is_multicast() which is needed for TAPs / LCPs and
interfaces.

Add a test for interface MAC addresses being non-multicast.
2022-04-09 15:15:00 +00:00

18 lines
473 B
YAML

test:
description: "Interface mac addresses cannot be multicast"
errors:
expected:
- "interface .* MAC address .* cannot be multicast"
count: 1
---
interfaces:
GigabitEthernet3/0/0:
description: "Cool, local MACs are fine"
mac: 02:00:00:00:00:00
GigabitEthernet3/0/1:
description: "Cool, global unicast MACs are fine"
mac: 04:00:00:00:00:00
GigabitEthernet3/0/2:
description: "Not cool, multicast MACs"
mac: 01:00:00:00:00:00