diff options
author | Hariharakumar Narasimhakumar <hana8349@colorado.edu> | 2021-08-26 15:02:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 23:02:46 +0100 |
commit | a3fe5c3e5d5ec382767965eedf60cb38b79ae108 (patch) | |
tree | eb1cc57ee8ccb6b5cb9911eedd29bd06c8a7a095 /dhcpv4/ztpv4/ztp.go | |
parent | d825980013862241bb15a5eb0499144e8aa5aaab (diff) |
Adding support to parse vendor data for cisco firepower (#443)
* Adding support to parse vendor data for cisco firepower
Diffstat (limited to 'dhcpv4/ztpv4/ztp.go')
-rw-r--r-- | dhcpv4/ztpv4/ztp.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dhcpv4/ztpv4/ztp.go b/dhcpv4/ztpv4/ztp.go index 43bc0e6..09ec790 100644 --- a/dhcpv4/ztpv4/ztp.go +++ b/dhcpv4/ztpv4/ztp.go @@ -65,6 +65,15 @@ func parseClassIdentifier(packet *dhcpv4.DHCPv4) (*VendorData, error) { vd.VendorName = p[0] return vd, nil + + // Cisco Firepower FPR4100/9300 models use Opt 60 for model info + // and Opt 61 contains the serial number + case vc == "FPR4100" || vc == "FPR9300": + vd.VendorName = iana.EntIDCiscoSystems.String() + vd.Model = vc + vd.Serial = dhcpv4.GetString(dhcpv4.OptionClientIdentifier, packet.Options) + return vd, nil + } return nil, nil |