summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-30 16:38:04 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-30 16:38:04 +0200
commit22eb02d2a362d30d8f3f6f1df13c59daea0eba25 (patch)
tree693690dbc2883f898e8ed9e9c25e05408cc49ab2 /scripts
parent3db596c271c37a382fb703dbf8a268dc639dcd9c (diff)
downloadvyos-1x-22eb02d2a362d30d8f3f6f1df13c59daea0eba25.tar.gz
vyos-1x-22eb02d2a362d30d8f3f6f1df13c59daea0eba25.zip
interfaces: pppoe: add IPv6 tests
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cli/test_interfaces_pppoe.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/cli/test_interfaces_pppoe.py b/scripts/cli/test_interfaces_pppoe.py
index 0ad50a2bc..3c11da795 100755
--- a/scripts/cli/test_interfaces_pppoe.py
+++ b/scripts/cli/test_interfaces_pppoe.py
@@ -108,6 +108,7 @@ class PPPoEInterfaceTest(unittest.TestCase):
self.session.set(base_path + [interface, 'default-route', 'none'])
self.session.set(base_path + [interface, 'no-peer-dns'])
self.session.set(base_path + [interface, 'source-interface', self._source_interface])
+ self.session.set(base_path + [interface, 'ipv6', 'enable'])
# prefix delegation stuff
dhcpv6_pd_base = base_path + [interface, 'dhcpv6-options', 'prefix-delegation']
@@ -127,6 +128,10 @@ class PPPoEInterfaceTest(unittest.TestCase):
tmp = get_config_value(interface, 'password')[1].replace('"', '')
self.assertTrue(tmp in 'vyos')
+ for param in ['+ipv6', 'ipv6cp-use-ipaddr']:
+ tmp = get_config_value(interface, param)[0]
+ self.assertTrue(tmp in param)
+
# verify DHCPv6 prefix delegation
# will return: ['delegation', '::/56 infinity;']
tmp = get_dhcp6c_config_value(interface, 'prefix')[1].split()[0] # mind the whitespace