package ztpv4
import "github.com/insomniacslk/dhcp/dhcpv4/ztpv4"
Index ¶
- type CircuitID
- func ParseCircuitID(packet *dhcpv4.DHCPv4) (*CircuitID, error)
- func (c *CircuitID) FormatCircuitID() string
- type VendorData
Types ¶
type CircuitID ¶
CircuitID represents the structure of network vendor interface formats
func ParseCircuitID ¶
ParseCircuitID will parse dhcpv4 packet and return CircuitID info
func (*CircuitID) FormatCircuitID ¶
FormatCircuitID is the CircuitID format we send in our Bootfile URL for ZTP devices
type VendorData ¶
type VendorData struct { VendorName, Model, Serial string }
VendorData is optional data a particular vendor may or may not include in the Vendor Class options.
func ParseVendorData ¶
func ParseVendorData(packet *dhcpv4.DHCPv4) (*VendorData, error)
ParseVendorData will try to parse dhcp4 options looking for more specific vendor data (like model, serial number, etc).
Source Files ¶
- Version
- v0.0.0-20250109001534-8abf58130905 (latest)
- Published
- Jan 9, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 2 months ago –
Tools for package owners.