summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-09-05 20:36:04 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-09-05 20:36:04 +0000
commit5f2926cf04e8a569bb25cd4121179d12b9e04c6c (patch)
treedbfe845c771900fba68eb1090148c2d8b28ba29c
parent5ae730a52de2f284e45cd433bb0cf66c8508f2f7 (diff)
downloadvyos-1x-5f2926cf04e8a569bb25cd4121179d12b9e04c6c.tar.gz
vyos-1x-5f2926cf04e8a569bb25cd4121179d12b9e04c6c.zip
T5533: Fix for vrrp dict key if virtual-server is used
When using `virtual-server` alongside Keepalived, there can be situations where the `vrrp` key is completely unused.
-rwxr-xr-xsrc/conf_mode/high-availability.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/high-availability.py b/src/conf_mode/high-availability.py
index e24670417..70f43ab52 100755
--- a/src/conf_mode/high-availability.py
+++ b/src/conf_mode/high-availability.py
@@ -188,7 +188,7 @@ def apply(ha):
return None
# Check if IPv6 address is tentative T5533
- for group, group_config in ha['vrrp']['group'].items():
+ for group, group_config in ha.get('vrrp', {}).get('group', {}).items():
if 'hello_source_address' in group_config:
if is_ipv6(group_config['hello_source_address']):
ipv6_address = group_config['hello_source_address']