A few small refactors, using get_by_name() more, casting boolean return values, etc

This commit is contained in:
Pim van Pelt
2022-03-16 22:20:51 +00:00
parent 252fa989b2
commit ccfb51189a
3 changed files with 26 additions and 73 deletions

View File

@ -39,9 +39,7 @@ def vni_unique(yaml, vni):
if iface['vni'] == vni:
ncount = ncount + 1
if ncount > 1:
return False
return True
return ncount < 2
def validate_vxlan_tunnels(yaml):