daemon: added proper checks for FRRService calls
This commit is contained in:
parent
3638b05cd1
commit
19af9c3f51
1 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,8 @@ class FRRZebra(CoreService):
|
|||
for s in node.services:
|
||||
if cls.name not in s.dependencies:
|
||||
continue
|
||||
if not (isinstance(s, FrrService) or issubclass(s, FrrService)):
|
||||
continue
|
||||
iface_config = s.generate_frr_iface_config(node, iface)
|
||||
if s.ipv4_routing:
|
||||
want_ipv4 = True
|
||||
|
@ -101,6 +103,8 @@ class FRRZebra(CoreService):
|
|||
for s in node.services:
|
||||
if cls.name not in s.dependencies:
|
||||
continue
|
||||
if not (isinstance(s, FrrService) or issubclass(s, FrrService)):
|
||||
continue
|
||||
cfg += s.generate_frr_config(node)
|
||||
return cfg
|
||||
|
||||
|
|
Loading…
Reference in a new issue