summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-07-09 20:49:02 +0200
committerGitHub <noreply@github.com>2023-07-09 20:49:02 +0200
commitc17167338fa209238fb8d160cbe59077fe75625b (patch)
tree6846d613edf9f56b2c96110b792dfb8b51d604a7 /src
parent00f95c93b6c3aca25d5f4ba0e29b4f8db954952c (diff)
parent7802af3157ed1c6eee4913bbfd75351b1cccc5c5 (diff)
downloadvyos-1x-c17167338fa209238fb8d160cbe59077fe75625b.tar.gz
vyos-1x-c17167338fa209238fb8d160cbe59077fe75625b.zip
Merge pull request #2082 from sever-sever/T775-v6
T775: Config-sync bracketize IPv6 secondary address
Diffstat (limited to 'src')
-rwxr-xr-xsrc/helpers/vyos_config_sync.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/helpers/vyos_config_sync.py b/src/helpers/vyos_config_sync.py
index 6e66a6be0..7cfa8fe88 100755
--- a/src/helpers/vyos_config_sync.py
+++ b/src/helpers/vyos_config_sync.py
@@ -24,6 +24,7 @@ import logging
from typing import Optional, List, Union, Dict, Any
from vyos.config import Config
+from vyos.template import bracketize_ipv6
CONFIG_FILE = '/run/config_sync_conf.conf'
@@ -175,6 +176,7 @@ if __name__ == '__main__':
mode = config.get('mode')
secondary_address = config.get('secondary', {}).get('address')
+ secondary_address = bracketize_ipv6(secondary_address)
secondary_key = config.get('secondary', {}).get('key')
sections = config.get('section')
timeout = int(config.get('secondary', {}).get('timeout'))