diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-11-27 10:32:01 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-11-27 10:32:01 +0100 |
commit | a6dcf706f925c11b3de4666fa2264c2d13863f12 (patch) | |
tree | 0a6d7ec5370603eadcd5b6567ab51e36fa8f0466 /python/vyos/frr.py | |
parent | c65ee39e28422785734fd736eb15727ae9228b5a (diff) | |
download | vyos-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.py | 2 |
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): |