daemon: removed usages of getattr and hasattr where possible
This commit is contained in:
parent
6ef458fc74
commit
c2a40dbb6b
9 changed files with 30 additions and 28 deletions
|
@ -103,8 +103,7 @@ class FRRZebra(ConfigService):
|
|||
ip4s.append(str(ip4.ip))
|
||||
for ip6 in iface.ip6s:
|
||||
ip6s.append(str(ip6.ip))
|
||||
is_control = getattr(iface, "control", False)
|
||||
ifaces.append((iface, ip4s, ip6s, is_control))
|
||||
ifaces.append((iface, ip4s, ip6s, iface.control))
|
||||
|
||||
return dict(
|
||||
frr_conf=frr_conf,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue