Add the beginning of a test_qinx() suite, will complete after a refactor in an upcoming commit

This commit is contained in:
Pim van Pelt
2022-03-20 23:32:59 +00:00
parent e44db47989
commit 5247e3a241
4 changed files with 17 additions and 5 deletions

View File

@ -42,9 +42,9 @@ def get_qinx_parent_by_name(yaml, ifname):
if not sub_encap:
continue
if qinx_encap['dot1q'] > 0 and sub_encap['dot1q'] == qinx_encap['dot1q']:
return sub_ifname
return sub_iface
if qinx_encap['dot1ad'] > 0 and sub_encap['dot1ad'] == qinx_encap['dot1ad']:
return sub_ifname
return sub_iface
return None