frr

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BFDPeers added in v0.12.0

func BFDPeers(exec executor.Executor) (map[string]bgpfrr.BFDPeer, error)

BFDPeers returns informations for the all the bfd peers in the given executor.

func BFDPeersMatchNodes added in v0.12.0

func BFDPeersMatchNodes(nodes []v1.Node, peers map[string]bgpfrr.BFDPeer, ipFamily ipfamily.Family) error

func ContainsCommunity added in v0.12.0

func ContainsCommunity(exec executor.Executor, community string) error

ContainsCommunity check if the passed in community string exists in show bgp community.

func Daemons added in v0.12.0

func Daemons(exec executor.Executor) ([]string, error)

Daemons returns informations for the all the neighbors in the given executor.

func LocalPrefForPrefix added in v0.12.0

func LocalPrefForPrefix(exec executor.Executor, prefix string, family ipfamily.Family) (uint32, error)

LocalPrefForPrefix returns the localPref value for the given prefix.

func NeighborConnected added in v0.12.0

func NeighborConnected(neighborJson string) (bool, error)

NeighborConnected tells if the neighbor in the given json format is connected.

func NeighborInfo

func NeighborInfo(neighborName string, exec executor.Executor) (*bgpfrr.Neighbor, error)

NeighborForContainer returns informations for the given neighbor in the given executor.

func NeighborsInfo

func NeighborsInfo(exec executor.Executor) ([]*bgpfrr.Neighbor, error)

NeighborsForContainer returns informations for the all the neighbors in the given executor.

func NeighborsMatchNodes

func NeighborsMatchNodes(nodes []v1.Node, neighbors []*bgpfrr.Neighbor, ipFamily ipfamily.Family) error

NeighborsMatchNodes tells if ALL the given nodes are peered with the frr instance. We only care about established connections, as the frr instance may be configured with more nodes than are currently paired.

func RawDump added in v0.12.0

func RawDump(exec executor.Executor, filesToDump ...string) (string, error)

RawDump dumps all the low level info as a single string. To be used for debugging in order to print the status of the frr instance.

func Routes

func Routes(exec executor.Executor) (map[string]bgpfrr.Route, map[string]bgpfrr.Route, error)

Routes returns informations about routes in the given executor first for ipv4 routes and then for ipv6 routes.

func RoutesForCommunity added in v0.12.0

func RoutesForCommunity(exec executor.Executor, community string, family ipfamily.Family) (map[string]bgpfrr.Route, error)

RoutesForCommunity returns informations about routes in the given executor related to the given community.

func RoutesForFamily added in v0.13.0

func RoutesForFamily(exec executor.Executor, family ipfamily.Family) (map[string]bgpfrr.Route, error)

func RoutesMatchNodes

func RoutesMatchNodes(nodes []v1.Node, route bgpfrr.Route, ipFamily ipfamily.Family) error

RoutesMatchNodes tells if ALL the given nodes are exposed as destinations for the given address.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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