Documentation ¶
Index ¶
- func GetAddressFamily(addressFamily int) (string, error)
- func GetProtocolName(p netlink.RouteProtocol) string
- func GetProtocolNumber(protocol string, frr bool) int
- type Layer2Information
- type NeighborInformation
- type NeighborKey
- type NetlinkManager
- func (*NetlinkManager) CleanupL2(info *Layer2Information) []error
- func (n *NetlinkManager) CleanupL3(name string) []error
- func (n *NetlinkManager) CleanupTaas(info TaasInformation) error
- func (n *NetlinkManager) CreateL2(info *Layer2Information) error
- func (n *NetlinkManager) CreateL3(info VRFInformation) error
- func (n *NetlinkManager) CreateTaas(info TaasInformation) error
- func (*NetlinkManager) EnsureBPFProgram(info VRFInformation) error
- func (*NetlinkManager) EnsureMTU(info VRFInformation) error
- func (*NetlinkManager) GetBridgeID(info *Layer2Information) (int, error)
- func (n *NetlinkManager) GetL3ByName(name string) (*VRFInformation, error)
- func (*NetlinkManager) GetUnderlayIP() (net.IP, error)
- func (n *NetlinkManager) ListL2() ([]Layer2Information, error)
- func (n *NetlinkManager) ListL3() ([]VRFInformation, error)
- func (n *NetlinkManager) ListNeighborInformation() ([]NeighborInformation, error)
- func (n *NetlinkManager) ListRouteInformation() ([]route.Information, error)
- func (*NetlinkManager) ListTaas() ([]TaasInformation, error)
- func (*NetlinkManager) ListVRFInterfaces() ([]VRFInformation, error)
- func (*NetlinkManager) ParseIPAddresses(addresses []string) ([]*netlink.Addr, error)
- func (n *NetlinkManager) ReconcileL2(current, desired *Layer2Information) error
- func (n *NetlinkManager) UpL3(info VRFInformation) error
- type TaasInformation
- type VRFInformation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddressFamily ¶ added in v0.2.0
func GetProtocolName ¶ added in v0.2.0
func GetProtocolName(p netlink.RouteProtocol) string
func GetProtocolNumber ¶ added in v0.2.0
Types ¶
type Layer2Information ¶
type NeighborInformation ¶ added in v0.2.0
type NeighborKey ¶ added in v0.2.3
type NeighborKey struct {
InterfaceIndex, State, Flags, Family int
}
type NetlinkManager ¶
type NetlinkManager struct { }
func (*NetlinkManager) CleanupL2 ¶
func (*NetlinkManager) CleanupL2(info *Layer2Information) []error
func (*NetlinkManager) CleanupL3 ¶
func (n *NetlinkManager) CleanupL3(name string) []error
Cleanup will try to delete all interfaces associated with this VRF and return a list of errors (for logging) as a slice.
func (*NetlinkManager) CleanupTaas ¶ added in v0.2.3
func (n *NetlinkManager) CleanupTaas(info TaasInformation) error
func (*NetlinkManager) CreateL2 ¶
func (n *NetlinkManager) CreateL2(info *Layer2Information) error
func (*NetlinkManager) CreateL3 ¶
func (n *NetlinkManager) CreateL3(info VRFInformation) error
Create will create a VRF and all interfaces necessary to operate the EVPN and leaking.
func (*NetlinkManager) CreateTaas ¶ added in v0.2.3
func (n *NetlinkManager) CreateTaas(info TaasInformation) error
func (*NetlinkManager) EnsureBPFProgram ¶ added in v0.2.0
func (*NetlinkManager) EnsureBPFProgram(info VRFInformation) error
func (*NetlinkManager) EnsureMTU ¶ added in v0.2.3
func (*NetlinkManager) EnsureMTU(info VRFInformation) error
func (*NetlinkManager) GetBridgeID ¶ added in v0.2.0
func (*NetlinkManager) GetBridgeID(info *Layer2Information) (int, error)
func (*NetlinkManager) GetL3ByName ¶
func (n *NetlinkManager) GetL3ByName(name string) (*VRFInformation, error)
func (*NetlinkManager) GetUnderlayIP ¶ added in v0.1.12
func (*NetlinkManager) GetUnderlayIP() (net.IP, error)
func (*NetlinkManager) ListL2 ¶
func (n *NetlinkManager) ListL2() ([]Layer2Information, error)
func (*NetlinkManager) ListL3 ¶
func (n *NetlinkManager) ListL3() ([]VRFInformation, error)
func (*NetlinkManager) ListNeighborInformation ¶ added in v0.2.0
func (n *NetlinkManager) ListNeighborInformation() ([]NeighborInformation, error)
func (*NetlinkManager) ListRouteInformation ¶ added in v0.2.0
func (n *NetlinkManager) ListRouteInformation() ([]route.Information, error)
func (*NetlinkManager) ListTaas ¶ added in v0.2.3
func (*NetlinkManager) ListTaas() ([]TaasInformation, error)
func (*NetlinkManager) ListVRFInterfaces ¶ added in v0.2.0
func (*NetlinkManager) ListVRFInterfaces() ([]VRFInformation, error)
func (*NetlinkManager) ParseIPAddresses ¶
func (*NetlinkManager) ParseIPAddresses(addresses []string) ([]*netlink.Addr, error)
func (*NetlinkManager) ReconcileL2 ¶
func (n *NetlinkManager) ReconcileL2(current, desired *Layer2Information) error
func (*NetlinkManager) UpL3 ¶
func (n *NetlinkManager) UpL3(info VRFInformation) error
UpL3 will set all interfaces up. This is done after the FRR reload to not have a L2VNI for a short period of time.
type TaasInformation ¶ added in v0.2.3
Click to show internal directories.
Click to hide internal directories.