Skip to content

Commit

Permalink
smoketest: interfaces: T5387: test dhcpv6-pd no-release flag
Browse files Browse the repository at this point in the history
  • Loading branch information
1vivy authored and c-po committed Jul 31, 2023
1 parent 1d86092 commit 1ee3801
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions smoketest/scripts/cli/base_interfaces_test.py
Expand Up @@ -791,13 +791,17 @@ def test_dhcpv6_client_options(self):

# 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])
duid_base += 1

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)
Expand Down

0 comments on commit 1ee3801

Please sign in to comment.