diff options
author | Dave Barach <dave@barachs.net> | 2019-11-13 17:12:47 -0500 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2019-11-13 17:13:26 -0500 |
commit | 211b9f6ad3e2c4d1b54e85cebf062571ced969b2 (patch) | |
tree | c1e33f513e7e494617af77e39a7b276ebdf3cac3 /src/plugins/dhcp/test/test_dhcp.py | |
parent | d9ca7c9604aa67c6eb9ec3b25e3903918555b816 (diff) |
dhcp: option 61 add missing type field
Apparently some dhcp servers care about it. Also fixed the unit-test.
Type: fix
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: If0af70d624f4122b0339f20f84be047053776fe8
Diffstat (limited to 'src/plugins/dhcp/test/test_dhcp.py')
-rw-r--r-- | src/plugins/dhcp/test/test_dhcp.py | 1 |
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] |