diff options
author | Brandon Stepler <brandon@stepler.net> | 2021-06-30 13:10:00 -0400 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-06-30 20:09:32 +0200 |
commit | cef8147afd1d031c91cc90b7642aad8ae372c81b (patch) | |
tree | b867f0c8273d6031ba52c422aa51c93e706caf20 /smoketest | |
parent | 35b2fbbf7dc9df94cca7d61acb29e0ec35854176 (diff) | |
download | vyos-1x-cef8147afd1d031c91cc90b7642aad8ae372c81b.tar.gz vyos-1x-cef8147afd1d031c91cc90b7642aad8ae372c81b.zip |
dhcpdv6: T3658: add support for dhcpdv6 fixed-prefix6
(cherry picked from commit 2318c874c4ec43076c2664e473f7273928d9f2a6)
Diffstat (limited to 'smoketest')
-rwxr-xr-x | smoketest/scripts/cli/test_service_dhcpv6-server.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_service_dhcpv6-server.py b/smoketest/scripts/cli/test_service_dhcpv6-server.py index 63c21866d..f97c7963f 100755 --- a/smoketest/scripts/cli/test_service_dhcpv6-server.py +++ b/smoketest/scripts/cli/test_service_dhcpv6-server.py @@ -89,6 +89,7 @@ class TestServiceDHCPServer(unittest.TestCase): cid = '00:01:00:01:12:34:56:78:aa:bb:cc:dd:ee:{}'.format(client_base) self.session.set(pool + ['static-mapping', client, 'identifier', cid]) self.session.set(pool + ['static-mapping', client, 'ipv6-address', inc_ip(subnet, client_base)]) + self.session.set(pool + ['static-mapping', client, 'ipv6-prefix', inc_ip(subnet, client_base << 64) + '/64']) client_base += 1 # commit changes @@ -117,8 +118,10 @@ class TestServiceDHCPServer(unittest.TestCase): for client in ['client1', 'client2', 'client3']: cid = '00:01:00:01:12:34:56:78:aa:bb:cc:dd:ee:{}'.format(client_base) ip = inc_ip(subnet, client_base) + prefix = inc_ip(subnet, client_base << 64) + '/64' self.assertIn(f'host {shared_net_name}_{client}' + ' {', config) self.assertIn(f'fixed-address6 {ip};', config) + self.assertIn(f'fixed-prefix6 {prefix};', config) self.assertIn(f'host-identifier option dhcp6.client-id {cid};', config) client_base += 1 |