diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2021-08-10 07:48:32 +0100 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2021-10-26 14:51:28 +0200 |
commit | ad197bcd36fd5fde44d2eacc50c5aa7aef87a742 (patch) | |
tree | 18ea982692e684dc474ddb1b503028ef16c29674 /dhcpv4/ztpv4/ztp_test.go | |
parent | 94de7a00bf095cb550525eb3744e56e1f3dc4899 (diff) |
use iana EntID
Diffstat (limited to 'dhcpv4/ztpv4/ztp_test.go')
-rw-r--r-- | dhcpv4/ztpv4/ztp_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dhcpv4/ztpv4/ztp_test.go b/dhcpv4/ztpv4/ztp_test.go index 5fa3f40..5d8ae8d 100644 --- a/dhcpv4/ztpv4/ztp_test.go +++ b/dhcpv4/ztpv4/ztp_test.go @@ -95,19 +95,19 @@ func TestParseVIVC(t *testing.T) { tt := []struct { name string vivc string - entID iana.EntID + entID iana.EnterpriseID want *VendorData fail bool }{ { name: "cisco", - entID: iana.EntIDCiscoSystems, + entID: iana.EnterpriseIDCiscoSystems, vivc: "SN:0;PID:R-IOSXRV9000-CC", want: &VendorData{VendorName: "Cisco Systems", Model: "R-IOSXRV9000-CC", Serial: "0"}, }, { name: "ciscoMultipleColonDelimiters", - entID: iana.EntIDCiscoSystems, + entID: iana.EnterpriseIDCiscoSystems, vivc: "SN:0:123;PID:R-IOSXRV9000-CC:456", fail: true, }, @@ -121,7 +121,7 @@ func TestParseVIVC(t *testing.T) { } if tc.vivc != "" { - vivc := dhcpv4.VIVCIdentifier{EntID: uint32(tc.entID), Data: []byte(tc.vivc)} + vivc := dhcpv4.VIVCIdentifier{EntID: tc.entID, Data: []byte(tc.vivc)} packet.UpdateOption(dhcpv4.OptVIVC(vivc)) } |