summaryrefslogtreecommitdiffstats
path: root/src/plugins/dhcp/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/dhcp/test')
-rw-r--r--src/plugins/dhcp/test/test_dhcp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/dhcp/test/test_dhcp.py b/src/plugins/dhcp/test/test_dhcp.py
index 6435d7fd6f7..14e20c419b0 100644
--- a/src/plugins/dhcp/test/test_dhcp.py
+++ b/src/plugins/dhcp/test/test_dhcp.py
@@ -251,6 +251,7 @@ class TestDHCP(VppTestCase):
self.verify_dhcp_has_option(pkt, "hostname",
hostname.encode('ascii'))
if client_id:
+ client_id = '\x00' + client_id
self.verify_dhcp_has_option(pkt, "client_id",
client_id.encode('ascii'))
bootp = pkt[BOOTP]