summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-11-10 09:27:55 -0600
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-11-10 10:05:05 -0600
commit10152f7ac1376bacdfe5adade55dfdbbd39f408e (patch)
tree47d716f921c9015f657d46501bd310494841ef1a /smoketest/scripts/cli
parent1fcb8637f864e13c5208bed22f3a065b5d78f596 (diff)
downloadvyos-1x-10152f7ac1376bacdfe5adade55dfdbbd39f408e.tar.gz
vyos-1x-10152f7ac1376bacdfe5adade55dfdbbd39f408e.zip
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.
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_service_dns_dynamic.py3
1 files changed, 2 insertions, 1 deletions
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']