A few small refactors, using get_by_name() more, casting boolean return values, etc
This commit is contained in:
@ -32,6 +32,4 @@ def is_unique(yaml, lcpname):
|
||||
for ifname, iface in yaml['bridgedomains'].items():
|
||||
if 'lcp' in iface and iface['lcp'] == lcpname:
|
||||
ncount = ncount + 1
|
||||
if ncount > 1:
|
||||
return False
|
||||
return True
|
||||
return ncount < 2
|
||||
|
Reference in New Issue
Block a user