Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBGPStates ¶
func GetBGPStates(filepath string) (map[string]models.V1SwitchBGPPortState, error)
Types ¶
type Port ¶
type Port struct {
Hostname string `json:"hostname"`
PeerGroup string `json:"peerGroup"`
BgpState string `json:"bgpState"`
BgpTimerUpEstablished int64 `json:"bgpTimerUpEstablishedEpoch"`
AddressFamilyInfo struct {
IPv4UnicastCumulus struct {
SentPrefixCounter int64 `json:"sentPrefixCounter"`
AcceptedPrefixCounter int64 `json:"acceptedPrefixCounter"`
} `json:"IPv4 Unicast"`
IPv6UnicastCumulus struct {
SentPrefixCounter int64 `json:"sentPrefixCounter"`
AcceptedPrefixCounter int64 `json:"acceptedPrefixCounter"`
} `json:"IPv6 Unicast"`
IPv4UnicastSonic struct {
SentPrefixCounter int64 `json:"sentPrefixCounter"`
AcceptedPrefixCounter int64 `json:"acceptedPrefixCounter"`
} `json:"ipv4Unicast"`
IPv6UnicastSonic struct {
SentPrefixCounter int64 `json:"sentPrefixCounter"`
AcceptedPrefixCounter int64 `json:"acceptedPrefixCounter"`
} `json:"ipv6Unicast"`
} `json:"addressFamilyInfo"`
}
Click to show internal directories.
Click to hide internal directories.