diff options
author | 1vivy <1vivy@tutanota.com> | 2023-07-23 21:07:50 -0400 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-07-31 13:58:24 +0200 |
commit | 1ee3801de4fbc78bbb6cbd49719c855ec33f0f31 (patch) | |
tree | 7d5b870c3643532f3de2580aa4c7d2c5c929e3e4 /smoketest | |
parent | 1d86092328ef43368fcb0bf348c14a01466e5892 (diff) | |
download | vyos-1x-1ee3801de4fbc78bbb6cbd49719c855ec33f0f31.tar.gz vyos-1x-1ee3801de4fbc78bbb6cbd49719c855ec33f0f31.zip |
smoketest: interfaces: T5387: test dhcpv6-pd no-release flag
Diffstat (limited to 'smoketest')
-rw-r--r-- | smoketest/scripts/cli/base_interfaces_test.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/base_interfaces_test.py b/smoketest/scripts/cli/base_interfaces_test.py index b4afac0e2..a3868fa70 100644 --- a/smoketest/scripts/cli/base_interfaces_test.py +++ b/smoketest/scripts/cli/base_interfaces_test.py @@ -791,6 +791,7 @@ class BasicInterfaceTest: # Enable DHCPv6 client self.cli_set(path + ['address', 'dhcpv6']) + self.cli_set(path + ['dhcpv6-options', 'no-release']) self.cli_set(path + ['dhcpv6-options', 'rapid-commit']) self.cli_set(path + ['dhcpv6-options', 'parameters-only']) self.cli_set(path + ['dhcpv6-options', 'duid', duid]) @@ -798,6 +799,9 @@ class BasicInterfaceTest: self.cli_commit() + dhcp6c_options = read_file(f'/run/dhcp6c/dhcp6c.{interface}.options') + self.assertIn(f'-n', dhcp6c_options) + duid_base = 10 for interface in self._interfaces: duid = '00:01:00:01:27:71:db:f0:00:50:00:00:00:{}'.format(duid_base) |