summaryrefslogtreecommitdiff
path: root/python/vyos/frr.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-11-27 10:32:01 +0100
committerChristian Poessinger <christian@poessinger.com>2021-11-27 10:32:01 +0100
commita6dcf706f925c11b3de4666fa2264c2d13863f12 (patch)
tree0a6d7ec5370603eadcd5b6567ab51e36fa8f0466 /python/vyos/frr.py
parentc65ee39e28422785734fd736eb15727ae9228b5a (diff)
downloadvyos-1x-a6dcf706f925c11b3de4666fa2264c2d13863f12.tar.gz
vyos-1x-a6dcf706f925c11b3de4666fa2264c2d13863f12.zip
vyos.frr: T3753: use "!" as replacement character over ""
Diffstat (limited to 'python/vyos/frr.py')
-rw-r--r--python/vyos/frr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/frr.py b/python/vyos/frr.py
index 2e515a9e4..119ea8b50 100644
--- a/python/vyos/frr.py
+++ b/python/vyos/frr.py
@@ -459,7 +459,7 @@ class FRRConfig:
LOG.debug(f'commit_configuration: new_config {i:3} {e}')
reload_configuration('\n'.join(self.config), daemon=daemon)
- def modify_section(self, start_pattern, replacement=[], stop_pattern=r'\S+', remove_stop_mark=False, count=0):
+ def modify_section(self, start_pattern, replacement='!', stop_pattern=r'\S+', remove_stop_mark=False, count=0):
if isinstance(replacement, str):
replacement = replacement.split('\n')
elif not isinstance(replacement, list):