From 7802af3157ed1c6eee4913bbfd75351b1cccc5c5 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Sun, 9 Jul 2023 15:53:53 +0000 Subject: T775: Config-sync bracketize IPv6 secondary address bracketize IPv6 remote address to avoid Failed to parse: https://2001:db8::2/configure-section --- src/helpers/vyos_config_sync.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/helpers/vyos_config_sync.py') 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')) -- cgit v1.2.3