From 10152f7ac1376bacdfe5adade55dfdbbd39f408e Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Fri, 10 Nov 2023 09:27:55 -0600 Subject: ddclient: T5708: Fix VRF table generation in smoketest Ensure that the random VRF table name is 4 digits long, not 5 and stays within the the range of 100 - 65535. --- smoketest/scripts/cli/test_service_dns_dynamic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'smoketest/scripts/cli/test_service_dns_dynamic.py') diff --git a/smoketest/scripts/cli/test_service_dns_dynamic.py b/smoketest/scripts/cli/test_service_dns_dynamic.py index a3b220f69..fe213a8ae 100755 --- a/smoketest/scripts/cli/test_service_dns_dynamic.py +++ b/smoketest/scripts/cli/test_service_dns_dynamic.py @@ -297,7 +297,8 @@ class TestServiceDDNS(VyOSUnitTestSHIM.TestCase): self.assertIn(f'{hostname}', ddclient_conf) def test_07_dyndns_vrf(self): - vrf_table = "".join(random.choices(string.digits, k=5)) + # Table number randomized, but should be within range 100-65535 + vrf_table = "".join(random.choices(string.digits, k=4)) vrf_name = f'vyos-test-{vrf_table}' svc_path = ['address', interface, 'service', 'cloudflare'] -- cgit v1.2.3