vrrp

package
v0.0.0-...-f91f7f2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package vrrp is a generated VPP binary API for 'vrrp' module.

It consists of:

12 enums
 7 aliases
11 types
 1 union
14 messages
 7 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "vrrp"
	// APIVersion is the API version of this module.
	APIVersion = "1.0.1"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0x1903f1f1
)

Variables

View Source
var AddressFamily_name = map[uint8]string{
	0: "ADDRESS_IP4",
	1: "ADDRESS_IP6",
}
View Source
var AddressFamily_value = map[string]uint8{
	"ADDRESS_IP4": 0,
	"ADDRESS_IP6": 1,
}
View Source
var IPDscp_name = map[uint8]string{
	0:  "IP_API_DSCP_CS0",
	8:  "IP_API_DSCP_CS1",
	10: "IP_API_DSCP_AF11",
	12: "IP_API_DSCP_AF12",
	14: "IP_API_DSCP_AF13",
	16: "IP_API_DSCP_CS2",
	18: "IP_API_DSCP_AF21",
	20: "IP_API_DSCP_AF22",
	22: "IP_API_DSCP_AF23",
	24: "IP_API_DSCP_CS3",
	26: "IP_API_DSCP_AF31",
	28: "IP_API_DSCP_AF32",
	30: "IP_API_DSCP_AF33",
	32: "IP_API_DSCP_CS4",
	34: "IP_API_DSCP_AF41",
	36: "IP_API_DSCP_AF42",
	38: "IP_API_DSCP_AF43",
	40: "IP_API_DSCP_CS5",
	46: "IP_API_DSCP_EF",
	48: "IP_API_DSCP_CS6",
	50: "IP_API_DSCP_CS7",
}
View Source
var IPDscp_value = map[string]uint8{
	"IP_API_DSCP_CS0":  0,
	"IP_API_DSCP_CS1":  8,
	"IP_API_DSCP_AF11": 10,
	"IP_API_DSCP_AF12": 12,
	"IP_API_DSCP_AF13": 14,
	"IP_API_DSCP_CS2":  16,
	"IP_API_DSCP_AF21": 18,
	"IP_API_DSCP_AF22": 20,
	"IP_API_DSCP_AF23": 22,
	"IP_API_DSCP_CS3":  24,
	"IP_API_DSCP_AF31": 26,
	"IP_API_DSCP_AF32": 28,
	"IP_API_DSCP_AF33": 30,
	"IP_API_DSCP_CS4":  32,
	"IP_API_DSCP_AF41": 34,
	"IP_API_DSCP_AF42": 36,
	"IP_API_DSCP_AF43": 38,
	"IP_API_DSCP_CS5":  40,
	"IP_API_DSCP_EF":   46,
	"IP_API_DSCP_CS6":  48,
	"IP_API_DSCP_CS7":  50,
}
View Source
var IPEcn_name = map[uint8]string{
	0: "IP_API_ECN_NONE",
	1: "IP_API_ECN_ECT0",
	2: "IP_API_ECN_ECT1",
	3: "IP_API_ECN_CE",
}
View Source
var IPEcn_value = map[string]uint8{
	"IP_API_ECN_NONE": 0,
	"IP_API_ECN_ECT0": 1,
	"IP_API_ECN_ECT1": 2,
	"IP_API_ECN_CE":   3,
}
View Source
var IPProto_name = map[uint8]string{
	0:   "IP_API_PROTO_HOPOPT",
	1:   "IP_API_PROTO_ICMP",
	2:   "IP_API_PROTO_IGMP",
	6:   "IP_API_PROTO_TCP",
	17:  "IP_API_PROTO_UDP",
	47:  "IP_API_PROTO_GRE",
	50:  "IP_API_PROTO_ESP",
	51:  "IP_API_PROTO_AH",
	58:  "IP_API_PROTO_ICMP6",
	88:  "IP_API_PROTO_EIGRP",
	89:  "IP_API_PROTO_OSPF",
	132: "IP_API_PROTO_SCTP",
	255: "IP_API_PROTO_RESERVED",
}
View Source
var IPProto_value = map[string]uint8{
	"IP_API_PROTO_HOPOPT":   0,
	"IP_API_PROTO_ICMP":     1,
	"IP_API_PROTO_IGMP":     2,
	"IP_API_PROTO_TCP":      6,
	"IP_API_PROTO_UDP":      17,
	"IP_API_PROTO_GRE":      47,
	"IP_API_PROTO_ESP":      50,
	"IP_API_PROTO_AH":       51,
	"IP_API_PROTO_ICMP6":    58,
	"IP_API_PROTO_EIGRP":    88,
	"IP_API_PROTO_OSPF":     89,
	"IP_API_PROTO_SCTP":     132,
	"IP_API_PROTO_RESERVED": 255,
}
View Source
var IfStatusFlags_name = map[uint32]string{
	1: "IF_STATUS_API_FLAG_ADMIN_UP",
	2: "IF_STATUS_API_FLAG_LINK_UP",
}
View Source
var IfStatusFlags_value = map[string]uint32{
	"IF_STATUS_API_FLAG_ADMIN_UP": 1,
	"IF_STATUS_API_FLAG_LINK_UP":  2,
}
View Source
var IfType_name = map[uint32]string{
	0: "IF_API_TYPE_HARDWARE",
	1: "IF_API_TYPE_SUB",
	2: "IF_API_TYPE_P2P",
	3: "IF_API_TYPE_PIPE",
}
View Source
var IfType_value = map[string]uint32{
	"IF_API_TYPE_HARDWARE": 0,
	"IF_API_TYPE_SUB":      1,
	"IF_API_TYPE_P2P":      2,
	"IF_API_TYPE_PIPE":     3,
}
View Source
var LinkDuplex_name = map[uint32]string{
	0: "LINK_DUPLEX_API_UNKNOWN",
	1: "LINK_DUPLEX_API_HALF",
	2: "LINK_DUPLEX_API_FULL",
}
View Source
var LinkDuplex_value = map[string]uint32{
	"LINK_DUPLEX_API_UNKNOWN": 0,
	"LINK_DUPLEX_API_HALF":    1,
	"LINK_DUPLEX_API_FULL":    2,
}
View Source
var MtuProto_name = map[uint32]string{
	0: "MTU_PROTO_API_L3",
	1: "MTU_PROTO_API_IP4",
	2: "MTU_PROTO_API_IP6",
	3: "MTU_PROTO_API_MPLS",
}
View Source
var MtuProto_value = map[string]uint32{
	"MTU_PROTO_API_L3":   0,
	"MTU_PROTO_API_IP4":  1,
	"MTU_PROTO_API_IP6":  2,
	"MTU_PROTO_API_MPLS": 3,
}
View Source
var RxMode_name = map[uint32]string{
	0: "RX_MODE_API_UNKNOWN",
	1: "RX_MODE_API_POLLING",
	2: "RX_MODE_API_INTERRUPT",
	3: "RX_MODE_API_ADAPTIVE",
	4: "RX_MODE_API_DEFAULT",
}
View Source
var RxMode_value = map[string]uint32{
	"RX_MODE_API_UNKNOWN":   0,
	"RX_MODE_API_POLLING":   1,
	"RX_MODE_API_INTERRUPT": 2,
	"RX_MODE_API_ADAPTIVE":  3,
	"RX_MODE_API_DEFAULT":   4,
}
View Source
var SubIfFlags_name = map[uint32]string{
	1:   "SUB_IF_API_FLAG_NO_TAGS",
	2:   "SUB_IF_API_FLAG_ONE_TAG",
	4:   "SUB_IF_API_FLAG_TWO_TAGS",
	8:   "SUB_IF_API_FLAG_DOT1AD",
	16:  "SUB_IF_API_FLAG_EXACT_MATCH",
	32:  "SUB_IF_API_FLAG_DEFAULT",
	64:  "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY",
	128: "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY",
	254: "SUB_IF_API_FLAG_MASK_VNET",
	256: "SUB_IF_API_FLAG_DOT1AH",
}
View Source
var SubIfFlags_value = map[string]uint32{
	"SUB_IF_API_FLAG_NO_TAGS":           1,
	"SUB_IF_API_FLAG_ONE_TAG":           2,
	"SUB_IF_API_FLAG_TWO_TAGS":          4,
	"SUB_IF_API_FLAG_DOT1AD":            8,
	"SUB_IF_API_FLAG_EXACT_MATCH":       16,
	"SUB_IF_API_FLAG_DEFAULT":           32,
	"SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY": 64,
	"SUB_IF_API_FLAG_INNER_VLAN_ID_ANY": 128,
	"SUB_IF_API_FLAG_MASK_VNET":         254,
	"SUB_IF_API_FLAG_DOT1AH":            256,
}
View Source
var VrrpVrFlags_name = map[uint32]string{
	1: "VRRP_API_VR_PREEMPT",
	2: "VRRP_API_VR_ACCEPT",
	4: "VRRP_API_VR_UNICAST",
	8: "VRRP_API_VR_IPV6",
}
View Source
var VrrpVrFlags_value = map[string]uint32{
	"VRRP_API_VR_PREEMPT": 1,
	"VRRP_API_VR_ACCEPT":  2,
	"VRRP_API_VR_UNICAST": 4,
	"VRRP_API_VR_IPV6":    8,
}
View Source
var VrrpVrState_name = map[uint32]string{
	0: "VRRP_API_VR_STATE_INIT",
	1: "VRRP_API_VR_STATE_BACKUP",
	2: "VRRP_API_VR_STATE_MASTER",
	3: "VRRP_API_VR_STATE_INTF_DOWN",
}
View Source
var VrrpVrState_value = map[string]uint32{
	"VRRP_API_VR_STATE_INIT":      0,
	"VRRP_API_VR_STATE_BACKUP":    1,
	"VRRP_API_VR_STATE_MASTER":    2,
	"VRRP_API_VR_STATE_INTF_DOWN": 3,
}

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type Address

type Address struct {
	Af AddressFamily
	Un AddressUnion
}

Address represents VPP binary API type 'address'.

func (*Address) GetTypeName

func (*Address) GetTypeName() string

type AddressFamily

type AddressFamily uint8

AddressFamily represents VPP binary API enum 'address_family'.

const (
	ADDRESS_IP4 AddressFamily = 0
	ADDRESS_IP6 AddressFamily = 1
)

func (AddressFamily) String

func (x AddressFamily) String() string

type AddressUnion

type AddressUnion struct {
	XXX_UnionData [16]byte
}

AddressUnion represents VPP binary API union 'address_union'.

func AddressUnionIP4

func AddressUnionIP4(a IP4Address) (u AddressUnion)

func AddressUnionIP6

func AddressUnionIP6(a IP6Address) (u AddressUnion)

func (*AddressUnion) GetIP4

func (u *AddressUnion) GetIP4() (a IP4Address)

func (*AddressUnion) GetIP6

func (u *AddressUnion) GetIP6() (a IP6Address)

func (*AddressUnion) GetTypeName

func (*AddressUnion) GetTypeName() string

func (*AddressUnion) SetIP4

func (u *AddressUnion) SetIP4(a IP4Address)

func (*AddressUnion) SetIP6

func (u *AddressUnion) SetIP6(a IP6Address)

type AddressWithPrefix

type AddressWithPrefix Prefix

AddressWithPrefix represents VPP binary API alias 'address_with_prefix'.

type IP4Address

type IP4Address [4]uint8

IP4Address represents VPP binary API alias 'ip4_address'.

type IP4AddressWithPrefix

type IP4AddressWithPrefix IP4Prefix

IP4AddressWithPrefix represents VPP binary API alias 'ip4_address_with_prefix'.

type IP4Prefix

type IP4Prefix struct {
	Address IP4Address
	Len     uint8
}

IP4Prefix represents VPP binary API type 'ip4_prefix'.

func (*IP4Prefix) GetTypeName

func (*IP4Prefix) GetTypeName() string

type IP6Address

type IP6Address [16]uint8

IP6Address represents VPP binary API alias 'ip6_address'.

type IP6AddressWithPrefix

type IP6AddressWithPrefix IP6Prefix

IP6AddressWithPrefix represents VPP binary API alias 'ip6_address_with_prefix'.

type IP6Prefix

type IP6Prefix struct {
	Address IP6Address
	Len     uint8
}

IP6Prefix represents VPP binary API type 'ip6_prefix'.

func (*IP6Prefix) GetTypeName

func (*IP6Prefix) GetTypeName() string

type IPDscp

type IPDscp uint8

IPDscp represents VPP binary API enum 'ip_dscp'.

const (
	IP_API_DSCP_CS0  IPDscp = 0
	IP_API_DSCP_CS1  IPDscp = 8
	IP_API_DSCP_AF11 IPDscp = 10
	IP_API_DSCP_AF12 IPDscp = 12
	IP_API_DSCP_AF13 IPDscp = 14
	IP_API_DSCP_CS2  IPDscp = 16
	IP_API_DSCP_AF21 IPDscp = 18
	IP_API_DSCP_AF22 IPDscp = 20
	IP_API_DSCP_AF23 IPDscp = 22
	IP_API_DSCP_CS3  IPDscp = 24
	IP_API_DSCP_AF31 IPDscp = 26
	IP_API_DSCP_AF32 IPDscp = 28
	IP_API_DSCP_AF33 IPDscp = 30
	IP_API_DSCP_CS4  IPDscp = 32
	IP_API_DSCP_AF41 IPDscp = 34
	IP_API_DSCP_AF42 IPDscp = 36
	IP_API_DSCP_AF43 IPDscp = 38
	IP_API_DSCP_CS5  IPDscp = 40
	IP_API_DSCP_EF   IPDscp = 46
	IP_API_DSCP_CS6  IPDscp = 48
	IP_API_DSCP_CS7  IPDscp = 50
)

func (IPDscp) String

func (x IPDscp) String() string

type IPEcn

type IPEcn uint8

IPEcn represents VPP binary API enum 'ip_ecn'.

const (
	IP_API_ECN_NONE IPEcn = 0
	IP_API_ECN_ECT0 IPEcn = 1
	IP_API_ECN_ECT1 IPEcn = 2
	IP_API_ECN_CE   IPEcn = 3
)

func (IPEcn) String

func (x IPEcn) String() string

type IPProto

type IPProto uint8

IPProto represents VPP binary API enum 'ip_proto'.

const (
	IP_API_PROTO_HOPOPT   IPProto = 0
	IP_API_PROTO_ICMP     IPProto = 1
	IP_API_PROTO_IGMP     IPProto = 2
	IP_API_PROTO_TCP      IPProto = 6
	IP_API_PROTO_UDP      IPProto = 17
	IP_API_PROTO_GRE      IPProto = 47
	IP_API_PROTO_ESP      IPProto = 50
	IP_API_PROTO_AH       IPProto = 51
	IP_API_PROTO_ICMP6    IPProto = 58
	IP_API_PROTO_EIGRP    IPProto = 88
	IP_API_PROTO_OSPF     IPProto = 89
	IP_API_PROTO_SCTP     IPProto = 132
	IP_API_PROTO_RESERVED IPProto = 255
)

func (IPProto) String

func (x IPProto) String() string

type IfStatusFlags

type IfStatusFlags uint32

IfStatusFlags represents VPP binary API enum 'if_status_flags'.

const (
	IF_STATUS_API_FLAG_ADMIN_UP IfStatusFlags = 1
	IF_STATUS_API_FLAG_LINK_UP  IfStatusFlags = 2
)

func (IfStatusFlags) String

func (x IfStatusFlags) String() string

type IfType

type IfType uint32

IfType represents VPP binary API enum 'if_type'.

const (
	IF_API_TYPE_HARDWARE IfType = 0
	IF_API_TYPE_SUB      IfType = 1
	IF_API_TYPE_P2P      IfType = 2
	IF_API_TYPE_PIPE     IfType = 3
)

func (IfType) String

func (x IfType) String() string

type InterfaceIndex

type InterfaceIndex uint32

InterfaceIndex represents VPP binary API alias 'interface_index'.

type LinkDuplex

type LinkDuplex uint32

LinkDuplex represents VPP binary API enum 'link_duplex'.

const (
	LINK_DUPLEX_API_UNKNOWN LinkDuplex = 0
	LINK_DUPLEX_API_HALF    LinkDuplex = 1
	LINK_DUPLEX_API_FULL    LinkDuplex = 2
)

func (LinkDuplex) String

func (x LinkDuplex) String() string

type MacAddress

type MacAddress [6]uint8

MacAddress represents VPP binary API alias 'mac_address'.

type Mprefix

type Mprefix struct {
	Af               AddressFamily
	GrpAddressLength uint16
	GrpAddress       AddressUnion
	SrcAddress       AddressUnion
}

Mprefix represents VPP binary API type 'mprefix'.

func (*Mprefix) GetTypeName

func (*Mprefix) GetTypeName() string

type MtuProto

type MtuProto uint32

MtuProto represents VPP binary API enum 'mtu_proto'.

const (
	MTU_PROTO_API_L3   MtuProto = 0
	MTU_PROTO_API_IP4  MtuProto = 1
	MTU_PROTO_API_IP6  MtuProto = 2
	MTU_PROTO_API_MPLS MtuProto = 3
)

func (MtuProto) String

func (x MtuProto) String() string

type Prefix

type Prefix struct {
	Address Address
	Len     uint8
}

Prefix represents VPP binary API type 'prefix'.

func (*Prefix) GetTypeName

func (*Prefix) GetTypeName() string

type PrefixMatcher

type PrefixMatcher struct {
	Le uint8
	Ge uint8
}

PrefixMatcher represents VPP binary API type 'prefix_matcher'.

func (*PrefixMatcher) GetTypeName

func (*PrefixMatcher) GetTypeName() string

type RPCService

RPCService represents RPC service API for vrrp module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

type RPCService_DumpVrrpVrClient

type RPCService_DumpVrrpVrClient interface {
	Recv() (*VrrpVrDetails, error)
}

type RPCService_DumpVrrpVrPeerClient

type RPCService_DumpVrrpVrPeerClient interface {
	Recv() (*VrrpVrPeerDetails, error)
}

type RPCService_DumpVrrpVrTrackIfClient

type RPCService_DumpVrrpVrTrackIfClient interface {
	Recv() (*VrrpVrTrackIfDetails, error)
}

type RxMode

type RxMode uint32

RxMode represents VPP binary API enum 'rx_mode'.

const (
	RX_MODE_API_UNKNOWN   RxMode = 0
	RX_MODE_API_POLLING   RxMode = 1
	RX_MODE_API_INTERRUPT RxMode = 2
	RX_MODE_API_ADAPTIVE  RxMode = 3
	RX_MODE_API_DEFAULT   RxMode = 4
)

func (RxMode) String

func (x RxMode) String() string

type SubIfFlags

type SubIfFlags uint32

SubIfFlags represents VPP binary API enum 'sub_if_flags'.

const (
	SUB_IF_API_FLAG_NO_TAGS           SubIfFlags = 1
	SUB_IF_API_FLAG_ONE_TAG           SubIfFlags = 2
	SUB_IF_API_FLAG_TWO_TAGS          SubIfFlags = 4
	SUB_IF_API_FLAG_DOT1AD            SubIfFlags = 8
	SUB_IF_API_FLAG_EXACT_MATCH       SubIfFlags = 16
	SUB_IF_API_FLAG_DEFAULT           SubIfFlags = 32
	SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY SubIfFlags = 64
	SUB_IF_API_FLAG_INNER_VLAN_ID_ANY SubIfFlags = 128
	SUB_IF_API_FLAG_MASK_VNET         SubIfFlags = 254
	SUB_IF_API_FLAG_DOT1AH            SubIfFlags = 256
)

func (SubIfFlags) String

func (x SubIfFlags) String() string

type VrrpVrAddDel

type VrrpVrAddDel struct {
	IsAdd     uint8
	SwIfIndex InterfaceIndex
	VrID      uint8
	Priority  uint8
	Interval  uint16
	Flags     VrrpVrFlags
	NAddrs    uint8 `struc:"sizeof=Addrs"`
	Addrs     []Address
}

VrrpVrAddDel represents VPP binary API message 'vrrp_vr_add_del'.

func (*VrrpVrAddDel) GetCrcString

func (*VrrpVrAddDel) GetCrcString() string

func (*VrrpVrAddDel) GetMessageName

func (*VrrpVrAddDel) GetMessageName() string

func (*VrrpVrAddDel) GetMessageType

func (*VrrpVrAddDel) GetMessageType() api.MessageType

func (*VrrpVrAddDel) Reset

func (m *VrrpVrAddDel) Reset()

type VrrpVrAddDelReply

type VrrpVrAddDelReply struct {
	Retval int32
}

VrrpVrAddDelReply represents VPP binary API message 'vrrp_vr_add_del_reply'.

func (*VrrpVrAddDelReply) GetCrcString

func (*VrrpVrAddDelReply) GetCrcString() string

func (*VrrpVrAddDelReply) GetMessageName

func (*VrrpVrAddDelReply) GetMessageName() string

func (*VrrpVrAddDelReply) GetMessageType

func (*VrrpVrAddDelReply) GetMessageType() api.MessageType

func (*VrrpVrAddDelReply) Reset

func (m *VrrpVrAddDelReply) Reset()

type VrrpVrConf

type VrrpVrConf struct {
	SwIfIndex InterfaceIndex
	VrID      uint8
	Priority  uint8
	Interval  uint16
	Flags     VrrpVrFlags
}

VrrpVrConf represents VPP binary API type 'vrrp_vr_conf'.

func (*VrrpVrConf) GetTypeName

func (*VrrpVrConf) GetTypeName() string

type VrrpVrDetails

type VrrpVrDetails struct {
	Config  VrrpVrConf
	Runtime VrrpVrRuntime
	NAddrs  uint8 `struc:"sizeof=Addrs"`
	Addrs   []Address
}

VrrpVrDetails represents VPP binary API message 'vrrp_vr_details'.

func (*VrrpVrDetails) GetCrcString

func (*VrrpVrDetails) GetCrcString() string

func (*VrrpVrDetails) GetMessageName

func (*VrrpVrDetails) GetMessageName() string

func (*VrrpVrDetails) GetMessageType

func (*VrrpVrDetails) GetMessageType() api.MessageType

func (*VrrpVrDetails) Reset

func (m *VrrpVrDetails) Reset()

type VrrpVrDump

type VrrpVrDump struct {
	SwIfIndex InterfaceIndex
}

VrrpVrDump represents VPP binary API message 'vrrp_vr_dump'.

func (*VrrpVrDump) GetCrcString

func (*VrrpVrDump) GetCrcString() string

func (*VrrpVrDump) GetMessageName

func (*VrrpVrDump) GetMessageName() string

func (*VrrpVrDump) GetMessageType

func (*VrrpVrDump) GetMessageType() api.MessageType

func (*VrrpVrDump) Reset

func (m *VrrpVrDump) Reset()

type VrrpVrFlags

type VrrpVrFlags uint32

VrrpVrFlags represents VPP binary API enum 'vrrp_vr_flags'.

const (
	VRRP_API_VR_PREEMPT VrrpVrFlags = 1
	VRRP_API_VR_ACCEPT  VrrpVrFlags = 2
	VRRP_API_VR_UNICAST VrrpVrFlags = 4
	VRRP_API_VR_IPV6    VrrpVrFlags = 8
)

func (VrrpVrFlags) String

func (x VrrpVrFlags) String() string

type VrrpVrKey

type VrrpVrKey struct {
	SwIfIndex InterfaceIndex
	VrID      uint8
	IsIPv6    uint8
}

VrrpVrKey represents VPP binary API type 'vrrp_vr_key'.

func (*VrrpVrKey) GetTypeName

func (*VrrpVrKey) GetTypeName() string

type VrrpVrPeerDetails

type VrrpVrPeerDetails struct {
	SwIfIndex  InterfaceIndex
	VrID       uint8
	IsIPv6     uint8
	NPeerAddrs uint8 `struc:"sizeof=PeerAddrs"`
	PeerAddrs  []Address
}

VrrpVrPeerDetails represents VPP binary API message 'vrrp_vr_peer_details'.

func (*VrrpVrPeerDetails) GetCrcString

func (*VrrpVrPeerDetails) GetCrcString() string

func (*VrrpVrPeerDetails) GetMessageName

func (*VrrpVrPeerDetails) GetMessageName() string

func (*VrrpVrPeerDetails) GetMessageType

func (*VrrpVrPeerDetails) GetMessageType() api.MessageType

func (*VrrpVrPeerDetails) Reset

func (m *VrrpVrPeerDetails) Reset()

type VrrpVrPeerDump

type VrrpVrPeerDump struct {
	SwIfIndex InterfaceIndex
	IsIPv6    uint8
	VrID      uint8
}

VrrpVrPeerDump represents VPP binary API message 'vrrp_vr_peer_dump'.

func (*VrrpVrPeerDump) GetCrcString

func (*VrrpVrPeerDump) GetCrcString() string

func (*VrrpVrPeerDump) GetMessageName

func (*VrrpVrPeerDump) GetMessageName() string

func (*VrrpVrPeerDump) GetMessageType

func (*VrrpVrPeerDump) GetMessageType() api.MessageType

func (*VrrpVrPeerDump) Reset

func (m *VrrpVrPeerDump) Reset()

type VrrpVrRuntime

type VrrpVrRuntime struct {
	State         VrrpVrState
	MasterAdvInt  uint16
	Skew          uint16
	MasterDownInt uint16
	Mac           MacAddress
	Tracking      VrrpVrTracking
}

VrrpVrRuntime represents VPP binary API type 'vrrp_vr_runtime'.

func (*VrrpVrRuntime) GetTypeName

func (*VrrpVrRuntime) GetTypeName() string

type VrrpVrSetPeers

type VrrpVrSetPeers struct {
	SwIfIndex InterfaceIndex
	VrID      uint8
	IsIPv6    uint8
	NAddrs    uint8 `struc:"sizeof=Addrs"`
	Addrs     []Address
}

VrrpVrSetPeers represents VPP binary API message 'vrrp_vr_set_peers'.

func (*VrrpVrSetPeers) GetCrcString

func (*VrrpVrSetPeers) GetCrcString() string

func (*VrrpVrSetPeers) GetMessageName

func (*VrrpVrSetPeers) GetMessageName() string

func (*VrrpVrSetPeers) GetMessageType

func (*VrrpVrSetPeers) GetMessageType() api.MessageType

func (*VrrpVrSetPeers) Reset

func (m *VrrpVrSetPeers) Reset()

type VrrpVrSetPeersReply

type VrrpVrSetPeersReply struct {
	Retval int32
}

VrrpVrSetPeersReply represents VPP binary API message 'vrrp_vr_set_peers_reply'.

func (*VrrpVrSetPeersReply) GetCrcString

func (*VrrpVrSetPeersReply) GetCrcString() string

func (*VrrpVrSetPeersReply) GetMessageName

func (*VrrpVrSetPeersReply) GetMessageName() string

func (*VrrpVrSetPeersReply) GetMessageType

func (*VrrpVrSetPeersReply) GetMessageType() api.MessageType

func (*VrrpVrSetPeersReply) Reset

func (m *VrrpVrSetPeersReply) Reset()

type VrrpVrStartStop

type VrrpVrStartStop struct {
	SwIfIndex InterfaceIndex
	VrID      uint8
	IsIPv6    uint8
	IsStart   uint8
}

VrrpVrStartStop represents VPP binary API message 'vrrp_vr_start_stop'.

func (*VrrpVrStartStop) GetCrcString

func (*VrrpVrStartStop) GetCrcString() string

func (*VrrpVrStartStop) GetMessageName

func (*VrrpVrStartStop) GetMessageName() string

func (*VrrpVrStartStop) GetMessageType

func (*VrrpVrStartStop) GetMessageType() api.MessageType

func (*VrrpVrStartStop) Reset

func (m *VrrpVrStartStop) Reset()

type VrrpVrStartStopReply

type VrrpVrStartStopReply struct {
	Retval int32
}

VrrpVrStartStopReply represents VPP binary API message 'vrrp_vr_start_stop_reply'.

func (*VrrpVrStartStopReply) GetCrcString

func (*VrrpVrStartStopReply) GetCrcString() string

func (*VrrpVrStartStopReply) GetMessageName

func (*VrrpVrStartStopReply) GetMessageName() string

func (*VrrpVrStartStopReply) GetMessageType

func (*VrrpVrStartStopReply) GetMessageType() api.MessageType

func (*VrrpVrStartStopReply) Reset

func (m *VrrpVrStartStopReply) Reset()

type VrrpVrState

type VrrpVrState uint32

VrrpVrState represents VPP binary API enum 'vrrp_vr_state'.

const (
	VRRP_API_VR_STATE_INIT      VrrpVrState = 0
	VRRP_API_VR_STATE_BACKUP    VrrpVrState = 1
	VRRP_API_VR_STATE_MASTER    VrrpVrState = 2
	VRRP_API_VR_STATE_INTF_DOWN VrrpVrState = 3
)

func (VrrpVrState) String

func (x VrrpVrState) String() string

type VrrpVrTrackIf

type VrrpVrTrackIf struct {
	SwIfIndex InterfaceIndex
	Priority  uint8
}

VrrpVrTrackIf represents VPP binary API type 'vrrp_vr_track_if'.

func (*VrrpVrTrackIf) GetTypeName

func (*VrrpVrTrackIf) GetTypeName() string

type VrrpVrTrackIfAddDel

type VrrpVrTrackIfAddDel struct {
	SwIfIndex InterfaceIndex
	IsIPv6    uint8
	VrID      uint8
	IsAdd     uint8
	NIfs      uint8 `struc:"sizeof=Ifs"`
	Ifs       []VrrpVrTrackIf
}

VrrpVrTrackIfAddDel represents VPP binary API message 'vrrp_vr_track_if_add_del'.

func (*VrrpVrTrackIfAddDel) GetCrcString

func (*VrrpVrTrackIfAddDel) GetCrcString() string

func (*VrrpVrTrackIfAddDel) GetMessageName

func (*VrrpVrTrackIfAddDel) GetMessageName() string

func (*VrrpVrTrackIfAddDel) GetMessageType

func (*VrrpVrTrackIfAddDel) GetMessageType() api.MessageType

func (*VrrpVrTrackIfAddDel) Reset

func (m *VrrpVrTrackIfAddDel) Reset()

type VrrpVrTrackIfAddDelReply

type VrrpVrTrackIfAddDelReply struct {
	Retval int32
}

VrrpVrTrackIfAddDelReply represents VPP binary API message 'vrrp_vr_track_if_add_del_reply'.

func (*VrrpVrTrackIfAddDelReply) GetCrcString

func (*VrrpVrTrackIfAddDelReply) GetCrcString() string

func (*VrrpVrTrackIfAddDelReply) GetMessageName

func (*VrrpVrTrackIfAddDelReply) GetMessageName() string

func (*VrrpVrTrackIfAddDelReply) GetMessageType

func (*VrrpVrTrackIfAddDelReply) GetMessageType() api.MessageType

func (*VrrpVrTrackIfAddDelReply) Reset

func (m *VrrpVrTrackIfAddDelReply) Reset()

type VrrpVrTrackIfDetails

type VrrpVrTrackIfDetails struct {
	SwIfIndex InterfaceIndex
	VrID      uint8
	IsIPv6    uint8
	NIfs      uint8 `struc:"sizeof=Ifs"`
	Ifs       []VrrpVrTrackIf
}

VrrpVrTrackIfDetails represents VPP binary API message 'vrrp_vr_track_if_details'.

func (*VrrpVrTrackIfDetails) GetCrcString

func (*VrrpVrTrackIfDetails) GetCrcString() string

func (*VrrpVrTrackIfDetails) GetMessageName

func (*VrrpVrTrackIfDetails) GetMessageName() string

func (*VrrpVrTrackIfDetails) GetMessageType

func (*VrrpVrTrackIfDetails) GetMessageType() api.MessageType

func (*VrrpVrTrackIfDetails) Reset

func (m *VrrpVrTrackIfDetails) Reset()

type VrrpVrTrackIfDump

type VrrpVrTrackIfDump struct {
	SwIfIndex InterfaceIndex
	IsIPv6    uint8
	VrID      uint8
	DumpAll   uint8
}

VrrpVrTrackIfDump represents VPP binary API message 'vrrp_vr_track_if_dump'.

func (*VrrpVrTrackIfDump) GetCrcString

func (*VrrpVrTrackIfDump) GetCrcString() string

func (*VrrpVrTrackIfDump) GetMessageName

func (*VrrpVrTrackIfDump) GetMessageName() string

func (*VrrpVrTrackIfDump) GetMessageType

func (*VrrpVrTrackIfDump) GetMessageType() api.MessageType

func (*VrrpVrTrackIfDump) Reset

func (m *VrrpVrTrackIfDump) Reset()

type VrrpVrTracking

type VrrpVrTracking struct {
	InterfacesDec uint32
	Priority      uint8
}

VrrpVrTracking represents VPP binary API type 'vrrp_vr_tracking'.

func (*VrrpVrTracking) GetTypeName

func (*VrrpVrTracking) GetTypeName() string

Jump to

Keyboard shortcuts

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