Add validator to ensure that bridgedomain interfaces occur in at most one bridgedomain. Ironically, this caught a bug in the bridgedomain5 test, where Gi1/0/0 was added twice.

This commit is contained in:
Pim van Pelt
2022-03-15 19:48:32 +00:00
parent 9d8c201a06
commit b9a7bb697e
4 changed files with 71 additions and 2 deletions

View File

@ -67,6 +67,10 @@ def validate_bridgedomains(yaml):
result = False
continue
if not interface.is_bridge_interface_unique(yaml, member):
msgs.append("bridgedomain %s member %s is not unique" % (ifname, member))
result = False
if interface.has_lcp(yaml, member):
msgs.append("bridgedomain %s member %s has an LCP" % (ifname, member))
result = False