diff options
Diffstat (limited to 'dhcpv4/ztp/ztp_test.go')
-rw-r--r-- | dhcpv4/ztp/ztp_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dhcpv4/ztp/ztp_test.go b/dhcpv4/ztp/ztp_test.go index 3fdb951..15a9d26 100644 --- a/dhcpv4/ztp/ztp_test.go +++ b/dhcpv4/ztp/ztp_test.go @@ -39,8 +39,6 @@ func TestParseV4VendorClass(t *testing.T) { want: &VendorData{VendorName: "Juniper", Model: "qfx10008", Serial: "DE123"}, }, {name: "juniperNoSerial", vc: "Juniper-qfx10008", fail: true}, - {name: "juniperInvalid", vc: "Juniper-", fail: true}, - {name: "juniperInvalid2", vc: "Juniper-qfx99999-", fail: true}, { name: "zpe", vc: "ZPESystems:NSC:001234567", @@ -65,7 +63,7 @@ func TestParseV4VendorClass(t *testing.T) { }) } - vd, err := parseV4VendorClass(packet) + vd, err := ParseVendorData(packet) if tc.fail { require.Error(t, err) } else { |