Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSessionManager ¶
Types ¶
type BFDPeer ¶
type BFDPeer struct { Multihop bool `json:"multihop"` Peer string `json:"peer"` Local string `json:"local"` Vrf string `json:"vrf"` Interface string `json:"interface"` ID int `json:"id"` RemoteID int64 `json:"remote-id"` PassiveMode bool `json:"passive-mode"` Status string `json:"status"` Uptime int `json:"uptime"` Diagnostic string `json:"diagnostic"` RemoteDiagnostic string `json:"remote-diagnostic"` ReceiveInterval int `json:"receive-interval"` TransmitInterval int `json:"transmit-interval"` EchoReceiveInterval int `json:"echo-receive-interval"` EchoTransmitInterval int `json:"echo-transmit-interval"` DetectMultiplier int `json:"detect-multiplier"` RemoteReceiveInterval int `json:"remote-receive-interval"` RemoteTransmitInterval int `json:"remote-transmit-interval"` RemoteEchoInterval int `json:"remote-echo-interval"` RemoteDetectMultiplier int `json:"remote-detect-multiplier"` }
type BFDProfile ¶
type FRRNeighbor ¶
type FRRNeighbor struct { RemoteAs int `json:"remoteAs"` LocalAs int `json:"localAs"` RemoteRouterID string `json:"remoteRouterId"` BgpVersion int `json:"bgpVersion"` BgpState string `json:"bgpState"` PortForeign int `json:"portForeign"` MessageStats struct { UpdatesSent int `json:"updatesSent"` } `json:"messageStats"` AddressFamilyInfo map[string]struct { SentPrefixCounter int `json:"sentPrefixCounter"` } `json:"addressFamilyInfo"` }
type Neighbor ¶
type Neighbor struct { Ip net.IP Connected bool LocalAS string RemoteAS string UpdatesSent int PrefixSent int Port int RemoteRouterID string }
func ParseNeighbour ¶
parseNeighbour takes the result of a show bgp neighbor x.y.w.z and parses the informations related to the neighbour.
func ParseNeighbours ¶
parseNeighbour takes the result of a show bgp neighbor and parses the informations related to all the neighbours.
Click to show internal directories.
Click to hide internal directories.