arista

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EAPIClient

type EAPIClient struct {
	// contains filtered or unexported fields
}

func NewEAPIClient

func NewEAPIClient(jchfChan chan []*kt.JCHF, gconf *kt.SnmpGlobalConfig, conf *kt.SnmpDeviceConfig, metrics *kt.SnmpDeviceMetric, log logger.ContextL) (*EAPIClient, error)

func (*EAPIClient) GetName

func (c *EAPIClient) GetName() string

func (*EAPIClient) Run

func (c *EAPIClient) Run(ctx context.Context, dur time.Duration)

type MLAGDetail

type MLAGDetail struct {
	FailoverCauseList          []string `json:"failoverCauseList"`
	UdpHeartbeatsSent          int64    `json:"udpHeartbeatsSent"`
	LacpStandby                bool     `json:"lacpStandby"`
	MlagState                  string   `json:"mlagState"`
	HeartbeatInterval          int      `json:"heartbeatInterval"`
	EffectiveHeartbeatInterval int      `json:"effectiveHeartbeatInterval"`
	HeartbeatTimeout           int      `json:"heartbeatTimeout"`
	StateChanges               int      `json:"stateChanges"`
	FastMacRedirectionEnabled  bool     `json:"fastMacRedirectionEnabled"`
	PeerPortsErrdisabled       bool     `json:"peerPortsErrdisabled"`
	MlagHwReady                bool     `json:"mlagHwReady"`
	UdpHeartbeatAlive          bool     `json:"udpHeartbeatAlive"`
	FailoverInitiated          bool     `json:"failoverInitiated"`
	PeerMlagState              string   `json:"peerMlagState"`
	SecondaryFromFailover      bool     `json:"secondaryFromFailover"`
	PrimaryPriority            int      `json:"primaryPriority"`
	Failover                   bool     `json:"failover"`
	Enabled                    bool     `json:"enabled"`
	PeerMacRoutingSupported    bool     `json:"peerMacRoutingSupported"`
	PeerPrimaryPriority        int      `json:"peerPrimaryPriority"`

	PeerMacAddress               string `json:"peerMacAddress"`
	MountChanges                 int    `json:"mountChanges"`
	HeartbeatTimeoutsSinceReboot int64  `json:"heartbeatTimeoutsSinceReboot"`
	// contains filtered or unexported fields
}

type MLAGPorts

type MLAGPorts struct {
	Disabled      int64 `json:"Disabled"`
	ActivePartial int64 `json:"Active-partial"`
	Inactive      int64 `json:"Inactive"`
	Configured    int64 `json:"Configured"`
	ActiveFull    int64 `json:"Active-full"`
}

type Peer

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

type ShowBGP

type ShowBGP struct {
	VRFs map[string]VRF `json:"vrfs"`
}

func (*ShowBGP) GetCmd

func (s *ShowBGP) GetCmd() string

type ShowMlag

type ShowMlag struct {
	ConfigSanity                string     `json:"configSanity"`
	DomainId                    string     `json:"domainId"`
	LocalIntfStatus             string     `json:"localIntfStatus"`
	LocalInterface              string     `json:"localInterface"`
	State                       string     `json:"state"`
	ReloadDelay                 int        `json:"reloadDelay"`
	PeerLink                    string     `json:"peerLink"`
	NegStatus                   string     `json:"negStatus"`
	PeerAddress                 string     `json:"peerAddress"`
	PeerLinkStatus              string     `json:"peerLinkStatus"`
	SystemId                    string     `json:"systemId"`
	DualPrimaryDetectionState   string     `json:"dualPrimaryDetectionState"`
	ReloadDelayNonMlag          int        `json:"reloadDelayNonMlag"`
	MlagPorts                   MLAGPorts  `json:"mlagPorts"`
	PortsErrdisabled            bool       `json:"portsErrdisabled"`
	DualPrimaryPortsErrdisabled bool       `json:"dualPrimaryPortsErrdisabled"`
	Detail                      MLAGDetail `json:"detail"`
}

func (*ShowMlag) GetCmd

func (s *ShowMlag) GetCmd() string

type VRF

type VRF struct {
	RouterID string          `json:"routerId"`
	Peers    map[string]Peer `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