diff options
| author | Daniil Baturin <daniil@vyos.io> | 2026-01-22 16:56:47 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-22 16:56:47 +0000 |
| commit | 0a619674e6ce46add5d1573399179c0d8e29456c (patch) | |
| tree | 9c5434910ace817cf4deb237ef0a7093541b6c20 /smoketest/scripts/cli | |
| parent | 41aa42fec49399a3cee7c772d2799b1c17490401 (diff) | |
| parent | f8a68122f3b4738a2a1bd1526ed3c9b8961d050d (diff) | |
| download | vyos-1x-0a619674e6ce46add5d1573399179c0d8e29456c.tar.gz vyos-1x-0a619674e6ce46add5d1573399179c0d8e29456c.zip | |
Merge pull request #4942 from natali-rs1985/T8125
vpp: T8125: Enable ip4-dhcp-client-detect feature if interface address is configured as DHCP
Diffstat (limited to 'smoketest/scripts/cli')
| -rwxr-xr-x | smoketest/scripts/cli/test_vpp.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_vpp.py b/smoketest/scripts/cli/test_vpp.py index a5c7ab873..16295a932 100755 --- a/smoketest/scripts/cli/test_vpp.py +++ b/smoketest/scripts/cli/test_vpp.py @@ -140,6 +140,7 @@ class TestVPP(VyOSUnitTestSHIM.TestCase): 'plugin default { disable }', 'plugin dpdk_plugin.so { enable }', 'plugin linux_cp_plugin.so { enable }', + 'plugin dhcp_plugin.so { enable }', 'dev 0000:00:00.0', 'uio-bind-force', ) @@ -176,6 +177,14 @@ class TestVPP(VyOSUnitTestSHIM.TestCase): self.cli_delete(['interfaces', 'ethernet', interface, 'mtu']) self.cli_commit() + # set interface address as dhcp + self.cli_set(['interfaces', 'ethernet', interface, 'address', 'dhcp']) + self.cli_commit() + + # check 'ip4-dhcp-client-detect' feature is enabled on interface + _, out = rc_cmd(f'sudo vppctl show interface features {interface}') + self.assertIn(f'ip4-dhcp-client-detect', out) + def test_02_vpp_vxlan(self): vni = '23' interface_vxlan = f'vxlan{vni}' |
