Files
config
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-vxlan.yaml
error-address1.yaml
error-bondethernet1.yaml
error-bondethernet2.yaml
error-bondethernet3.yaml
error-bondethernet4.yaml
error-bridgedomain1.yaml
error-bridgedomain2.yaml
error-bridgedomain3.yaml
error-bridgedomain4.yaml
error-bridgedomain5.yaml
error-bridgedomain6.yaml
error-bridgedomain7.yaml
error-interface-mtu1.yaml
error-interface-mtu2.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-schema-field1.yaml
error-schema-field2.yaml
error-subinterface1.yaml
error-subinterface2.yaml
error-subinterface3.yaml
error-subinterface5.yaml
error-subinterface6.yaml
error-subinterface7.yaml
error-subinterface8.yaml
error-vxlan1.yaml
error-vxlan2.yaml
test_bondethernet.yaml
test_bridgedomain.yaml
test_interface.yaml
test_lcp.yaml
test_loopback.yaml
test_vxlan_tunnel.yaml
vpp
.gitignore
LICENSE
README.md
example.yaml
schema.yaml
tests.py
vppcfg
vppcfg.spec
vppcfg/unittest/yaml/error-subinterface3.yaml
2022-03-22 18:49:31 +00:00

40 lines
1.1 KiB
YAML

test:
description: "Children with an LCP require their parent to have one too"
errors:
expected:
- "sub-interface .* has LCP name .* but .* does not have an LCP"
- "sub-interface .* is QinX and has LCP name .* but .* does not have an LCP"
- "sub-interface .* has LCP name .* but its encapsulation is not exact-match"
- "sub-interface .* has invalid encapsulation"
count: 4
---
interfaces:
GigabitEthernet1/0/0:
sub-interfaces:
100:
lcp: "e0.100"
description: "VLAN 100 has an LCP, but Gi1/0/0 does not"
GigabitEthernet1/0/1:
lcp: "e1"
sub-interfaces:
100:
description: "VLAN 100"
101:
description: "QinQ 101 has an LCP but VLAN 100 does not"
encapsulation:
dot1q: 100
inner-dot1q: 100
exact-match: True
lcp: "e1.100.100"
GigabitEthernet1/0/2:
lcp: "e2"
sub-interfaces:
100:
description: "Sub-interfaces must be exact-match in order to have an LCP"
encapsulation:
dot1q: 100
exact-match: False
lcp: "e2.100"