vrrp_oper

package
v0.0.0-...-50def94 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

This module contains a collection of YANG definitions for VRRP operational data. Copyright (c) 2017-2018 by Cisco Systems, Inc. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MasterReason

type MasterReason string

MasterReason represents Indicates why this router became master of the VRRP group

const (
	// Router is not in master state
	MasterReason_reason_not_master MasterReason = "reason-not-master"

	// Won the Master election due to higher priority
	MasterReason_reason_priority MasterReason = "reason-priority"

	// Preempted a lower priority Master router
	MasterReason_reason_preempt MasterReason = "reason-preempt"

	// Master router stopped responding
	MasterReason_reason_master_no_response MasterReason = "reason-master-no-response"
)

type OmpStateUpdown

type OmpStateUpdown string

OmpStateUpdown represents Indicates the state of the Overlay Management Protocol tracking

const (
	// Indicates OMP track is up
	OmpStateUpdown_omp_up OmpStateUpdown = "omp-up"

	// Indicates OMP track is down
	OmpStateUpdown_omp_down OmpStateUpdown = "omp-down"
)

type ProtoVersion

type ProtoVersion string

ProtoVersion represents VRRP protocol version

const (
	ProtoVersion_vrrp_v3 ProtoVersion = "vrrp-v3"
)

type TrackState

type TrackState string

TrackState represents Indicates whether the track is resolved

const (
	// Track is resolved
	TrackState_vrrp_track_state_resolved TrackState = "vrrp-track-state-resolved"

	// Track is unresolved
	TrackState_vrrp_track_state_unresolved TrackState = "vrrp-track-state-unresolved"
)

type VrrpOperData

type VrrpOperData struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter

	// VRRP operational state. The type is slice of VrrpOperData_VrrpOperState.
	VrrpOperState []*VrrpOperData_VrrpOperState
}

VrrpOperData VRRP operational data

func (*VrrpOperData) GetEntityData

func (vrrpOperData *VrrpOperData) GetEntityData() *types.CommonEntityData

type VrrpOperData_VrrpOperState

type VrrpOperData_VrrpOperState struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter
	YListKey   string

	// This attribute is a key. IfIndex for the interface on which VRRP group is
	// hosted. The type is interface{} with range: 0..4294967295.
	IfNumber interface{}

	// This attribute is a key. VRRP group number. The type is interface{} with
	// range: 0..4294967295.
	GroupId interface{}

	// This attribute is a key. Address family of VRRP group. IPv4 or IPv6 are the
	// two valid values. The type is AddrType.
	AddrType interface{}

	// VRRP version. The type is ProtoVersion.
	Version interface{}

	// Primary Virtual IP address for the VRRP group. The type is one of the
	// following types: string with pattern:
	// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?,
	// or string with pattern:
	// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
	VirtualIp interface{}

	// Name for the interface on which VRRP group is hosted. The type is string.
	IfName interface{}

	// VRRP group state. The type is VrrpProtoState.
	VrrpState interface{}

	// Virtual MAC address for the VRRP group. The type is string with pattern:
	// [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}.
	VirtualMac interface{}

	// IP address of the Master router for the VRRP group. The type is one of the
	// following types: string with pattern:
	// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?,
	// or string with pattern:
	// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
	MasterIp interface{}

	// Whether the router owns the VRRP Primary virtual IP address. When Interface
	// IP address and VRRP Primary virtual IP address are the same for this
	// router, its priority is bumped up to 255. The type is bool.
	IsOwner interface{}

	// Specifies the priority value used for VRRP master election process. Valid
	// values are 0 to 255. 0 is used by a current master router to gracefully
	// retire from the vrrp group. 255 indicates the master router also owns the
	// VRRP virtual IP address. The type is interface{} with range: 0..4294967295.
	Priority interface{}

	// Time interval between hello packets sent by the master router in
	// milliseconds. The type is interface{} with range: 0..4294967295.
	AdvertisementTimer interface{}

	// Time after which a backup router declares the current master to be down in
	// milliseconds. The type is interface{} with range: 0..4294967295.
	MasterDownTimer interface{}

	// Time to skew Master Down Interval in milliseconds. The type is interface{}
	// with range: 0..4294967295.
	SkewTime interface{}

	// Controls whether a higher priority virtual router will preempt a lower
	// priority master. The type is bool.
	Preempt interface{}

	// Number of master transitions that have happened in the VRRP group. The type
	// is interface{} with range: 0..4294967295.
	MasterTransitions interface{}

	// Indicates why this router became master of the VRRP group. The type is
	// MasterReason.
	NewMasterReason interface{}

	// Time when state of the VRRP group last changed. The type is string with
	// pattern: \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[\+\-]\d{2}:\d{2}).
	LastStateChangeTime interface{}

	// Total number of VRRP packets that arrived with advertisement interval
	// different to the configured value. The type is interface{} with range:
	// 0..4294967295.
	AdvIntervalErrors interface{}

	// Total number of VRRP packets received by the virtual router with IPv4 TTL
	// (for VRRP over IPv4) or IPv6 Hop Limit (for VRRP over IPv6) not equal to
	// 255. The type is interface{} with range: 0..4294967295.
	IpTtlErrors interface{}

	// Total number of VRRP packets received with priority 0. The type is
	// interface{} with range: 0..4294967295.
	RcvdPriZeroPak interface{}

	// Total number of VRRP packets sent with priority 0. The type is interface{}
	// with range: 0..4294967295.
	SentPriZeroPak interface{}

	// Total number of VRRP packets received with invalid Type field. The type is
	// interface{} with range: 0..4294967295.
	RcvdInvalidTypePak interface{}

	// Total number of VRRP packets received with address not matching the address
	// list locally configured on the router. The type is interface{} with range:
	// 0..4294967295.
	AddrListErrors interface{}

	// Total number of VRRP packets received with length less that VRRP header
	// length. The type is interface{} with range: 0..4294967295.
	PakLenErrors interface{}

	// Indicates the last time when a discontinuity happened in gathering
	// statistics. The type is string with pattern:
	// \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[\+\-]\d{2}:\d{2}).
	DiscontinuityTime interface{}

	// Total number of VRRP packets sent. The type is interface{} with range:
	// 0..4294967295.
	AdvertisementSent interface{}

	// Total number of VRRP packets received. The type is interface{} with range:
	// 0..4294967295.
	AdvertisementRcvd interface{}

	// Indicates the state of the Overlay Management protocol tracking. The type
	// is OmpStateUpdown.
	OmpState interface{}

	// Contains the list of secondary address configured on the group. The type is
	// one of the following types: slice of string with pattern:
	// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?,
	// or slice of string with pattern:
	// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
	SecondaryVipAddresses []interface{}

	// Status of list of tracking objects in the group. The type is slice of
	// VrrpOperData_VrrpOperState_TrackList.
	TrackList []*VrrpOperData_VrrpOperState_TrackList
}

VrrpOperData_VrrpOperState VRRP operational state

func (*VrrpOperData_VrrpOperState) GetEntityData

func (vrrpOperState *VrrpOperData_VrrpOperState) GetEntityData() *types.CommonEntityData

type VrrpOperData_VrrpOperState_TrackList

type VrrpOperData_VrrpOperState_TrackList struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter
	YListKey   string

	// Name of the tracking object. The type is string.
	TrackName interface{}

	// State of the tracking object. The type is TrackState.
	TrackObjState interface{}
}

VrrpOperData_VrrpOperState_TrackList Status of list of tracking objects in the group

func (*VrrpOperData_VrrpOperState_TrackList) GetEntityData

func (trackList *VrrpOperData_VrrpOperState_TrackList) GetEntityData() *types.CommonEntityData

type VrrpProtoState

type VrrpProtoState string

VrrpProtoState represents VRRP group state

const (
	// Indicates that the virtual router group is waiting for a startup event
	VrrpProtoState_proto_state_init VrrpProtoState = "proto-state-init"

	// Indicates that the virtual router is monitoring the availability of a master
	VrrpProtoState_proto_state_backup VrrpProtoState = "proto-state-backup"

	// Indicates that the virtual router is forwarding packets for IP addresses that are associated with this router
	VrrpProtoState_proto_state_master VrrpProtoState = "proto-state-master"

	// Indicates that the virtual router is under recovery
	VrrpProtoState_proto_state_recover VrrpProtoState = "proto-state-recover"
)

Jump to

Keyboard shortcuts

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