summaryrefslogtreecommitdiff
path: root/src/conf_mode/high-availability.py
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-06 09:28:59 +0000
commitb658f601f03f67ed311cfa0c6fcdb15d2dc21ca7 (patch)
treee04be75f4a8972b98cf692dd8c8405cee72d3df2 /src/conf_mode/high-availability.py
parent435af27787160079cc4074c1257ba7191bc60380 (diff)
downloadvyos-1x-b658f601f03f67ed311cfa0c6fcdb15d2dc21ca7.tar.gz
vyos-1x-b658f601f03f67ed311cfa0c6fcdb15d2dc21ca7.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. (cherry picked from commit 5f2926cf04e8a569bb25cd4121179d12b9e04c6c)
Diffstat (limited to 'src/conf_mode/high-availability.py')
-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 0121df11c..2bfae4f3e 100755
--- a/src/conf_mode/high-availability.py
+++ b/src/conf_mode/high-availability.py
@@ -176,7 +176,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']