summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_rpki.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode/protocols_rpki.py')
-rwxr-xr-xsrc/conf_mode/protocols_rpki.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/conf_mode/protocols_rpki.py b/src/conf_mode/protocols_rpki.py
index c75f95860..33696a742 100755
--- a/src/conf_mode/protocols_rpki.py
+++ b/src/conf_mode/protocols_rpki.py
@@ -30,7 +30,6 @@ from vyos.utils.file import write_file
from vyos import ConfigError
from vyos import airbag
airbag.enable()
-frrender = FRRender()
rpki_ssh_key_base = '/run/frr/id_rpki'
@@ -95,11 +94,13 @@ def generate(config_dict):
write_file(cache_config['ssh']['public_key_file'], wrap_openssh_public_key(public_key_data, public_key_type))
write_file(cache_config['ssh']['private_key_file'], wrap_openssh_private_key(private_key_data))
- 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__':