Documentation
¶
Index ¶
- Variables
- func BGPPeersCmd(bgpMgr agent.BGPRouterManager) script.Cmd
- func BGPRoutePoliciesCmd(bgpMgr agent.BGPRouterManager) script.Cmd
- func BGPRoutesCmd(bgpMgr agent.BGPRouterManager) script.Cmd
- func FormatPathAttributes(attrs []bgp.PathAttributeInterface) string
- func PrintPeerStatesDetailed(w io.Writer, instances []agent.InstancePeerStates, noUptime bool)
- func PrintPeerStatesTable(w io.Writer, instances []agent.InstancePeerStates, noUptime bool)
- func PrintRoutePoliciesTable(tw *tabwriter.Writer, instances []agent.InstanceRoutePolicies)
- func PrintRoutes(w io.Writer, instances []agent.InstanceRoutes, ...)
- type BGPCommands
Constants ¶
This section is empty.
Variables ¶
View Source
var Cell = cell.Provide( NewBGPCommands, func(cmds BGPCommands) hive.ScriptCmdsOut { return hive.NewScriptCmds(cmds) }, )
Functions ¶
func BGPPeersCmd ¶
func BGPPeersCmd(bgpMgr agent.BGPRouterManager) script.Cmd
func BGPRoutePoliciesCmd ¶ added in v1.20.0
func BGPRoutePoliciesCmd(bgpMgr agent.BGPRouterManager) script.Cmd
func BGPRoutesCmd ¶
func BGPRoutesCmd(bgpMgr agent.BGPRouterManager) script.Cmd
func FormatPathAttributes ¶ added in v1.19.3
func FormatPathAttributes(attrs []bgp.PathAttributeInterface) string
func PrintPeerStatesDetailed ¶ added in v1.20.0
func PrintPeerStatesDetailed(w io.Writer, instances []agent.InstancePeerStates, noUptime bool)
func PrintPeerStatesTable ¶ added in v1.20.0
func PrintPeerStatesTable(w io.Writer, instances []agent.InstancePeerStates, noUptime bool)
func PrintRoutePoliciesTable ¶ added in v1.20.0
func PrintRoutePoliciesTable(tw *tabwriter.Writer, instances []agent.InstanceRoutePolicies)
PrintRoutePoliciesTable prints table of provided BGP route policies in the provided tab writer.
func PrintRoutes ¶
func PrintRoutes(w io.Writer, instances []agent.InstanceRoutes, printPeer, noAge, printAttr bool)
Types ¶
type BGPCommands ¶
func NewBGPCommands ¶ added in v1.20.0
func NewBGPCommands(bgpMgr agent.BGPRouterManager) BGPCommands
Click to show internal directories.
Click to hide internal directories.