daemon: added proper checks for FRRService calls

This commit is contained in:
Blake Harnden 2020-06-19 11:18:39 -07:00
parent 3638b05cd1
commit 19af9c3f51

View file

@ -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