summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_ospf.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode/protocols_ospf.py')
-rwxr-xr-xsrc/conf_mode/protocols_ospf.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/conf_mode/protocols_ospf.py b/src/conf_mode/protocols_ospf.py
index 32ad5e497..07e6a5860 100755
--- a/src/conf_mode/protocols_ospf.py
+++ b/src/conf_mode/protocols_ospf.py
@@ -30,7 +30,6 @@ from vyos.utils.network import get_interface_config
from vyos import ConfigError
from vyos import airbag
airbag.enable()
-frrender = FRRender()
vrf = None
if len(argv) > 1:
@@ -178,10 +177,13 @@ def verify(config_dict):
return None
def generate(config_dict):
- frrender.generate(config_dict)
+ if 'frrender_cls' not in config_dict:
+ FRRender().generate(config_dict)
+ return None
def apply(config_dict):
- frrender.apply()
+ if 'frrender_cls' not in config_dict:
+ FRRender().apply()
return None
if __name__ == '__main__':