Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CircuitID ¶
CircuitID represents the structure of network vendor interface formats
func ParseRemoteID ¶
ParseRemoteId will parse the RemoteId Option data for Vendor Specific data
func (*CircuitID) FormatCircuitID ¶
FormatCircuitID is the CircuitID format we send in our Bootfile URL for ZTP devices
type MlnxSubOption ¶
type MlnxSubOption uint16
const ( MlnxSubOptionModel MlnxSubOption = 1 MlnxSubOptionPartNum MlnxSubOption = 2 MlnxSubOptionSerial MlnxSubOption = 3 MlnxSubOptionMac MlnxSubOption = 4 MlnxSubOptionProfile MlnxSubOption = 5 MlnxSubOptionRelease MlnxSubOption = 6 )
type VendorData ¶
type VendorData struct {
VendorName, Model, Serial string
}
VendorData contains fields extracted from Option 17 data
func ParseVendorData ¶
func ParseVendorData(packet dhcpv6.DHCPv6) (*VendorData, error)
ParseVendorData will try to parse dhcp6 Vendor Specific Information options ( 16 and 17) data looking for more specific vendor data (like model, serial number, etc). If the options are missing we will just return nil
Click to show internal directories.
Click to hide internal directories.