loxinlp

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

* Copyright (c) 2022 NetLOX Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Index

Constants

View Source
const (
	K8sNodePortMin = 30000
	K8sNodePortMax = 32768
)
View Source
const (
	IfOperUnknown uint8 = iota
	IfOperNotPresent
	IfOperDown
	IfOperLowerLayerDown
	IfOperTesting
	IfOperDormant
	IfOperUp
)
View Source
const (
	IfTypeReal uint8 = iota
	IfTypeSubIntf
	IfTypeBond
	IfTypeBridge
	IfTypeVxlan
)

Variables

This section is empty.

Functions

func AUWorkSingle

func AUWorkSingle(m nlp.AddrUpdate) int

func AUWorker

func AUWorker(ch chan nlp.AddrUpdate, f chan struct{})

func AddAddr

func AddAddr(addr nlp.Addr, link nlp.Link) int

func AddAddrNoHook added in v0.8.0

func AddAddrNoHook(address, ifName string) int

func AddFDBNoHook added in v0.8.0

func AddFDBNoHook(macAddress, ifName string) int

func AddNeigh

func AddNeigh(neigh nlp.Neigh, link nlp.Link) int

func AddNeighNoHook added in v0.8.0

func AddNeighNoHook(address, ifName, macAddress string) int

func AddRoute

func AddRoute(route nlp.Route) int

func AddRouteNoHook added in v0.8.0

func AddRouteNoHook(DestinationIPNet, gateway string) int

func AddVLANMemberNoHook added in v0.8.0

func AddVLANMemberNoHook(vlanid int, intfName string, tagged bool) int

func AddVLANNoHook added in v0.8.0

func AddVLANNoHook(vlanid int) int

func AddVxLANBridgeNoHook added in v0.8.0

func AddVxLANBridgeNoHook(vxlanid int, epIntfName string) int

func AddVxLANPeerNoHook added in v0.8.0

func AddVxLANPeerNoHook(vxlanid int, PeerIP string) int

func ApplyBFDConfig added in v0.9.2

func ApplyBFDConfig() bool

func DelAddrNoHook added in v0.8.0

func DelAddrNoHook(address, ifName string) int

func DelFDBNoHook added in v0.8.0

func DelFDBNoHook(macAddress, ifName string) int

func DelNeigh

func DelNeigh(neigh nlp.Neigh, link nlp.Link) int

func DelNeighNoHook added in v0.8.0

func DelNeighNoHook(address, ifName string) int

func DelRoute

func DelRoute(route nlp.Route) int

func DelRouteNoHook added in v0.8.0

func DelRouteNoHook(DestinationIPNet string) int

func DelVLANMemberNoHook added in v0.8.0

func DelVLANMemberNoHook(vlanid int, intfName string, tagged bool) int

func DelVLANNoHook added in v0.8.0

func DelVLANNoHook(vlanid int) int

func DelVxLANNoHook added in v0.8.0

func DelVxLANNoHook(vxlanid int) int

func DelVxLANPeerNoHook added in v0.8.0

func DelVxLANPeerNoHook(vxlanid int, PeerIP string) int

func GetBridges

func GetBridges()

func GetFDBNoHook added in v0.8.0

func GetFDBNoHook() ([]map[string]string, error)

func GetLinkNameByIndex added in v0.8.0

func GetLinkNameByIndex(index int) (string, error)

func GetVxLANPeerNoHook added in v0.8.0

func GetVxLANPeerNoHook() (map[int][]string, error)

func IPVSInit added in v0.9.2

func IPVSInit()

func IPVSSync added in v0.9.2

func IPVSSync()

func LUWorkSingle

func LUWorkSingle(m nlp.LinkUpdate) int

func LUWorker

func LUWorker(ch chan nlp.LinkUpdate, f chan struct{})

func LbSessionGet

func LbSessionGet(done bool) int
func ModLink(link nlp.Link, add bool) int

func NLWorker

func NLWorker(nNl *NlH, bgpPeerMode bool, ch chan bool, wch chan bool)

func NUWorkSingle

func NUWorkSingle(m nlp.NeighUpdate) int

func NUWorker

func NUWorker(ch chan nlp.NeighUpdate, f chan struct{})

func NlpGet

func NlpGet(ch chan bool) int

func NlpRegister

func NlpRegister(hook cmn.NetHookInterface)

func RUWorkSingle

func RUWorkSingle(m nlp.RouteUpdate) int

func RUWorker

func RUWorker(ch chan nlp.RouteUpdate, f chan struct{})

Types

type AddrUpdateCh

type AddrUpdateCh struct {
	FromAUCh   chan nlp.AddrUpdate
	FromAUDone chan struct{}
}

type IPVSH added in v0.9.2

type IPVSH struct {
	RMap map[ipVSKey]*ipVSEntry
	// contains filtered or unexported fields
}

type Intf

type Intf struct {
	// contains filtered or unexported fields
}

type LinkUpdateCh

type LinkUpdateCh struct {
	FromLUCh   chan nlp.LinkUpdate
	FromLUDone chan struct{}
}

type NeighUpdateCh

type NeighUpdateCh struct {
	FromNUCh   chan nlp.NeighUpdate
	FromNUDone chan struct{}
}

type NlH

type NlH struct {
	AddrUpdateCh
	LinkUpdateCh
	NeighUpdateCh
	RouteUpdateCh
	IMap      map[string]Intf
	BlackList string
	BLRgx     *regexp.Regexp
}

func NlpInit

func NlpInit(bgpPeerMode bool, blackList string, ipvsCompat bool) *NlH

type RouteUpdateCh

type RouteUpdateCh struct {
	FromRUCh   chan nlp.RouteUpdate
	FromRUDone chan struct{}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL