Documentation ¶
Overview ¶
Package vrrp contains generated bindings for API file vrrp.api.
Contents:
2 enums 5 structs 14 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type RPCService
- type RPCService_VrrpVrDumpClient
- type RPCService_VrrpVrPeerDumpClient
- type RPCService_VrrpVrTrackIfDumpClient
- type VrrpVrAddDel
- func (*VrrpVrAddDel) GetCrcString() string
- func (*VrrpVrAddDel) GetMessageName() string
- func (*VrrpVrAddDel) GetMessageType() api.MessageType
- func (m *VrrpVrAddDel) Marshal(b []byte) ([]byte, error)
- func (m *VrrpVrAddDel) Reset()
- func (m *VrrpVrAddDel) Size() (size int)
- func (m *VrrpVrAddDel) Unmarshal(b []byte) error
- type VrrpVrAddDelReply
- func (*VrrpVrAddDelReply) GetCrcString() string
- func (*VrrpVrAddDelReply) GetMessageName() string
- func (*VrrpVrAddDelReply) GetMessageType() api.MessageType
- func (m *VrrpVrAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *VrrpVrAddDelReply) Reset()
- func (m *VrrpVrAddDelReply) Size() (size int)
- func (m *VrrpVrAddDelReply) Unmarshal(b []byte) error
- type VrrpVrConf
- type VrrpVrDetails
- func (*VrrpVrDetails) GetCrcString() string
- func (*VrrpVrDetails) GetMessageName() string
- func (*VrrpVrDetails) GetMessageType() api.MessageType
- func (m *VrrpVrDetails) Marshal(b []byte) ([]byte, error)
- func (m *VrrpVrDetails) Reset()
- func (m *VrrpVrDetails) Size() (size int)
- func (m *VrrpVrDetails) Unmarshal(b []byte) error
- type VrrpVrDump
- func (*VrrpVrDump) GetCrcString() string
- func (*VrrpVrDump) GetMessageName() string
- func (*VrrpVrDump) GetMessageType() api.MessageType
- func (m *VrrpVrDump) Marshal(b []byte) ([]byte, error)
- func (m *VrrpVrDump) Reset()
- func (m *VrrpVrDump) Size() (size int)
- func (m *VrrpVrDump) Unmarshal(b []byte) error
- type VrrpVrFlags
- type VrrpVrKey
- type VrrpVrPeerDetails
- func (*VrrpVrPeerDetails) GetCrcString() string
- func (*VrrpVrPeerDetails) GetMessageName() string
- func (*VrrpVrPeerDetails) GetMessageType() api.MessageType
- func (m *VrrpVrPeerDetails) Marshal(b []byte) ([]byte, error)
- func (m *VrrpVrPeerDetails) Reset()
- func (m *VrrpVrPeerDetails) Size() (size int)
- func (m *VrrpVrPeerDetails) Unmarshal(b []byte) error
- type VrrpVrPeerDump
- func (*VrrpVrPeerDump) GetCrcString() string
- func (*VrrpVrPeerDump) GetMessageName() string
- func (*VrrpVrPeerDump) GetMessageType() api.MessageType
- func (m *VrrpVrPeerDump) Marshal(b []byte) ([]byte, error)
- func (m *VrrpVrPeerDump) Reset()
- func (m *VrrpVrPeerDump) Size() (size int)
- func (m *VrrpVrPeerDump) Unmarshal(b []byte) error
- type VrrpVrRuntime
- type VrrpVrSetPeers
- func (*VrrpVrSetPeers) GetCrcString() string
- func (*VrrpVrSetPeers) GetMessageName() string
- func (*VrrpVrSetPeers) GetMessageType() api.MessageType
- func (m *VrrpVrSetPeers) Marshal(b []byte) ([]byte, error)
- func (m *VrrpVrSetPeers) Reset()
- func (m *VrrpVrSetPeers) Size() (size int)
- func (m *VrrpVrSetPeers) Unmarshal(b []byte) error
- type VrrpVrSetPeersReply
- func (*VrrpVrSetPeersReply) GetCrcString() string
- func (*VrrpVrSetPeersReply) GetMessageName() string
- func (*VrrpVrSetPeersReply) GetMessageType() api.MessageType
- func (m *VrrpVrSetPeersReply) Marshal(b []byte) ([]byte, error)
- func (m *VrrpVrSetPeersReply) Reset()
- func (m *VrrpVrSetPeersReply) Size() (size int)
- func (m *VrrpVrSetPeersReply) Unmarshal(b []byte) error
- type VrrpVrStartStop
- func (*VrrpVrStartStop) GetCrcString() string
- func (*VrrpVrStartStop) GetMessageName() string
- func (*VrrpVrStartStop) GetMessageType() api.MessageType
- func (m *VrrpVrStartStop) Marshal(b []byte) ([]byte, error)
- func (m *VrrpVrStartStop) Reset()
- func (m *VrrpVrStartStop) Size() (size int)
- func (m *VrrpVrStartStop) Unmarshal(b []byte) error
- type VrrpVrStartStopReply
- func (*VrrpVrStartStopReply) GetCrcString() string
- func (*VrrpVrStartStopReply) GetMessageName() string
- func (*VrrpVrStartStopReply) GetMessageType() api.MessageType
- func (m *VrrpVrStartStopReply) Marshal(b []byte) ([]byte, error)
- func (m *VrrpVrStartStopReply) Reset()
- func (m *VrrpVrStartStopReply) Size() (size int)
- func (m *VrrpVrStartStopReply) Unmarshal(b []byte) error
- type VrrpVrState
- type VrrpVrTrackIf
- type VrrpVrTrackIfAddDel
- func (*VrrpVrTrackIfAddDel) GetCrcString() string
- func (*VrrpVrTrackIfAddDel) GetMessageName() string
- func (*VrrpVrTrackIfAddDel) GetMessageType() api.MessageType
- func (m *VrrpVrTrackIfAddDel) Marshal(b []byte) ([]byte, error)
- func (m *VrrpVrTrackIfAddDel) Reset()
- func (m *VrrpVrTrackIfAddDel) Size() (size int)
- func (m *VrrpVrTrackIfAddDel) Unmarshal(b []byte) error
- type VrrpVrTrackIfAddDelReply
- func (*VrrpVrTrackIfAddDelReply) GetCrcString() string
- func (*VrrpVrTrackIfAddDelReply) GetMessageName() string
- func (*VrrpVrTrackIfAddDelReply) GetMessageType() api.MessageType
- func (m *VrrpVrTrackIfAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *VrrpVrTrackIfAddDelReply) Reset()
- func (m *VrrpVrTrackIfAddDelReply) Size() (size int)
- func (m *VrrpVrTrackIfAddDelReply) Unmarshal(b []byte) error
- type VrrpVrTrackIfDetails
- func (*VrrpVrTrackIfDetails) GetCrcString() string
- func (*VrrpVrTrackIfDetails) GetMessageName() string
- func (*VrrpVrTrackIfDetails) GetMessageType() api.MessageType
- func (m *VrrpVrTrackIfDetails) Marshal(b []byte) ([]byte, error)
- func (m *VrrpVrTrackIfDetails) Reset()
- func (m *VrrpVrTrackIfDetails) Size() (size int)
- func (m *VrrpVrTrackIfDetails) Unmarshal(b []byte) error
- type VrrpVrTrackIfDump
- func (*VrrpVrTrackIfDump) GetCrcString() string
- func (*VrrpVrTrackIfDump) GetMessageName() string
- func (*VrrpVrTrackIfDump) GetMessageType() api.MessageType
- func (m *VrrpVrTrackIfDump) Marshal(b []byte) ([]byte, error)
- func (m *VrrpVrTrackIfDump) Reset()
- func (m *VrrpVrTrackIfDump) Size() (size int)
- func (m *VrrpVrTrackIfDump) Unmarshal(b []byte) error
- type VrrpVrTracking
Constants ¶
const ( APIFile = "vrrp" APIVersion = "1.0.1" VersionCrc = 0xdbefa2cd )
Variables ¶
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, } )
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 ¶
Messages returns list of all messages in this module.
Types ¶
type RPCService ¶
type RPCService interface { VrrpVrAddDel(ctx context.Context, in *VrrpVrAddDel) (*VrrpVrAddDelReply, error) VrrpVrDump(ctx context.Context, in *VrrpVrDump) (RPCService_VrrpVrDumpClient, error) VrrpVrPeerDump(ctx context.Context, in *VrrpVrPeerDump) (RPCService_VrrpVrPeerDumpClient, error) VrrpVrSetPeers(ctx context.Context, in *VrrpVrSetPeers) (*VrrpVrSetPeersReply, error) VrrpVrStartStop(ctx context.Context, in *VrrpVrStartStop) (*VrrpVrStartStopReply, error) VrrpVrTrackIfAddDel(ctx context.Context, in *VrrpVrTrackIfAddDel) (*VrrpVrTrackIfAddDelReply, error) VrrpVrTrackIfDump(ctx context.Context, in *VrrpVrTrackIfDump) (RPCService_VrrpVrTrackIfDumpClient, error) }
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"` }
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) 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) 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 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"` }
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) 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"`
}
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) 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 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"` }
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) 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"` }
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) 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"` }
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) 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"` }
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) 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"` }
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"` }
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"` }
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) 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'.