Documentation ¶
Index ¶
- func BFDPeers(exec executor.Executor) (map[string]bgpfrr.BFDPeer, error)
- func BFDPeersMatchNodes(nodes []v1.Node, peers map[string]bgpfrr.BFDPeer, ipFamily ipfamily.Family) error
- func ContainsCommunity(exec executor.Executor, community string) error
- func Daemons(exec executor.Executor) ([]string, error)
- func LocalPrefForPrefix(exec executor.Executor, prefix string, family ipfamily.Family) (uint32, error)
- func NeighborConnected(neighborJson string) (bool, error)
- func NeighborInfo(neighborName string, exec executor.Executor) (*bgpfrr.Neighbor, error)
- func NeighborsInfo(exec executor.Executor) ([]*bgpfrr.Neighbor, error)
- func NeighborsMatchNodes(nodes []v1.Node, neighbors []*bgpfrr.Neighbor, ipFamily ipfamily.Family) error
- func RawDump(exec executor.Executor, filesToDump ...string) (string, error)
- func Routes(exec executor.Executor) (map[string]bgpfrr.Route, map[string]bgpfrr.Route, error)
- func RoutesForCommunity(exec executor.Executor, community string, family ipfamily.Family) (map[string]bgpfrr.Route, error)
- func RoutesForFamily(exec executor.Executor, family ipfamily.Family) (map[string]bgpfrr.Route, error)
- func RoutesMatchNodes(nodes []v1.Node, route bgpfrr.Route, ipFamily ipfamily.Family) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BFDPeers ¶ added in v0.12.0
BFDPeers returns informations for the all the bfd peers in the given executor.
func BFDPeersMatchNodes ¶ added in v0.12.0
func ContainsCommunity ¶ added in v0.12.0
ContainsCommunity check if the passed in community string exists in show bgp community.
func Daemons ¶ added in v0.12.0
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
NeighborConnected tells if the neighbor in the given json format is connected.
func NeighborInfo ¶
NeighborForContainer returns informations for the given neighbor in the given executor.
func NeighborsInfo ¶
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
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 ¶
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
Types ¶
This section is empty.