frr

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

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"`
}

type Ports

type Ports map[string]Port

type Vrf

type Vrf struct {
	VrfID   int
	VrfName string
	Ports   Ports
}

type Vrfs

type Vrfs map[string]Vrf

Jump to

Keyboard shortcuts

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