commands

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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

type BGPCommands map[string]script.Cmd

func NewBGPCommands added in v1.20.0

func NewBGPCommands(bgpMgr agent.BGPRouterManager) BGPCommands

Jump to

Keyboard shortcuts

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