Documentation
¶
Index ¶
- type DHCPOptions
- func (d *DHCPOptions) CIDR() *netip.Prefix
- func (d *DHCPOptions) DnsServers() []netip.Addr
- func (d *DHCPOptions) Invalidate()
- func (d *DHCPOptions) LeaseTime() uint
- func (d *DHCPOptions) Mtu() uint
- func (d *DHCPOptions) Router() *netip.Addr
- func (d *DHCPOptions) Routes() []Route
- func (d *DHCPOptions) ServerIP() *netip.Addr
- func (d *DHCPOptions) ServerMac() *net.HardwareAddr
- type DHCPZone
- type PortAddress
- type PortType
- type Route
- type Switch
- type SwitchPort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DHCPOptions ¶
type DHCPOptions struct {
// contains filtered or unexported fields
}
func NewDHCPOptions ¶
func NewDHCPOptions(uuid string, db ovn.DB) *DHCPOptions
func (*DHCPOptions) CIDR ¶
func (d *DHCPOptions) CIDR() *netip.Prefix
func (*DHCPOptions) DnsServers ¶
func (d *DHCPOptions) DnsServers() []netip.Addr
func (*DHCPOptions) Invalidate ¶
func (d *DHCPOptions) Invalidate()
func (*DHCPOptions) LeaseTime ¶
func (d *DHCPOptions) LeaseTime() uint
func (*DHCPOptions) Mtu ¶
func (d *DHCPOptions) Mtu() uint
func (*DHCPOptions) Router ¶
func (d *DHCPOptions) Router() *netip.Addr
func (*DHCPOptions) Routes ¶
func (d *DHCPOptions) Routes() []Route
func (*DHCPOptions) ServerIP ¶
func (d *DHCPOptions) ServerIP() *netip.Addr
func (*DHCPOptions) ServerMac ¶
func (d *DHCPOptions) ServerMac() *net.HardwareAddr
type DHCPZone ¶
type DHCPZone struct {
Opts *DHCPOptions
Addrs []*PortAddress
}
type PortAddress ¶
type PortAddress struct {
Mac net.HardwareAddr
Ip netip.Addr
}
func ParsePortAddress ¶
func ParsePortAddress(blob string) (*PortAddress, error)
type Route ¶
func ParseRoute ¶
type Switch ¶
type Switch struct {
// contains filtered or unexported fields
}
func (*Switch) Invalidate ¶
func (sw *Switch) Invalidate()
func (*Switch) McastSnoop ¶
func (*Switch) Ports ¶
func (sw *Switch) Ports() []*SwitchPort
func (*Switch) VlanPassthru ¶
type SwitchPort ¶
type SwitchPort struct {
// contains filtered or unexported fields
}
func NewSwitchPort ¶
func NewSwitchPort(uuid string, db ovn.DB) *SwitchPort
func (*SwitchPort) Addresses ¶
func (p *SwitchPort) Addresses() []*PortAddress
func (*SwitchPort) DHCPOptions ¶
func (p *SwitchPort) DHCPOptions() []*DHCPOptions
func (*SwitchPort) Invalidate ¶
func (p *SwitchPort) Invalidate()
func (*SwitchPort) Name ¶
func (p *SwitchPort) Name() string
func (*SwitchPort) NetworkName ¶
func (p *SwitchPort) NetworkName() string
func (*SwitchPort) Tag ¶
func (p *SwitchPort) Tag() uint
func (*SwitchPort) Type ¶
func (p *SwitchPort) Type() PortType
Click to show internal directories.
Click to hide internal directories.