diff options
Diffstat (limited to 'dhcpv6/ztpv6')
-rw-r--r-- | dhcpv6/ztpv6/parse_remote_id_test.go | 1 | ||||
-rw-r--r-- | dhcpv6/ztpv6/parse_vendor_options_test.go | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/dhcpv6/ztpv6/parse_remote_id_test.go b/dhcpv6/ztpv6/parse_remote_id_test.go index 54fccc9..3f4c02e 100644 --- a/dhcpv6/ztpv6/parse_remote_id_test.go +++ b/dhcpv6/ztpv6/parse_remote_id_test.go @@ -36,7 +36,6 @@ func TestFormatCircuitID(t *testing.T) { name string circuit *CircuitID want string - fail bool }{ {name: "empty", circuit: &CircuitID{}, want: ",,,,"}, {name: "Arista format Port/Vlan", circuit: &CircuitID{Port: "13", Vlan: "2001"}, want: ",,13,,2001"}, diff --git a/dhcpv6/ztpv6/parse_vendor_options_test.go b/dhcpv6/ztpv6/parse_vendor_options_test.go index a494fac..083866c 100644 --- a/dhcpv6/ztpv6/parse_vendor_options_test.go +++ b/dhcpv6/ztpv6/parse_vendor_options_test.go @@ -9,10 +9,10 @@ import ( func TestParseVendorData(t *testing.T) { tt := []struct { - name string - vc, hostname string - want *VendorData - fail bool + name string + vc string + want *VendorData + fail bool }{ {name: "empty", fail: true}, {name: "unknownVendor", vc: "VendorX;BFR10K;XX12345", fail: true, want: nil}, |