summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_isis.py
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2020-11-16 09:21:37 +0000
committersever-sever <v.gletenko@vyos.io>2020-11-30 10:56:08 +0000
commit732938ad3410b3dce4a49ef6cf16723c4ac04000 (patch)
tree1adac8493c2da66fc17096730481905736c1ffa2 /src/conf_mode/protocols_isis.py
parent4dc93212f77c00433330f5e90d4c5383c883f644 (diff)
downloadvyos-1x-732938ad3410b3dce4a49ef6cf16723c4ac04000.tar.gz
vyos-1x-732938ad3410b3dce4a49ef6cf16723c4ac04000.zip
frr-is-is: T1316: Add new routing feature IS-IS
Diffstat (limited to 'src/conf_mode/protocols_isis.py')
-rwxr-xr-xsrc/conf_mode/protocols_isis.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/conf_mode/protocols_isis.py b/src/conf_mode/protocols_isis.py
index d5e5b64fb..b0b8d705b 100755
--- a/src/conf_mode/protocols_isis.py
+++ b/src/conf_mode/protocols_isis.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2017-2020 VyOS maintainers and contributors
+# Copyright (C) 2020 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -106,9 +106,6 @@ def generate(isis):
process = list(isis.keys())[0]
isis[process]['process'] = process
- import pprint
- pprint.pprint(isis[process])
-
# render(config) not needed, its only for debug
render(config_file, 'frr/isis.frr.tmpl', isis[process], trim_blocks=True)
@@ -122,15 +119,16 @@ def apply(isis):
# Save original configration prior to starting any commit actions
frr_cfg = {}
frr_cfg['original_config'] = frr.get_configuration(daemon='isisd')
- frr_cfg['modified_config'] = frr.replace_section(frr_cfg['original_config'], isis['new_frr_config'], from_re='router isis .*')
+ frr_cfg['modified_config'] = frr.replace_section(frr_cfg['original_config'], isis['new_frr_config'], from_re='interface .*')
# Debugging
+ '''
print('')
print('--------- DEBUGGING ----------')
print(f'Existing config:\n{frr_cfg["original_config"]}\n\n')
print(f'Replacement config:\n{isis["new_frr_config"]}\n\n')
print(f'Modified config:\n{frr_cfg["modified_config"]}\n\n')
-
+ '''
# FRR mark configuration will test for syntax errors and throws an
# exception if any syntax errors is detected
frr.mark_configuration(frr_cfg['modified_config'])