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
- func AUWorkSingle(m nlp.AddrUpdate) int
- func AUWorker(ch chan nlp.AddrUpdate, f chan struct{})
- func AddAddr(addr nlp.Addr, link nlp.Link) int
- func AddAddrNoHook(address, ifName string) int
- func AddFDBNoHook(macAddress, ifName string) int
- func AddNeigh(neigh nlp.Neigh, link nlp.Link) int
- func AddNeighNoHook(address, ifName, macAddress string) int
- func AddRoute(route nlp.Route) int
- func AddRouteNoHook(DestinationIPNet, gateway string) int
- func AddVLANMemberNoHook(vlanid int, intfName string, tagged bool) int
- func AddVLANNoHook(vlanid int) int
- func AddVxLANBridgeNoHook(vxlanid int, epIntfName string) int
- func AddVxLANPeerNoHook(vxlanid int, PeerIP string) int
- func ApplyBFDConfig() bool
- func DelAddrNoHook(address, ifName string) int
- func DelFDBNoHook(macAddress, ifName string) int
- func DelNeigh(neigh nlp.Neigh, link nlp.Link) int
- func DelNeighNoHook(address, ifName string) int
- func DelRoute(route nlp.Route) int
- func DelRouteNoHook(DestinationIPNet string) int
- func DelVLANMemberNoHook(vlanid int, intfName string, tagged bool) int
- func DelVLANNoHook(vlanid int) int
- func DelVxLANNoHook(vxlanid int) int
- func DelVxLANPeerNoHook(vxlanid int, PeerIP string) int
- func GetBridges()
- func GetFDBNoHook() ([]map[string]string, error)
- func GetLinkNameByIndex(index int) (string, error)
- func GetVxLANPeerNoHook() (map[int][]string, error)
- func IPVSInit()
- func IPVSSync()
- func LUWorkSingle(m nlp.LinkUpdate) int
- func LUWorker(ch chan nlp.LinkUpdate, f chan struct{})
- func LbSessionGet(done bool) int
- func ModLink(link nlp.Link, add bool) int
- func NLWorker(nNl *NlH, bgpPeerMode bool, ch chan bool, wch chan bool)
- func NUWorkSingle(m nlp.NeighUpdate) int
- func NUWorker(ch chan nlp.NeighUpdate, f chan struct{})
- func NlpGet(ch chan bool) int
- func NlpRegister(hook cmn.NetHookInterface)
- func RUWorkSingle(m nlp.RouteUpdate) int
- func RUWorker(ch chan nlp.RouteUpdate, f chan struct{})
- type AddrUpdateCh
- type IPVSH
- type Intf
- type LinkUpdateCh
- type NeighUpdateCh
- type NlH
- type RouteUpdateCh
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 AddAddrNoHook ¶ added in v0.8.0
func AddFDBNoHook ¶ added in v0.8.0
func AddNeighNoHook ¶ added in v0.8.0
func AddRouteNoHook ¶ added in v0.8.0
func AddVLANMemberNoHook ¶ added in v0.8.0
func AddVLANNoHook ¶ added in v0.8.0
func AddVxLANBridgeNoHook ¶ added in v0.8.0
func AddVxLANPeerNoHook ¶ added in v0.8.0
func ApplyBFDConfig ¶ added in v0.9.2
func ApplyBFDConfig() bool
func DelAddrNoHook ¶ added in v0.8.0
func DelFDBNoHook ¶ added in v0.8.0
func DelNeighNoHook ¶ added in v0.8.0
func DelRouteNoHook ¶ added in v0.8.0
func DelVLANMemberNoHook ¶ added in v0.8.0
func DelVLANNoHook ¶ added in v0.8.0
func DelVxLANNoHook ¶ added in v0.8.0
func DelVxLANPeerNoHook ¶ added in v0.8.0
func GetBridges ¶
func GetBridges()
func GetFDBNoHook ¶ added in v0.8.0
func GetLinkNameByIndex ¶ added in v0.8.0
func GetVxLANPeerNoHook ¶ added in v0.8.0
func LUWorkSingle ¶
func LUWorkSingle(m nlp.LinkUpdate) int
func LUWorker ¶
func LUWorker(ch chan nlp.LinkUpdate, f chan struct{})
func LbSessionGet ¶
func NUWorkSingle ¶
func NUWorkSingle(m nlp.NeighUpdate) int
func NUWorker ¶
func NUWorker(ch chan nlp.NeighUpdate, f chan struct{})
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 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 }
type RouteUpdateCh ¶
type RouteUpdateCh struct { FromRUCh chan nlp.RouteUpdate FromRUDone chan struct{} }
Click to show internal directories.
Click to hide internal directories.