summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_ha_vrrp.py
diff options
context:
space:
mode:
authorfett0 <fernando.gmaidana@gmail.com>2023-01-19 18:24:14 +0000
committerfett0 <fernando.gmaidana@gmail.com>2023-01-19 18:24:14 +0000
commited0da146529c5a38c32ac346335138baab428bac (patch)
tree6c91e12821e41c7ac69a093549f609bf531cbf23 /smoketest/scripts/cli/test_ha_vrrp.py
parent08949c6e85c6fe02bd702894748b41d600ee7d01 (diff)
downloadvyos-1x-ed0da146529c5a38c32ac346335138baab428bac.tar.gz
vyos-1x-ed0da146529c5a38c32ac346335138baab428bac.zip
T4939: VRRP startup delay for bonding fix
Diffstat (limited to 'smoketest/scripts/cli/test_ha_vrrp.py')
-rwxr-xr-xsmoketest/scripts/cli/test_ha_vrrp.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_ha_vrrp.py b/smoketest/scripts/cli/test_ha_vrrp.py
index 68905e447..fba1f4687 100755
--- a/smoketest/scripts/cli/test_ha_vrrp.py
+++ b/smoketest/scripts/cli/test_ha_vrrp.py
@@ -87,11 +87,13 @@ class TestVRRP(VyOSUnitTestSHIM.TestCase):
advertise_interval = '77'
priority = '123'
preempt_delay = '400'
+ startup_delay = '120'
for group in groups:
vlan_id = group.lstrip('VLAN')
vip = f'100.64.{vlan_id}.1/24'
group_base = base_path + ['vrrp', 'group', group]
+ global_param_base = base_path + ['vrrp', 'global-parameters']
self.cli_set(['interfaces', 'ethernet', vrrp_interface, 'vif', vlan_id, 'address', inc_ip(vip, 1) + '/' + vip.split('/')[-1]])
@@ -110,6 +112,10 @@ class TestVRRP(VyOSUnitTestSHIM.TestCase):
self.cli_set(group_base + ['authentication', 'type', 'plaintext-password'])
self.cli_set(group_base + ['authentication', 'password', f'{group}'])
+ # Global parameters
+ config = getConfig(f'global_defs')
+ self.cli_set(global_param_base + ['startup-delay', f'{startup_delay}'])
+
# commit changes
self.cli_commit()