vrrp

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package vrrp contains generated bindings for API file vrrp.api.

Contents: - 2 enums - 5 structs - 21 messages

Index

Constants

View Source
const (
	APIFile    = "vrrp"
	APIVersion = "1.1.1"
	VersionCrc = 0x674aea12
)

Variables

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",
	}
	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",
	}
	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 RPCService

RPCService defines RPC service vrrp.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_VrrpVrDumpClient

type RPCService_VrrpVrDumpClient interface {
	Recv() (*VrrpVrDetails, error)
	api.Stream
}

type RPCService_VrrpVrPeerDumpClient

type RPCService_VrrpVrPeerDumpClient interface {
	Recv() (*VrrpVrPeerDetails, error)
	api.Stream
}

type RPCService_VrrpVrTrackIfDumpClient

type RPCService_VrrpVrTrackIfDumpClient interface {
	Recv() (*VrrpVrTrackIfDetails, error)
	api.Stream
}

type VrrpVrAddDel

type VrrpVrAddDel struct {
	IsAdd     uint8                          `binapi:"u8,name=is_add" json:"is_add,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	VrID      uint8                          `binapi:"u8,name=vr_id" json:"vr_id,omitempty"`
	Priority  uint8                          `binapi:"u8,name=priority" json:"priority,omitempty"`
	Interval  uint16                         `binapi:"u16,name=interval" json:"interval,omitempty"`
	Flags     VrrpVrFlags                    `binapi:"vrrp_vr_flags,name=flags" json:"flags,omitempty"`
	NAddrs    uint8                          `binapi:"u8,name=n_addrs" json:"-"`
	Addrs     []ip_types.Address             `binapi:"address[n_addrs],name=addrs" json:"addrs,omitempty"`
}

VRRP: Add or delete a VRRP virtual router

  • is_add - 0 if deleting, != 0 if adding
  • sw_if_index - interface backed up by this vr
  • vr_id - the VR ID advertised by this vr
  • priority - the priority advertised for this vr
  • interval - interval between advertisements in centiseconds
  • flags - bit flags for booleans - preempt, accept, unicast, ipv6
  • n_addrs - number of addresses being backed up by this vr
  • addrs - the addresses backed up by this vr

VrrpVrAddDel defines 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) Marshal

func (m *VrrpVrAddDel) Marshal(b []byte) ([]byte, error)

func (*VrrpVrAddDel) Reset

func (m *VrrpVrAddDel) Reset()

func (*VrrpVrAddDel) Size

func (m *VrrpVrAddDel) Size() (size int)

func (*VrrpVrAddDel) Unmarshal

func (m *VrrpVrAddDel) Unmarshal(b []byte) error

type VrrpVrAddDelReply

type VrrpVrAddDelReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

VrrpVrAddDelReply defines 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) Marshal

func (m *VrrpVrAddDelReply) Marshal(b []byte) ([]byte, error)

func (*VrrpVrAddDelReply) Reset

func (m *VrrpVrAddDelReply) Reset()

func (*VrrpVrAddDelReply) Size

func (m *VrrpVrAddDelReply) Size() (size int)

func (*VrrpVrAddDelReply) Unmarshal

func (m *VrrpVrAddDelReply) Unmarshal(b []byte) error

type VrrpVrConf

type VrrpVrConf struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	VrID      uint8                          `binapi:"u8,name=vr_id" json:"vr_id,omitempty"`
	Priority  uint8                          `binapi:"u8,name=priority" json:"priority,omitempty"`
	Interval  uint16                         `binapi:"u16,name=interval" json:"interval,omitempty"`
	Flags     VrrpVrFlags                    `binapi:"vrrp_vr_flags,name=flags" json:"flags,omitempty"`
}

VrrpVrConf defines type 'vrrp_vr_conf'.

type VrrpVrDel added in v0.7.0

type VrrpVrDel struct {
	VrrpIndex uint32 `binapi:"u32,name=vrrp_index" json:"vrrp_index,omitempty"`
}

* @brief Delete an existing VRRP instance

  • - vrrp_index - index of the VRRP instance to delete

VrrpVrDel defines message 'vrrp_vr_del'.

func (*VrrpVrDel) GetCrcString added in v0.7.0

func (*VrrpVrDel) GetCrcString() string

func (*VrrpVrDel) GetMessageName added in v0.7.0

func (*VrrpVrDel) GetMessageName() string

func (*VrrpVrDel) GetMessageType added in v0.7.0

func (*VrrpVrDel) GetMessageType() api.MessageType

func (*VrrpVrDel) Marshal added in v0.7.0

func (m *VrrpVrDel) Marshal(b []byte) ([]byte, error)

func (*VrrpVrDel) Reset added in v0.7.0

func (m *VrrpVrDel) Reset()

func (*VrrpVrDel) Size added in v0.7.0

func (m *VrrpVrDel) Size() (size int)

func (*VrrpVrDel) Unmarshal added in v0.7.0

func (m *VrrpVrDel) Unmarshal(b []byte) error

type VrrpVrDelReply added in v0.7.0

type VrrpVrDelReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

VrrpVrDelReply defines message 'vrrp_vr_del_reply'.

func (*VrrpVrDelReply) GetCrcString added in v0.7.0

func (*VrrpVrDelReply) GetCrcString() string

func (*VrrpVrDelReply) GetMessageName added in v0.7.0

func (*VrrpVrDelReply) GetMessageName() string

func (*VrrpVrDelReply) GetMessageType added in v0.7.0

func (*VrrpVrDelReply) GetMessageType() api.MessageType

func (*VrrpVrDelReply) Marshal added in v0.7.0

func (m *VrrpVrDelReply) Marshal(b []byte) ([]byte, error)

func (*VrrpVrDelReply) Reset added in v0.7.0

func (m *VrrpVrDelReply) Reset()

func (*VrrpVrDelReply) Size added in v0.7.0

func (m *VrrpVrDelReply) Size() (size int)

func (*VrrpVrDelReply) Unmarshal added in v0.7.0

func (m *VrrpVrDelReply) Unmarshal(b []byte) error

type VrrpVrDetails

type VrrpVrDetails struct {
	Config  VrrpVrConf         `binapi:"vrrp_vr_conf,name=config" json:"config,omitempty"`
	Runtime VrrpVrRuntime      `binapi:"vrrp_vr_runtime,name=runtime" json:"runtime,omitempty"`
	NAddrs  uint8              `binapi:"u8,name=n_addrs" json:"-"`
	Addrs   []ip_types.Address `binapi:"address[n_addrs],name=addrs" json:"addrs,omitempty"`
}

VRRP: VR dump response

  • conf - configuration parameters for the VR
  • runtime - runtime state for the VR

VrrpVrDetails defines 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) Marshal

func (m *VrrpVrDetails) Marshal(b []byte) ([]byte, error)

func (*VrrpVrDetails) Reset

func (m *VrrpVrDetails) Reset()

func (*VrrpVrDetails) Size

func (m *VrrpVrDetails) Size() (size int)

func (*VrrpVrDetails) Unmarshal

func (m *VrrpVrDetails) Unmarshal(b []byte) error

type VrrpVrDump

type VrrpVrDump struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

VRRP: dump virtual router data

  • sw_if_index - interface to use as filter (0,~0 == "all")

VrrpVrDump defines 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) Marshal

func (m *VrrpVrDump) Marshal(b []byte) ([]byte, error)

func (*VrrpVrDump) Reset

func (m *VrrpVrDump) Reset()

func (*VrrpVrDump) Size

func (m *VrrpVrDump) Size() (size int)

func (*VrrpVrDump) Unmarshal

func (m *VrrpVrDump) Unmarshal(b []byte) error

type VrrpVrEvent

type VrrpVrEvent struct {
	PID      uint32      `binapi:"u32,name=pid" json:"pid,omitempty"`
	Vr       VrrpVrKey   `binapi:"vrrp_vr_key,name=vr" json:"vr,omitempty"`
	OldState VrrpVrState `binapi:"vrrp_vr_state,name=old_state" json:"old_state,omitempty"`
	NewState VrrpVrState `binapi:"vrrp_vr_state,name=new_state" json:"new_state,omitempty"`
}

Notification about VRRP VR state change event

  • pid - client pid registered to receive notification
  • vr - configuration parameters identifying the VR
  • old_state - old state of VR
  • new_state - new state of VR

VrrpVrEvent defines message 'vrrp_vr_event'.

func (*VrrpVrEvent) GetCrcString

func (*VrrpVrEvent) GetCrcString() string

func (*VrrpVrEvent) GetMessageName

func (*VrrpVrEvent) GetMessageName() string

func (*VrrpVrEvent) GetMessageType

func (*VrrpVrEvent) GetMessageType() api.MessageType

func (*VrrpVrEvent) Marshal

func (m *VrrpVrEvent) Marshal(b []byte) ([]byte, error)

func (*VrrpVrEvent) Reset

func (m *VrrpVrEvent) Reset()

func (*VrrpVrEvent) Size

func (m *VrrpVrEvent) Size() (size int)

func (*VrrpVrEvent) Unmarshal

func (m *VrrpVrEvent) Unmarshal(b []byte) error

type VrrpVrFlags

type VrrpVrFlags uint32

VrrpVrFlags defines 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 interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	VrID      uint8                          `binapi:"u8,name=vr_id" json:"vr_id,omitempty"`
	IsIPv6    uint8                          `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"`
}

VrrpVrKey defines type 'vrrp_vr_key'.

type VrrpVrPeerDetails

type VrrpVrPeerDetails struct {
	SwIfIndex  interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	VrID       uint8                          `binapi:"u8,name=vr_id" json:"vr_id,omitempty"`
	IsIPv6     uint8                          `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"`
	NPeerAddrs uint8                          `binapi:"u8,name=n_peer_addrs" json:"-"`
	PeerAddrs  []ip_types.Address             `binapi:"address[n_peer_addrs],name=peer_addrs" json:"peer_addrs,omitempty"`
}

VRRP: VR peer dump response

  • sw_if_index - interface index
  • is_ipv6 - 0 -> IPv4, 1 -> IPv6
  • vr_id - ID of VR
  • n_peer_addrs - number of peer addresses
  • peer_addrs - peer addresses

VrrpVrPeerDetails defines 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) Marshal

func (m *VrrpVrPeerDetails) Marshal(b []byte) ([]byte, error)

func (*VrrpVrPeerDetails) Reset

func (m *VrrpVrPeerDetails) Reset()

func (*VrrpVrPeerDetails) Size

func (m *VrrpVrPeerDetails) Size() (size int)

func (*VrrpVrPeerDetails) Unmarshal

func (m *VrrpVrPeerDetails) Unmarshal(b []byte) error

type VrrpVrPeerDump

type VrrpVrPeerDump struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	IsIPv6    uint8                          `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"`
	VrID      uint8                          `binapi:"u8,name=vr_id" json:"vr_id,omitempty"`
}

VRRP: dump virtual router peer address data

  • sw_if_index - interface (0,~0 == "all" -> ignore is_ipv6 & vr_id))
  • is_ipv6 - 0 -> IPv4, 1 -> IPv6
  • vr_id - ID of VR to dump

VrrpVrPeerDump defines 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) Marshal

func (m *VrrpVrPeerDump) Marshal(b []byte) ([]byte, error)

func (*VrrpVrPeerDump) Reset

func (m *VrrpVrPeerDump) Reset()

func (*VrrpVrPeerDump) Size

func (m *VrrpVrPeerDump) Size() (size int)

func (*VrrpVrPeerDump) Unmarshal

func (m *VrrpVrPeerDump) Unmarshal(b []byte) error

type VrrpVrRuntime

type VrrpVrRuntime struct {
	State         VrrpVrState               `binapi:"vrrp_vr_state,name=state" json:"state,omitempty"`
	MasterAdvInt  uint16                    `binapi:"u16,name=master_adv_int" json:"master_adv_int,omitempty"`
	Skew          uint16                    `binapi:"u16,name=skew" json:"skew,omitempty"`
	MasterDownInt uint16                    `binapi:"u16,name=master_down_int" json:"master_down_int,omitempty"`
	Mac           ethernet_types.MacAddress `binapi:"mac_address,name=mac" json:"mac,omitempty"`
	Tracking      VrrpVrTracking            `binapi:"vrrp_vr_tracking,name=tracking" json:"tracking,omitempty"`
}

VrrpVrRuntime defines type 'vrrp_vr_runtime'.

type VrrpVrSetPeers

type VrrpVrSetPeers struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	VrID      uint8                          `binapi:"u8,name=vr_id" json:"vr_id,omitempty"`
	IsIPv6    uint8                          `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"`
	NAddrs    uint8                          `binapi:"u8,name=n_addrs" json:"-"`
	Addrs     []ip_types.Address             `binapi:"address[n_addrs],name=addrs" json:"addrs,omitempty"`
}

VRRP: set unicast peers for a VR

  • sw_if_index - interface ID that VR is backing up
  • vr_id - VR ID
  • is_ipv6 - 1 for IPv6, 0 for IPv4
  • n_addrs - number of peer addresses
  • addrs - peer addresses

VrrpVrSetPeers defines 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) Marshal

func (m *VrrpVrSetPeers) Marshal(b []byte) ([]byte, error)

func (*VrrpVrSetPeers) Reset

func (m *VrrpVrSetPeers) Reset()

func (*VrrpVrSetPeers) Size

func (m *VrrpVrSetPeers) Size() (size int)

func (*VrrpVrSetPeers) Unmarshal

func (m *VrrpVrSetPeers) Unmarshal(b []byte) error

type VrrpVrSetPeersReply

type VrrpVrSetPeersReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

VrrpVrSetPeersReply defines 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) Marshal

func (m *VrrpVrSetPeersReply) Marshal(b []byte) ([]byte, error)

func (*VrrpVrSetPeersReply) Reset

func (m *VrrpVrSetPeersReply) Reset()

func (*VrrpVrSetPeersReply) Size

func (m *VrrpVrSetPeersReply) Size() (size int)

func (*VrrpVrSetPeersReply) Unmarshal

func (m *VrrpVrSetPeersReply) Unmarshal(b []byte) error

type VrrpVrStartStop

type VrrpVrStartStop struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	VrID      uint8                          `binapi:"u8,name=vr_id" json:"vr_id,omitempty"`
	IsIPv6    uint8                          `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"`
	IsStart   uint8                          `binapi:"u8,name=is_start" json:"is_start,omitempty"`
}

VRRP: start or shutdown the VRRP protocol for a virtual router

  • sw_if_index - interface ID that VR is backing up
  • vr_id - VR ID
  • is_ipv6 - 1 for IPv6, 0 for IPv4
  • is_start - 1 to start VRRP proto on this VR, 0 to shutdown

VrrpVrStartStop defines 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) Marshal

func (m *VrrpVrStartStop) Marshal(b []byte) ([]byte, error)

func (*VrrpVrStartStop) Reset

func (m *VrrpVrStartStop) Reset()

func (*VrrpVrStartStop) Size

func (m *VrrpVrStartStop) Size() (size int)

func (*VrrpVrStartStop) Unmarshal

func (m *VrrpVrStartStop) Unmarshal(b []byte) error

type VrrpVrStartStopReply

type VrrpVrStartStopReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

VrrpVrStartStopReply defines 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) Marshal

func (m *VrrpVrStartStopReply) Marshal(b []byte) ([]byte, error)

func (*VrrpVrStartStopReply) Reset

func (m *VrrpVrStartStopReply) Reset()

func (*VrrpVrStartStopReply) Size

func (m *VrrpVrStartStopReply) Size() (size int)

func (*VrrpVrStartStopReply) Unmarshal

func (m *VrrpVrStartStopReply) Unmarshal(b []byte) error

type VrrpVrState

type VrrpVrState uint32

VrrpVrState defines 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 interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Priority  uint8                          `binapi:"u8,name=priority" json:"priority,omitempty"`
}

VrrpVrTrackIf defines type 'vrrp_vr_track_if'.

type VrrpVrTrackIfAddDel

type VrrpVrTrackIfAddDel struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	IsIPv6    uint8                          `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"`
	VrID      uint8                          `binapi:"u8,name=vr_id" json:"vr_id,omitempty"`
	IsAdd     uint8                          `binapi:"u8,name=is_add" json:"is_add,omitempty"`
	NIfs      uint8                          `binapi:"u8,name=n_ifs" json:"-"`
	Ifs       []VrrpVrTrackIf                `binapi:"vrrp_vr_track_if[n_ifs],name=ifs" json:"ifs,omitempty"`
}

VRRP: Add/delete VR priority tracking of interface status

  • sw_if_index - interface index
  • is_ipv6 - 0 -> IPv4, 1 -> IPv6
  • vr_id - ID of VR
  • is_add - 0 -> delete, 1 -> add
  • n_ifs - number of interface tracking records
  • ifs - array of interface tracking records

VrrpVrTrackIfAddDel defines 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) Marshal

func (m *VrrpVrTrackIfAddDel) Marshal(b []byte) ([]byte, error)

func (*VrrpVrTrackIfAddDel) Reset

func (m *VrrpVrTrackIfAddDel) Reset()

func (*VrrpVrTrackIfAddDel) Size

func (m *VrrpVrTrackIfAddDel) Size() (size int)

func (*VrrpVrTrackIfAddDel) Unmarshal

func (m *VrrpVrTrackIfAddDel) Unmarshal(b []byte) error

type VrrpVrTrackIfAddDelReply

type VrrpVrTrackIfAddDelReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

VrrpVrTrackIfAddDelReply defines 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) Marshal

func (m *VrrpVrTrackIfAddDelReply) Marshal(b []byte) ([]byte, error)

func (*VrrpVrTrackIfAddDelReply) Reset

func (m *VrrpVrTrackIfAddDelReply) Reset()

func (*VrrpVrTrackIfAddDelReply) Size

func (m *VrrpVrTrackIfAddDelReply) Size() (size int)

func (*VrrpVrTrackIfAddDelReply) Unmarshal

func (m *VrrpVrTrackIfAddDelReply) Unmarshal(b []byte) error

type VrrpVrTrackIfDetails

type VrrpVrTrackIfDetails struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	VrID      uint8                          `binapi:"u8,name=vr_id" json:"vr_id,omitempty"`
	IsIPv6    uint8                          `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"`
	NIfs      uint8                          `binapi:"u8,name=n_ifs" json:"-"`
	Ifs       []VrrpVrTrackIf                `binapi:"vrrp_vr_track_if[n_ifs],name=ifs" json:"ifs,omitempty"`
}

VRRP: VR interface tracking dump response

  • sw_if_index - interface index
  • is_ipv6 - 0 -> IPv4, 1 -> IPv6
  • vr_id - ID of VR
  • n_ifs - number of tracked interfaces
  • ifs - array of tracked interface data

VrrpVrTrackIfDetails defines 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) Marshal

func (m *VrrpVrTrackIfDetails) Marshal(b []byte) ([]byte, error)

func (*VrrpVrTrackIfDetails) Reset

func (m *VrrpVrTrackIfDetails) Reset()

func (*VrrpVrTrackIfDetails) Size

func (m *VrrpVrTrackIfDetails) Size() (size int)

func (*VrrpVrTrackIfDetails) Unmarshal

func (m *VrrpVrTrackIfDetails) Unmarshal(b []byte) error

type VrrpVrTrackIfDump

type VrrpVrTrackIfDump struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	IsIPv6    uint8                          `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"`
	VrID      uint8                          `binapi:"u8,name=vr_id" json:"vr_id,omitempty"`
	DumpAll   uint8                          `binapi:"u8,name=dump_all" json:"dump_all,omitempty"`
}

VRRP: dump virtual router interface tracking data

  • sw_if_index - interface
  • is_ipv6 - 0 -> IPv4, 1 -> IPv6
  • vr_id - ID of VR to dump
  • dump_all - dump all VR interface tracking, ignore other fields

VrrpVrTrackIfDump defines 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) Marshal

func (m *VrrpVrTrackIfDump) Marshal(b []byte) ([]byte, error)

func (*VrrpVrTrackIfDump) Reset

func (m *VrrpVrTrackIfDump) Reset()

func (*VrrpVrTrackIfDump) Size

func (m *VrrpVrTrackIfDump) Size() (size int)

func (*VrrpVrTrackIfDump) Unmarshal

func (m *VrrpVrTrackIfDump) Unmarshal(b []byte) error

type VrrpVrTracking

type VrrpVrTracking struct {
	InterfacesDec uint32 `binapi:"u32,name=interfaces_dec" json:"interfaces_dec,omitempty"`
	Priority      uint8  `binapi:"u8,name=priority" json:"priority,omitempty"`
}

VrrpVrTracking defines type 'vrrp_vr_tracking'.

type VrrpVrUpdate added in v0.7.0

type VrrpVrUpdate struct {
	VrrpIndex uint32                         `binapi:"u32,name=vrrp_index" json:"vrrp_index,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	VrID      uint8                          `binapi:"u8,name=vr_id" json:"vr_id,omitempty"`
	Priority  uint8                          `binapi:"u8,name=priority" json:"priority,omitempty"`
	Interval  uint16                         `binapi:"u16,name=interval" json:"interval,omitempty"`
	Flags     VrrpVrFlags                    `binapi:"vrrp_vr_flags,name=flags" json:"flags,omitempty"`
	NAddrs    uint8                          `binapi:"u8,name=n_addrs" json:"-"`
	Addrs     []ip_types.Address             `binapi:"address[n_addrs],name=addrs" json:"addrs,omitempty"`
}

@brief Replace an existing VRRP virtual router in-place or create a new one

  • vrrp_index - an existing VRRP entry to replace, or 0xffffffff to crate a new one
  • sw_if_index - interface backed up by this vr
  • vr_id - the VR ID advertised by this vr
  • priority - the priority advertised for this vr
  • interval - interval between advertisements in centiseconds
  • flags - bit flags for booleans - preempt, accept, unicast, ipv6
  • n_addrs - number of addresses being backed up by this vr
  • addrs - the addresses backed up by this vr

VrrpVrUpdate defines message 'vrrp_vr_update'.

func (*VrrpVrUpdate) GetCrcString added in v0.7.0

func (*VrrpVrUpdate) GetCrcString() string

func (*VrrpVrUpdate) GetMessageName added in v0.7.0

func (*VrrpVrUpdate) GetMessageName() string

func (*VrrpVrUpdate) GetMessageType added in v0.7.0

func (*VrrpVrUpdate) GetMessageType() api.MessageType

func (*VrrpVrUpdate) Marshal added in v0.7.0

func (m *VrrpVrUpdate) Marshal(b []byte) ([]byte, error)

func (*VrrpVrUpdate) Reset added in v0.7.0

func (m *VrrpVrUpdate) Reset()

func (*VrrpVrUpdate) Size added in v0.7.0

func (m *VrrpVrUpdate) Size() (size int)

func (*VrrpVrUpdate) Unmarshal added in v0.7.0

func (m *VrrpVrUpdate) Unmarshal(b []byte) error

type VrrpVrUpdateReply added in v0.7.0

type VrrpVrUpdateReply struct {
	Retval    int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	VrrpIndex uint32 `binapi:"u32,name=vrrp_index" json:"vrrp_index,omitempty"`
}

* @brief Reply to a VRRP add/replace

  • - vrrp_index - index of the updated or newly created VRRP instance
  • - retval 0 - no error

VrrpVrUpdateReply defines message 'vrrp_vr_update_reply'.

func (*VrrpVrUpdateReply) GetCrcString added in v0.7.0

func (*VrrpVrUpdateReply) GetCrcString() string

func (*VrrpVrUpdateReply) GetMessageName added in v0.7.0

func (*VrrpVrUpdateReply) GetMessageName() string

func (*VrrpVrUpdateReply) GetMessageType added in v0.7.0

func (*VrrpVrUpdateReply) GetMessageType() api.MessageType

func (*VrrpVrUpdateReply) Marshal added in v0.7.0

func (m *VrrpVrUpdateReply) Marshal(b []byte) ([]byte, error)

func (*VrrpVrUpdateReply) Reset added in v0.7.0

func (m *VrrpVrUpdateReply) Reset()

func (*VrrpVrUpdateReply) Size added in v0.7.0

func (m *VrrpVrUpdateReply) Size() (size int)

func (*VrrpVrUpdateReply) Unmarshal added in v0.7.0

func (m *VrrpVrUpdateReply) Unmarshal(b []byte) error

type WantVrrpVrEvents

type WantVrrpVrEvents struct {
	EnableDisable bool   `binapi:"bool,name=enable_disable" json:"enable_disable,omitempty"`
	PID           uint32 `binapi:"u32,name=pid" json:"pid,omitempty"`
}

Register for VRRP VR state change events

  • enable_disable - 1 to register, 0 to cancel registration
  • pid - sender's pid

WantVrrpVrEvents defines message 'want_vrrp_vr_events'.

func (*WantVrrpVrEvents) GetCrcString

func (*WantVrrpVrEvents) GetCrcString() string

func (*WantVrrpVrEvents) GetMessageName

func (*WantVrrpVrEvents) GetMessageName() string

func (*WantVrrpVrEvents) GetMessageType

func (*WantVrrpVrEvents) GetMessageType() api.MessageType

func (*WantVrrpVrEvents) Marshal

func (m *WantVrrpVrEvents) Marshal(b []byte) ([]byte, error)

func (*WantVrrpVrEvents) Reset

func (m *WantVrrpVrEvents) Reset()

func (*WantVrrpVrEvents) Size

func (m *WantVrrpVrEvents) Size() (size int)

func (*WantVrrpVrEvents) Unmarshal

func (m *WantVrrpVrEvents) Unmarshal(b []byte) error

type WantVrrpVrEventsReply

type WantVrrpVrEventsReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

WantVrrpVrEventsReply defines message 'want_vrrp_vr_events_reply'.

func (*WantVrrpVrEventsReply) GetCrcString

func (*WantVrrpVrEventsReply) GetCrcString() string

func (*WantVrrpVrEventsReply) GetMessageName

func (*WantVrrpVrEventsReply) GetMessageName() string

func (*WantVrrpVrEventsReply) GetMessageType

func (*WantVrrpVrEventsReply) GetMessageType() api.MessageType

func (*WantVrrpVrEventsReply) Marshal

func (m *WantVrrpVrEventsReply) Marshal(b []byte) ([]byte, error)

func (*WantVrrpVrEventsReply) Reset

func (m *WantVrrpVrEventsReply) Reset()

func (*WantVrrpVrEventsReply) Size

func (m *WantVrrpVrEventsReply) Size() (size int)

func (*WantVrrpVrEventsReply) Unmarshal

func (m *WantVrrpVrEventsReply) Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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