summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/ztpv4/ztp_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/ztpv4/ztp_test.go')
-rw-r--r--dhcpv4/ztpv4/ztp_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/dhcpv4/ztpv4/ztp_test.go b/dhcpv4/ztpv4/ztp_test.go
index 5d8ae8d..8210b12 100644
--- a/dhcpv4/ztpv4/ztp_test.go
+++ b/dhcpv4/ztpv4/ztp_test.go
@@ -42,6 +42,16 @@ func TestParseClassIdentifier(t *testing.T) {
},
{name: "juniperNoSerial", vc: "Juniper-qfx10008", fail: true},
{
+ name: "juniperHostnameSerialv2",
+ vc: "Juniper:ttttt-ttt:D12345",
+ want: &VendorData{VendorName: "Juniper", Model: "ttttt-ttt", Serial: "D12345"},
+ },
+ {
+ name: "juniperHostnameSerialv2Invalid",
+ vc: "Juniper:1",
+ fail: true,
+ },
+ {
name: "zpe",
vc: "ZPESystems:NSC:001234567",
want: &VendorData{VendorName: "ZPESystems", Model: "NSC", Serial: "001234567"},