Documentation
¶
Overview ¶
Package network provides structs and functions pertaining to network resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIPEmpty = errors.New("ip address is nil")
View Source
var ErrInvalidRange = errors.New("range bounds are invalid, start is greater than end")
View Source
var ErrMaskEmpty = errors.New("mask is nil")
View Source
var ErrModelEmpty = errors.New("model is empty")
View Source
var ErrNumPortsEmpty = errors.New("number of ports is 0")
View Source
var ErrSerialNumberEmpty = errors.New("serial number is empty")
Functions ¶
This section is empty.
Types ¶
type IPAddressPool ¶
type IPAddressPool struct { zebra.BaseResource Subnets []net.IPNet `json:"subnets"` }
An IPAddressPool represents a range of consecutive IP addresses belonging to the same network.
type Switch ¶
type Switch struct { zebra.BaseResource Credentials zebra.Credentials `json:"credentials"` ManagementIP net.IP `json:"managementIP"` //nolint:tagliatelle SerialNumber string `json:"serialNumber"` Model string `json:"model"` NumPorts uint32 `json:"numPorts"` }
A Switch represents a switching device which has an ID, an associated IP address, a serial number, model, and ports.
Click to show internal directories.
Click to hide internal directories.