package ztpv6
import "github.com/insomniacslk/dhcp/dhcpv6/ztpv6"
Index ¶
- type CircuitID
- func ParseRemoteID(packet dhcpv6.DHCPv6) (*CircuitID, error)
- func (c *CircuitID) FormatCircuitID() string
- type MlnxSubOption
- type VendorData
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
Source Files ¶
mellanox.go parse_remote_id.go parse_vendor_options.go
- Version
- v0.0.0-20250109001534-8abf58130905 (latest)
- Published
- Jan 9, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 2 months ago –
Tools for package owners.