arista

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowIPBGPSummaryCmd

func ShowIPBGPSummaryCmd(vrf string) string

func ShowIPMrouteCmd

func ShowIPMrouteCmd() string

func ShowIpRouteCmd

func ShowIpRouteCmd(vrf string) string

func ShowPIMNeighborsCmd

func ShowPIMNeighborsCmd() string

Types

type BGPNeighborSummary

type BGPNeighborSummary struct {
	MsgSent             int     `json:"msgSent"`
	InMsgQueue          int     `json:"inMsgQueue"`
	PrefixReceived      int     `json:"prefixReceived"`
	UpDownTime          float64 `json:"upDownTime"`
	Version             int     `json:"version"`
	MsgReceived         int     `json:"msgReceived"`
	PrefixAccepted      int     `json:"prefixAccepted"`
	PeerState           string  `json:"peerState"`
	PeerStateIdleReason string  `json:"peerStateIdleReason,omitempty"`
	OutMsgQueue         int     `json:"outMsgQueue"`
	UnderMaintenance    bool    `json:"underMaintenance"`
	ASN                 string  `json:"asn"`
}

type GroupDetail

type GroupDetail struct {
	GroupSources map[string]SourceDetail `json:"groupSources"`
}

type IpRoute

type IpRoute struct {
	RouteType string `json:"routeType"`
}

type PIMNeighborDetail

type PIMNeighborDetail struct {
	Address             string          `json:"address"`
	Interface           string          `json:"intf"`
	CreationTime        float64         `json:"creationTime"`
	LastRefreshTime     float64         `json:"lastRefreshTime"`
	HoldTime            int             `json:"holdTime"`
	Mode                PIMNeighborMode `json:"mode"`
	BFDState            string          `json:"bfdState"`
	Transport           string          `json:"transport"`
	Detail              bool            `json:"detail"`
	SecondaryAddresses  []string        `json:"secondaryAddress"`
	MaintenanceReceived string          `json:"maintenanceReceived"`
	MaintenanceSent     string          `json:"maintenanceSent"`
}

PIMNeighborDetail holds the specific information for a PIM neighbor.

type PIMNeighborMode

type PIMNeighborMode struct {
	Mode string `json:"mode"`
}

PIMNeighborMode describes the operational mode of the PIM neighbor.

type ShowIPBGPSummary

type ShowIPBGPSummary struct {
	VRFs map[string]VRF
}

type ShowIPMroute

type ShowIPMroute struct {
	Groups map[string]GroupDetail `json:"groups"`
}

ShowIPMroute represents the top-level structure containing multicast routing information.

type ShowIpRoute

type ShowIpRoute struct {
	VRFs map[string]ShowIpRouteVRF
}

type ShowIpRouteVRF

type ShowIpRouteVRF struct {
	Routes map[string]IpRoute `json:"routes"`
}

type ShowPIMNeighbors

type ShowPIMNeighbors struct {
	Neighbors map[string]PIMNeighborDetail `json:"neighbors"`
}

ShowPIMNeighbors represents the top-level structure containing a map of PIM neighbor details.

type SourceDetail

type SourceDetail struct {
	SourceAddress string   `json:"sourceAddress"`
	CreationTime  float64  `json:"creationTime"`
	RouteFlags    string   `json:"routeFlags"`
	RP            string   `json:"rp"`
	RPFInterface  string   `json:"rpfInterface"`
	OIFList       []string `json:"oifList"`
}

type VRF

type VRF struct {
	RouterID string                        `json:"routerId"`
	Peers    map[string]BGPNeighborSummary `json:"peers"`
	VRF      string                        `json:"vrf"`
	ASN      string                        `json:"asn"`
}

Jump to

Keyboard shortcuts

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