summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/ztpv4/ztp_test.go
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2021-10-26 09:13:03 +0100
committerinsomniac <insomniacslk@users.noreply.github.com>2021-10-26 12:15:26 +0200
commitb78ee6572930131da6072b325f71266ea87bcc95 (patch)
tree937e59afef8fd67aa3b28beca17134f87f1e0218 /dhcpv4/ztpv4/ztp_test.go
parentb259fbf29d7641ef65cc26bee6ab982ab5a32858 (diff)
[ztpv4] typo and NITs
Diffstat (limited to 'dhcpv4/ztpv4/ztp_test.go')
-rw-r--r--dhcpv4/ztpv4/ztp_test.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/dhcpv4/ztpv4/ztp_test.go b/dhcpv4/ztpv4/ztp_test.go
index bee2230..5fa3f40 100644
--- a/dhcpv4/ztpv4/ztp_test.go
+++ b/dhcpv4/ztpv4/ztp_test.go
@@ -47,13 +47,6 @@ func TestParseClassIdentifier(t *testing.T) {
want: &VendorData{VendorName: "ZPESystems", Model: "NSC", Serial: "001234567"},
},
{
- name: "cisco",
- vc: "FPR4100",
- ci: []byte("JMX2525X0BW"),
- want: &VendorData{VendorName: "Cisco Systems", Model: "FPR4100", Serial: "JMX2525X0BW"},
- },
- {name: "ciscoNoSerial", vc: "FPR4100", fail: true},
- {
name: "ciena",
vc: "1271-00011E00-032",
ci: []byte("JUSTASN"),
@@ -61,6 +54,13 @@ func TestParseClassIdentifier(t *testing.T) {
},
{name: "cienaInvalidVendorClass", vc: "127100011E00032", fail: true},
{name: "cienaNoSerial", vc: "1271-00011E00-032", fail: true},
+ {
+ name: "cisco",
+ vc: "FPR4100",
+ ci: []byte("JMX2525X0BW"),
+ want: &VendorData{VendorName: "Cisco Systems", Model: "FPR4100", Serial: "JMX2525X0BW"},
+ },
+ {name: "ciscoNoSerial", vc: "FPR4100", fail: true},
}
for _, tc := range tt {