diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-09-05 20:36:04 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-09-05 20:36:04 +0000 |
commit | 5f2926cf04e8a569bb25cd4121179d12b9e04c6c (patch) | |
tree | dbfe845c771900fba68eb1090148c2d8b28ba29c /src/conf_mode | |
parent | 5ae730a52de2f284e45cd433bb0cf66c8508f2f7 (diff) | |
download | vyos-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.
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/high-availability.py | 2 |
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'] |