summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/ztpv6/parse_vendor_options.go
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2022-08-18 14:59:46 +0100
committerGitHub <noreply@github.com>2022-08-18 14:59:46 +0100
commit2a691a334f6a296f8be54357782002165dcdaa33 (patch)
treef7b0563650ff16e3b9fc9364b60d4d760019abd4 /dhcpv6/ztpv6/parse_vendor_options.go
parent509691fd59ec89e4862007550fe45bff421e4e77 (diff)
parentec5c7ba66f06056fe8de535af42ef2896422bde8 (diff)
Merge pull request #472 from hrvach/master
Add Cisco ZTPv6 Support
Diffstat (limited to 'dhcpv6/ztpv6/parse_vendor_options.go')
-rw-r--r--dhcpv6/ztpv6/parse_vendor_options.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/dhcpv6/ztpv6/parse_vendor_options.go b/dhcpv6/ztpv6/parse_vendor_options.go
index 3d1fd01..b3ce55b 100644
--- a/dhcpv6/ztpv6/parse_vendor_options.go
+++ b/dhcpv6/ztpv6/parse_vendor_options.go
@@ -46,7 +46,8 @@ func ParseVendorData(packet dhcpv6.DHCPv6) (*VendorData, error) {
for _, d := range vData {
switch {
// Arista;DCS-0000;00.00;ZZZ00000000
- case strings.HasPrefix(d, "Arista;"):
+ // Cisco;8800;12.34;FOC00000000
+ case strings.HasPrefix(d, "Arista;"), strings.HasPrefix(d, "Cisco;"):
p := strings.Split(d, ";")
if len(p) < 4 {
return nil, errVendorOptionMalformed