Ensure that when the sub-int is L3, exact-match must be true
This commit is contained in:
@ -124,6 +124,8 @@ def valid_encapsulation(yaml, sub_ifname):
|
|||||||
return False
|
return False
|
||||||
if 'inner-dot1q' in encap and not ('dot1ad' in encap or 'dot1q' in encap):
|
if 'inner-dot1q' in encap and not ('dot1ad' in encap or 'dot1q' in encap):
|
||||||
return False
|
return False
|
||||||
|
if 'exact-match' in encap and encap['exact-match'] == False and is_l3(yaml, sub_ifname):
|
||||||
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user