summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-11-10 09:27:55 -0600
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-11-30 21:42:24 -0600
commit2bbf6253038f1751b9b1776a8938c85135ffdca5 (patch)
tree431fb47de2ba7fdcc958fb4b0bae12d58544daf7 /smoketest/scripts
parent7092d85ea7d949e65655debe531e17a2220889ad (diff)
downloadvyos-1x-2bbf6253038f1751b9b1776a8938c85135ffdca5.tar.gz
vyos-1x-2bbf6253038f1751b9b1776a8938c85135ffdca5.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')
-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']