summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_dhcp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_dhcp.py b/test/test_dhcp.py
index 175f6493eb7..5d9c89d5f38 100644
--- a/test/test_dhcp.py
+++ b/test/test_dhcp.py
@@ -242,6 +242,7 @@ class TestDHCP(VppTestCase):
self.verify_dhcp_msg_type(pkt, "discover")
self.verify_dhcp_has_option(pkt, "hostname", hostname)
if client_id:
+ client_id = '\x00' + client_id
self.verify_dhcp_has_option(pkt, "client_id", client_id)
bootp = pkt[BOOTP]
self.assertEqual(bootp.ciaddr, "0.0.0.0")