Enforce that when a bridgedomain has an address (ie a BVI), that it must also have an LCP

This commit is contained in:
Pim van Pelt
2022-03-13 19:32:30 +00:00
parent 8825984d49
commit 0d8a28cadd
3 changed files with 23 additions and 10 deletions

View File

@ -0,0 +1,19 @@
test:
description: "A bridgedomain with a BVI address must have an LCP"
errors:
expected:
- "bridgedomain .* has an address but no LCP"
count: 1
---
interfaces:
GigabitEthernet1/0/0:
mtu: 3000
GigabitEthernet1/0/1:
mtu: 3000
bridgedomains:
bd13:
description: "Bridge Domain 13, address but no LCP"
mtu: 3000
interfaces: [ GigabitEthernet1/0/0, GigabitEthernet1/0/0 ]
addresses: [ 192.0.2.9/29, 2001:db8:1::1/64 ]