Add a set of bridgedomain unit tests, including a fully formed correct one. Fix one bug found along the way!

This commit is contained in:
Pim van Pelt
2022-03-13 18:55:00 +00:00
parent 6ce6718b34
commit 527b1ca95b
6 changed files with 131 additions and 1 deletions

View File

@ -215,7 +215,7 @@ def get_lcp(yaml, ifname):
return iface['lcp']
if not is_l3(yaml, ifname):
return None
if not 'lcp' in parent_iface:
if parent_iface and not 'lcp' in parent_iface:
return None
if not 'encapsulation' in iface:
if not '.' in ifname: