Documentation
¶
Overview ¶
Package lcp contains generated bindings for API file lcp.api.
Contents: - 1 enum - 23 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type LcpDefaultNsGet
- func (*LcpDefaultNsGet) GetCrcString() string
- func (*LcpDefaultNsGet) GetMessageName() string
- func (*LcpDefaultNsGet) GetMessageType() api.MessageType
- func (m *LcpDefaultNsGet) Marshal(b []byte) ([]byte, error)
- func (m *LcpDefaultNsGet) Reset()
- func (m *LcpDefaultNsGet) Size() (size int)
- func (m *LcpDefaultNsGet) Unmarshal(b []byte) error
- type LcpDefaultNsGetReply
- func (*LcpDefaultNsGetReply) GetCrcString() string
- func (*LcpDefaultNsGetReply) GetMessageName() string
- func (*LcpDefaultNsGetReply) GetMessageType() api.MessageType
- func (m *LcpDefaultNsGetReply) Marshal(b []byte) ([]byte, error)
- func (m *LcpDefaultNsGetReply) Reset()
- func (m *LcpDefaultNsGetReply) Size() (size int)
- func (m *LcpDefaultNsGetReply) Unmarshal(b []byte) error
- type LcpDefaultNsSet
- func (*LcpDefaultNsSet) GetCrcString() string
- func (*LcpDefaultNsSet) GetMessageName() string
- func (*LcpDefaultNsSet) GetMessageType() api.MessageType
- func (m *LcpDefaultNsSet) Marshal(b []byte) ([]byte, error)
- func (m *LcpDefaultNsSet) Reset()
- func (m *LcpDefaultNsSet) Size() (size int)
- func (m *LcpDefaultNsSet) Unmarshal(b []byte) error
- type LcpDefaultNsSetReply
- func (*LcpDefaultNsSetReply) GetCrcString() string
- func (*LcpDefaultNsSetReply) GetMessageName() string
- func (*LcpDefaultNsSetReply) GetMessageType() api.MessageType
- func (m *LcpDefaultNsSetReply) Marshal(b []byte) ([]byte, error)
- func (m *LcpDefaultNsSetReply) Reset()
- func (m *LcpDefaultNsSetReply) Size() (size int)
- func (m *LcpDefaultNsSetReply) Unmarshal(b []byte) error
- type LcpEthertypeEnable
- func (*LcpEthertypeEnable) GetCrcString() string
- func (*LcpEthertypeEnable) GetMessageName() string
- func (*LcpEthertypeEnable) GetMessageType() api.MessageType
- func (m *LcpEthertypeEnable) Marshal(b []byte) ([]byte, error)
- func (m *LcpEthertypeEnable) Reset()
- func (m *LcpEthertypeEnable) Size() (size int)
- func (m *LcpEthertypeEnable) Unmarshal(b []byte) error
- type LcpEthertypeEnableReply
- func (*LcpEthertypeEnableReply) GetCrcString() string
- func (*LcpEthertypeEnableReply) GetMessageName() string
- func (*LcpEthertypeEnableReply) GetMessageType() api.MessageType
- func (m *LcpEthertypeEnableReply) Marshal(b []byte) ([]byte, error)
- func (m *LcpEthertypeEnableReply) Reset()
- func (m *LcpEthertypeEnableReply) Size() (size int)
- func (m *LcpEthertypeEnableReply) Unmarshal(b []byte) error
- type LcpEthertypeGet
- func (*LcpEthertypeGet) GetCrcString() string
- func (*LcpEthertypeGet) GetMessageName() string
- func (*LcpEthertypeGet) GetMessageType() api.MessageType
- func (m *LcpEthertypeGet) Marshal(b []byte) ([]byte, error)
- func (m *LcpEthertypeGet) Reset()
- func (m *LcpEthertypeGet) Size() (size int)
- func (m *LcpEthertypeGet) Unmarshal(b []byte) error
- type LcpEthertypeGetReply
- func (*LcpEthertypeGetReply) GetCrcString() string
- func (*LcpEthertypeGetReply) GetMessageName() string
- func (*LcpEthertypeGetReply) GetMessageType() api.MessageType
- func (m *LcpEthertypeGetReply) Marshal(b []byte) ([]byte, error)
- func (m *LcpEthertypeGetReply) Reset()
- func (m *LcpEthertypeGetReply) Size() (size int)
- func (m *LcpEthertypeGetReply) Unmarshal(b []byte) error
- type LcpItfHostType
- type LcpItfPairAddDel
- func (*LcpItfPairAddDel) GetCrcString() string
- func (*LcpItfPairAddDel) GetMessageName() string
- func (*LcpItfPairAddDel) GetMessageType() api.MessageType
- func (m *LcpItfPairAddDel) Marshal(b []byte) ([]byte, error)
- func (m *LcpItfPairAddDel) Reset()
- func (m *LcpItfPairAddDel) Size() (size int)
- func (m *LcpItfPairAddDel) Unmarshal(b []byte) error
- type LcpItfPairAddDelReply
- func (*LcpItfPairAddDelReply) GetCrcString() string
- func (*LcpItfPairAddDelReply) GetMessageName() string
- func (*LcpItfPairAddDelReply) GetMessageType() api.MessageType
- func (m *LcpItfPairAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *LcpItfPairAddDelReply) Reset()
- func (m *LcpItfPairAddDelReply) Size() (size int)
- func (m *LcpItfPairAddDelReply) Unmarshal(b []byte) error
- type LcpItfPairAddDelV2
- func (*LcpItfPairAddDelV2) GetCrcString() string
- func (*LcpItfPairAddDelV2) GetMessageName() string
- func (*LcpItfPairAddDelV2) GetMessageType() api.MessageType
- func (m *LcpItfPairAddDelV2) Marshal(b []byte) ([]byte, error)
- func (m *LcpItfPairAddDelV2) Reset()
- func (m *LcpItfPairAddDelV2) Size() (size int)
- func (m *LcpItfPairAddDelV2) Unmarshal(b []byte) error
- type LcpItfPairAddDelV2Reply
- func (*LcpItfPairAddDelV2Reply) GetCrcString() string
- func (*LcpItfPairAddDelV2Reply) GetMessageName() string
- func (*LcpItfPairAddDelV2Reply) GetMessageType() api.MessageType
- func (m *LcpItfPairAddDelV2Reply) Marshal(b []byte) ([]byte, error)
- func (m *LcpItfPairAddDelV2Reply) Reset()
- func (m *LcpItfPairAddDelV2Reply) Size() (size int)
- func (m *LcpItfPairAddDelV2Reply) Unmarshal(b []byte) error
- type LcpItfPairAddDelV3
- func (*LcpItfPairAddDelV3) GetCrcString() string
- func (*LcpItfPairAddDelV3) GetMessageName() string
- func (*LcpItfPairAddDelV3) GetMessageType() api.MessageType
- func (m *LcpItfPairAddDelV3) Marshal(b []byte) ([]byte, error)
- func (m *LcpItfPairAddDelV3) Reset()
- func (m *LcpItfPairAddDelV3) Size() (size int)
- func (m *LcpItfPairAddDelV3) Unmarshal(b []byte) error
- type LcpItfPairAddDelV3Reply
- func (*LcpItfPairAddDelV3Reply) GetCrcString() string
- func (*LcpItfPairAddDelV3Reply) GetMessageName() string
- func (*LcpItfPairAddDelV3Reply) GetMessageType() api.MessageType
- func (m *LcpItfPairAddDelV3Reply) Marshal(b []byte) ([]byte, error)
- func (m *LcpItfPairAddDelV3Reply) Reset()
- func (m *LcpItfPairAddDelV3Reply) Size() (size int)
- func (m *LcpItfPairAddDelV3Reply) Unmarshal(b []byte) error
- type LcpItfPairDetails
- func (*LcpItfPairDetails) GetCrcString() string
- func (*LcpItfPairDetails) GetMessageName() string
- func (*LcpItfPairDetails) GetMessageType() api.MessageType
- func (m *LcpItfPairDetails) Marshal(b []byte) ([]byte, error)
- func (m *LcpItfPairDetails) Reset()
- func (m *LcpItfPairDetails) Size() (size int)
- func (m *LcpItfPairDetails) Unmarshal(b []byte) error
- type LcpItfPairGet
- func (*LcpItfPairGet) GetCrcString() string
- func (*LcpItfPairGet) GetMessageName() string
- func (*LcpItfPairGet) GetMessageType() api.MessageType
- func (m *LcpItfPairGet) Marshal(b []byte) ([]byte, error)
- func (m *LcpItfPairGet) Reset()
- func (m *LcpItfPairGet) Size() (size int)
- func (m *LcpItfPairGet) Unmarshal(b []byte) error
- type LcpItfPairGetReply
- func (*LcpItfPairGetReply) GetCrcString() string
- func (*LcpItfPairGetReply) GetMessageName() string
- func (*LcpItfPairGetReply) GetMessageType() api.MessageType
- func (m *LcpItfPairGetReply) Marshal(b []byte) ([]byte, error)
- func (m *LcpItfPairGetReply) Reset()
- func (m *LcpItfPairGetReply) Size() (size int)
- func (m *LcpItfPairGetReply) Unmarshal(b []byte) error
- type LcpItfPairGetV2
- func (*LcpItfPairGetV2) GetCrcString() string
- func (*LcpItfPairGetV2) GetMessageName() string
- func (*LcpItfPairGetV2) GetMessageType() api.MessageType
- func (m *LcpItfPairGetV2) Marshal(b []byte) ([]byte, error)
- func (m *LcpItfPairGetV2) Reset()
- func (m *LcpItfPairGetV2) Size() (size int)
- func (m *LcpItfPairGetV2) Unmarshal(b []byte) error
- type LcpItfPairGetV2Reply
- func (*LcpItfPairGetV2Reply) GetCrcString() string
- func (*LcpItfPairGetV2Reply) GetMessageName() string
- func (*LcpItfPairGetV2Reply) GetMessageType() api.MessageType
- func (m *LcpItfPairGetV2Reply) Marshal(b []byte) ([]byte, error)
- func (m *LcpItfPairGetV2Reply) Reset()
- func (m *LcpItfPairGetV2Reply) Size() (size int)
- func (m *LcpItfPairGetV2Reply) Unmarshal(b []byte) error
- type LcpItfPairReplaceBegin
- func (*LcpItfPairReplaceBegin) GetCrcString() string
- func (*LcpItfPairReplaceBegin) GetMessageName() string
- func (*LcpItfPairReplaceBegin) GetMessageType() api.MessageType
- func (m *LcpItfPairReplaceBegin) Marshal(b []byte) ([]byte, error)
- func (m *LcpItfPairReplaceBegin) Reset()
- func (m *LcpItfPairReplaceBegin) Size() (size int)
- func (m *LcpItfPairReplaceBegin) Unmarshal(b []byte) error
- type LcpItfPairReplaceBeginReply
- func (*LcpItfPairReplaceBeginReply) GetCrcString() string
- func (*LcpItfPairReplaceBeginReply) GetMessageName() string
- func (*LcpItfPairReplaceBeginReply) GetMessageType() api.MessageType
- func (m *LcpItfPairReplaceBeginReply) Marshal(b []byte) ([]byte, error)
- func (m *LcpItfPairReplaceBeginReply) Reset()
- func (m *LcpItfPairReplaceBeginReply) Size() (size int)
- func (m *LcpItfPairReplaceBeginReply) Unmarshal(b []byte) error
- type LcpItfPairReplaceEnd
- func (*LcpItfPairReplaceEnd) GetCrcString() string
- func (*LcpItfPairReplaceEnd) GetMessageName() string
- func (*LcpItfPairReplaceEnd) GetMessageType() api.MessageType
- func (m *LcpItfPairReplaceEnd) Marshal(b []byte) ([]byte, error)
- func (m *LcpItfPairReplaceEnd) Reset()
- func (m *LcpItfPairReplaceEnd) Size() (size int)
- func (m *LcpItfPairReplaceEnd) Unmarshal(b []byte) error
- type LcpItfPairReplaceEndReply
- func (*LcpItfPairReplaceEndReply) GetCrcString() string
- func (*LcpItfPairReplaceEndReply) GetMessageName() string
- func (*LcpItfPairReplaceEndReply) GetMessageType() api.MessageType
- func (m *LcpItfPairReplaceEndReply) Marshal(b []byte) ([]byte, error)
- func (m *LcpItfPairReplaceEndReply) Reset()
- func (m *LcpItfPairReplaceEndReply) Size() (size int)
- func (m *LcpItfPairReplaceEndReply) Unmarshal(b []byte) error
- type RPCService
- type RPCService_LcpItfPairGetClient
- type RPCService_LcpItfPairGetV2Client
Constants ¶
const ( APIFile = "lcp" APIVersion = "1.0.0" VersionCrc = 0x2ff03def )
Variables ¶
var ( LcpItfHostType_name = map[uint8]string{ 0: "LCP_API_ITF_HOST_TAP", 1: "LCP_API_ITF_HOST_TUN", } LcpItfHostType_value = map[string]uint8{ "LCP_API_ITF_HOST_TAP": 0, "LCP_API_ITF_HOST_TUN": 1, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type LcpDefaultNsGet ¶
type LcpDefaultNsGet struct{}
get the default Linux Control Plane netns LcpDefaultNsGet defines message 'lcp_default_ns_get'.
func (*LcpDefaultNsGet) GetCrcString ¶
func (*LcpDefaultNsGet) GetCrcString() string
func (*LcpDefaultNsGet) GetMessageName ¶
func (*LcpDefaultNsGet) GetMessageName() string
func (*LcpDefaultNsGet) GetMessageType ¶
func (*LcpDefaultNsGet) GetMessageType() api.MessageType
func (*LcpDefaultNsGet) Reset ¶
func (m *LcpDefaultNsGet) Reset()
func (*LcpDefaultNsGet) Size ¶
func (m *LcpDefaultNsGet) Size() (size int)
func (*LcpDefaultNsGet) Unmarshal ¶
func (m *LcpDefaultNsGet) Unmarshal(b []byte) error
type LcpDefaultNsGetReply ¶
type LcpDefaultNsGetReply struct {
Netns string `binapi:"string[32],name=netns" json:"netns,omitempty"`
}
get the default Linux Control Plane netns
- netns - the default netns; netns[0] == 0 if none
LcpDefaultNsGetReply defines message 'lcp_default_ns_get_reply'. InProgress: the message form may change in the future versions
func (*LcpDefaultNsGetReply) GetCrcString ¶
func (*LcpDefaultNsGetReply) GetCrcString() string
func (*LcpDefaultNsGetReply) GetMessageName ¶
func (*LcpDefaultNsGetReply) GetMessageName() string
func (*LcpDefaultNsGetReply) GetMessageType ¶
func (*LcpDefaultNsGetReply) GetMessageType() api.MessageType
func (*LcpDefaultNsGetReply) Marshal ¶
func (m *LcpDefaultNsGetReply) Marshal(b []byte) ([]byte, error)
func (*LcpDefaultNsGetReply) Reset ¶
func (m *LcpDefaultNsGetReply) Reset()
func (*LcpDefaultNsGetReply) Size ¶
func (m *LcpDefaultNsGetReply) Size() (size int)
func (*LcpDefaultNsGetReply) Unmarshal ¶
func (m *LcpDefaultNsGetReply) Unmarshal(b []byte) error
type LcpDefaultNsSet ¶
type LcpDefaultNsSet struct {
Netns string `binapi:"string[32],name=netns" json:"netns,omitempty"`
}
Set the default Linux Control Plane netns
- netns - the new default netns; netns[0] == 0 if none
LcpDefaultNsSet defines message 'lcp_default_ns_set'. InProgress: the message form may change in the future versions
func (*LcpDefaultNsSet) GetCrcString ¶
func (*LcpDefaultNsSet) GetCrcString() string
func (*LcpDefaultNsSet) GetMessageName ¶
func (*LcpDefaultNsSet) GetMessageName() string
func (*LcpDefaultNsSet) GetMessageType ¶
func (*LcpDefaultNsSet) GetMessageType() api.MessageType
func (*LcpDefaultNsSet) Reset ¶
func (m *LcpDefaultNsSet) Reset()
func (*LcpDefaultNsSet) Size ¶
func (m *LcpDefaultNsSet) Size() (size int)
func (*LcpDefaultNsSet) Unmarshal ¶
func (m *LcpDefaultNsSet) Unmarshal(b []byte) error
type LcpDefaultNsSetReply ¶
type LcpDefaultNsSetReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
LcpDefaultNsSetReply defines message 'lcp_default_ns_set_reply'. InProgress: the message form may change in the future versions
func (*LcpDefaultNsSetReply) GetCrcString ¶
func (*LcpDefaultNsSetReply) GetCrcString() string
func (*LcpDefaultNsSetReply) GetMessageName ¶
func (*LcpDefaultNsSetReply) GetMessageName() string
func (*LcpDefaultNsSetReply) GetMessageType ¶
func (*LcpDefaultNsSetReply) GetMessageType() api.MessageType
func (*LcpDefaultNsSetReply) Marshal ¶
func (m *LcpDefaultNsSetReply) Marshal(b []byte) ([]byte, error)
func (*LcpDefaultNsSetReply) Reset ¶
func (m *LcpDefaultNsSetReply) Reset()
func (*LcpDefaultNsSetReply) Size ¶
func (m *LcpDefaultNsSetReply) Size() (size int)
func (*LcpDefaultNsSetReply) Unmarshal ¶
func (m *LcpDefaultNsSetReply) Unmarshal(b []byte) error
type LcpEthertypeEnable ¶ added in v0.9.0
type LcpEthertypeEnable struct {
Ethertype uint16 `binapi:"u16,name=ethertype" json:"ethertype,omitempty"`
}
Enable linux-cp-punt-xc for a given ethertype
- ethertype - the ethertype to enable
LcpEthertypeEnable defines message 'lcp_ethertype_enable'.
func (*LcpEthertypeEnable) GetCrcString ¶ added in v0.9.0
func (*LcpEthertypeEnable) GetCrcString() string
func (*LcpEthertypeEnable) GetMessageName ¶ added in v0.9.0
func (*LcpEthertypeEnable) GetMessageName() string
func (*LcpEthertypeEnable) GetMessageType ¶ added in v0.9.0
func (*LcpEthertypeEnable) GetMessageType() api.MessageType
func (*LcpEthertypeEnable) Marshal ¶ added in v0.9.0
func (m *LcpEthertypeEnable) Marshal(b []byte) ([]byte, error)
func (*LcpEthertypeEnable) Reset ¶ added in v0.9.0
func (m *LcpEthertypeEnable) Reset()
func (*LcpEthertypeEnable) Size ¶ added in v0.9.0
func (m *LcpEthertypeEnable) Size() (size int)
func (*LcpEthertypeEnable) Unmarshal ¶ added in v0.9.0
func (m *LcpEthertypeEnable) Unmarshal(b []byte) error
type LcpEthertypeEnableReply ¶ added in v0.9.0
type LcpEthertypeEnableReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
LcpEthertypeEnableReply defines message 'lcp_ethertype_enable_reply'.
func (*LcpEthertypeEnableReply) GetCrcString ¶ added in v0.9.0
func (*LcpEthertypeEnableReply) GetCrcString() string
func (*LcpEthertypeEnableReply) GetMessageName ¶ added in v0.9.0
func (*LcpEthertypeEnableReply) GetMessageName() string
func (*LcpEthertypeEnableReply) GetMessageType ¶ added in v0.9.0
func (*LcpEthertypeEnableReply) GetMessageType() api.MessageType
func (*LcpEthertypeEnableReply) Marshal ¶ added in v0.9.0
func (m *LcpEthertypeEnableReply) Marshal(b []byte) ([]byte, error)
func (*LcpEthertypeEnableReply) Reset ¶ added in v0.9.0
func (m *LcpEthertypeEnableReply) Reset()
func (*LcpEthertypeEnableReply) Size ¶ added in v0.9.0
func (m *LcpEthertypeEnableReply) Size() (size int)
func (*LcpEthertypeEnableReply) Unmarshal ¶ added in v0.9.0
func (m *LcpEthertypeEnableReply) Unmarshal(b []byte) error
type LcpEthertypeGet ¶ added in v0.9.0
type LcpEthertypeGet struct{}
Get the enabled ethertypes for linux-cp-punt-xc LcpEthertypeGet defines message 'lcp_ethertype_get'.
func (*LcpEthertypeGet) GetCrcString ¶ added in v0.9.0
func (*LcpEthertypeGet) GetCrcString() string
func (*LcpEthertypeGet) GetMessageName ¶ added in v0.9.0
func (*LcpEthertypeGet) GetMessageName() string
func (*LcpEthertypeGet) GetMessageType ¶ added in v0.9.0
func (*LcpEthertypeGet) GetMessageType() api.MessageType
func (*LcpEthertypeGet) Marshal ¶ added in v0.9.0
func (m *LcpEthertypeGet) Marshal(b []byte) ([]byte, error)
func (*LcpEthertypeGet) Reset ¶ added in v0.9.0
func (m *LcpEthertypeGet) Reset()
func (*LcpEthertypeGet) Size ¶ added in v0.9.0
func (m *LcpEthertypeGet) Size() (size int)
func (*LcpEthertypeGet) Unmarshal ¶ added in v0.9.0
func (m *LcpEthertypeGet) Unmarshal(b []byte) error
type LcpEthertypeGetReply ¶ added in v0.9.0
type LcpEthertypeGetReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
Count uint16 `binapi:"u16,name=count" json:"-"`
Ethertypes []uint16 `binapi:"u16[count],name=ethertypes" json:"ethertypes,omitempty"`
}
Reply to get the enabled ethertypes for linux-cp-punt-xc
- retval - return code for the request
- count - number of enabled ethertypes
- ethertypes - array of enabled ethertypes
LcpEthertypeGetReply defines message 'lcp_ethertype_get_reply'.
func (*LcpEthertypeGetReply) GetCrcString ¶ added in v0.9.0
func (*LcpEthertypeGetReply) GetCrcString() string
func (*LcpEthertypeGetReply) GetMessageName ¶ added in v0.9.0
func (*LcpEthertypeGetReply) GetMessageName() string
func (*LcpEthertypeGetReply) GetMessageType ¶ added in v0.9.0
func (*LcpEthertypeGetReply) GetMessageType() api.MessageType
func (*LcpEthertypeGetReply) Marshal ¶ added in v0.9.0
func (m *LcpEthertypeGetReply) Marshal(b []byte) ([]byte, error)
func (*LcpEthertypeGetReply) Reset ¶ added in v0.9.0
func (m *LcpEthertypeGetReply) Reset()
func (*LcpEthertypeGetReply) Size ¶ added in v0.9.0
func (m *LcpEthertypeGetReply) Size() (size int)
func (*LcpEthertypeGetReply) Unmarshal ¶ added in v0.9.0
func (m *LcpEthertypeGetReply) Unmarshal(b []byte) error
type LcpItfHostType ¶
type LcpItfHostType uint8
LcpItfHostType defines enum 'lcp_itf_host_type'.
const ( LCP_API_ITF_HOST_TAP LcpItfHostType = 0 LCP_API_ITF_HOST_TUN LcpItfHostType = 1 )
func (LcpItfHostType) String ¶
func (x LcpItfHostType) String() string
type LcpItfPairAddDel ¶
type LcpItfPairAddDel struct {
IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
HostIfName string `binapi:"string[16],name=host_if_name" json:"host_if_name,omitempty"`
HostIfType LcpItfHostType `binapi:"lcp_itf_host_type,name=host_if_type" json:"host_if_type,omitempty"`
Netns string `binapi:"string[32],name=netns" json:"netns,omitempty"`
}
Add or delete a Linux Conrol Plane interface pair
- is_add - 0 if deleting, != 0 if adding
- sw_if_index - index of VPP PHY SW interface
- host_if_name - host tap interface name
- host_if_type - the type of host interface to create (tun, tap)
- netns - optional tap netns; netns[0] == 0 if none
LcpItfPairAddDel defines message 'lcp_itf_pair_add_del'. Deprecated: the message will be removed in the future versions
func (*LcpItfPairAddDel) GetCrcString ¶
func (*LcpItfPairAddDel) GetCrcString() string
func (*LcpItfPairAddDel) GetMessageName ¶
func (*LcpItfPairAddDel) GetMessageName() string
func (*LcpItfPairAddDel) GetMessageType ¶
func (*LcpItfPairAddDel) GetMessageType() api.MessageType
func (*LcpItfPairAddDel) Reset ¶
func (m *LcpItfPairAddDel) Reset()
func (*LcpItfPairAddDel) Size ¶
func (m *LcpItfPairAddDel) Size() (size int)
func (*LcpItfPairAddDel) Unmarshal ¶
func (m *LcpItfPairAddDel) Unmarshal(b []byte) error
type LcpItfPairAddDelReply ¶
type LcpItfPairAddDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
LcpItfPairAddDelReply defines message 'lcp_itf_pair_add_del_reply'. Deprecated: the message will be removed in the future versions
func (*LcpItfPairAddDelReply) GetCrcString ¶
func (*LcpItfPairAddDelReply) GetCrcString() string
func (*LcpItfPairAddDelReply) GetMessageName ¶
func (*LcpItfPairAddDelReply) GetMessageName() string
func (*LcpItfPairAddDelReply) GetMessageType ¶
func (*LcpItfPairAddDelReply) GetMessageType() api.MessageType
func (*LcpItfPairAddDelReply) Marshal ¶
func (m *LcpItfPairAddDelReply) Marshal(b []byte) ([]byte, error)
func (*LcpItfPairAddDelReply) Reset ¶
func (m *LcpItfPairAddDelReply) Reset()
func (*LcpItfPairAddDelReply) Size ¶
func (m *LcpItfPairAddDelReply) Size() (size int)
func (*LcpItfPairAddDelReply) Unmarshal ¶
func (m *LcpItfPairAddDelReply) Unmarshal(b []byte) error
type LcpItfPairAddDelV2 ¶
type LcpItfPairAddDelV2 struct {
IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
HostIfName string `binapi:"string[16],name=host_if_name" json:"host_if_name,omitempty"`
HostIfType LcpItfHostType `binapi:"lcp_itf_host_type,name=host_if_type" json:"host_if_type,omitempty"`
Netns string `binapi:"string[32],name=netns" json:"netns,omitempty"`
}
LcpItfPairAddDelV2 defines message 'lcp_itf_pair_add_del_v2'. InProgress: the message form may change in the future versions
func (*LcpItfPairAddDelV2) GetCrcString ¶
func (*LcpItfPairAddDelV2) GetCrcString() string
func (*LcpItfPairAddDelV2) GetMessageName ¶
func (*LcpItfPairAddDelV2) GetMessageName() string
func (*LcpItfPairAddDelV2) GetMessageType ¶
func (*LcpItfPairAddDelV2) GetMessageType() api.MessageType
func (*LcpItfPairAddDelV2) Reset ¶
func (m *LcpItfPairAddDelV2) Reset()
func (*LcpItfPairAddDelV2) Size ¶
func (m *LcpItfPairAddDelV2) Size() (size int)
func (*LcpItfPairAddDelV2) Unmarshal ¶
func (m *LcpItfPairAddDelV2) Unmarshal(b []byte) error
type LcpItfPairAddDelV2Reply ¶
type LcpItfPairAddDelV2Reply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
HostSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=host_sw_if_index" json:"host_sw_if_index,omitempty"`
}
LcpItfPairAddDelV2Reply defines message 'lcp_itf_pair_add_del_v2_reply'. InProgress: the message form may change in the future versions
func (*LcpItfPairAddDelV2Reply) GetCrcString ¶
func (*LcpItfPairAddDelV2Reply) GetCrcString() string
func (*LcpItfPairAddDelV2Reply) GetMessageName ¶
func (*LcpItfPairAddDelV2Reply) GetMessageName() string
func (*LcpItfPairAddDelV2Reply) GetMessageType ¶
func (*LcpItfPairAddDelV2Reply) GetMessageType() api.MessageType
func (*LcpItfPairAddDelV2Reply) Marshal ¶
func (m *LcpItfPairAddDelV2Reply) Marshal(b []byte) ([]byte, error)
func (*LcpItfPairAddDelV2Reply) Reset ¶
func (m *LcpItfPairAddDelV2Reply) Reset()
func (*LcpItfPairAddDelV2Reply) Size ¶
func (m *LcpItfPairAddDelV2Reply) Size() (size int)
func (*LcpItfPairAddDelV2Reply) Unmarshal ¶
func (m *LcpItfPairAddDelV2Reply) Unmarshal(b []byte) error
type LcpItfPairAddDelV3 ¶ added in v0.9.0
type LcpItfPairAddDelV3 struct {
IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
HostIfName string `binapi:"string[16],name=host_if_name" json:"host_if_name,omitempty"`
HostIfType LcpItfHostType `binapi:"lcp_itf_host_type,name=host_if_type" json:"host_if_type,omitempty"`
Netns string `binapi:"string[32],name=netns" json:"netns,omitempty"`
}
LcpItfPairAddDelV3 defines message 'lcp_itf_pair_add_del_v3'. InProgress: the message form may change in the future versions
func (*LcpItfPairAddDelV3) GetCrcString ¶ added in v0.9.0
func (*LcpItfPairAddDelV3) GetCrcString() string
func (*LcpItfPairAddDelV3) GetMessageName ¶ added in v0.9.0
func (*LcpItfPairAddDelV3) GetMessageName() string
func (*LcpItfPairAddDelV3) GetMessageType ¶ added in v0.9.0
func (*LcpItfPairAddDelV3) GetMessageType() api.MessageType
func (*LcpItfPairAddDelV3) Marshal ¶ added in v0.9.0
func (m *LcpItfPairAddDelV3) Marshal(b []byte) ([]byte, error)
func (*LcpItfPairAddDelV3) Reset ¶ added in v0.9.0
func (m *LcpItfPairAddDelV3) Reset()
func (*LcpItfPairAddDelV3) Size ¶ added in v0.9.0
func (m *LcpItfPairAddDelV3) Size() (size int)
func (*LcpItfPairAddDelV3) Unmarshal ¶ added in v0.9.0
func (m *LcpItfPairAddDelV3) Unmarshal(b []byte) error
type LcpItfPairAddDelV3Reply ¶ added in v0.9.0
type LcpItfPairAddDelV3Reply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
VifIndex uint32 `binapi:"u32,name=vif_index" json:"vif_index,omitempty"`
HostSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=host_sw_if_index" json:"host_sw_if_index,omitempty"`
}
LcpItfPairAddDelV3Reply defines message 'lcp_itf_pair_add_del_v3_reply'. InProgress: the message form may change in the future versions
func (*LcpItfPairAddDelV3Reply) GetCrcString ¶ added in v0.9.0
func (*LcpItfPairAddDelV3Reply) GetCrcString() string
func (*LcpItfPairAddDelV3Reply) GetMessageName ¶ added in v0.9.0
func (*LcpItfPairAddDelV3Reply) GetMessageName() string
func (*LcpItfPairAddDelV3Reply) GetMessageType ¶ added in v0.9.0
func (*LcpItfPairAddDelV3Reply) GetMessageType() api.MessageType
func (*LcpItfPairAddDelV3Reply) Marshal ¶ added in v0.9.0
func (m *LcpItfPairAddDelV3Reply) Marshal(b []byte) ([]byte, error)
func (*LcpItfPairAddDelV3Reply) Reset ¶ added in v0.9.0
func (m *LcpItfPairAddDelV3Reply) Reset()
func (*LcpItfPairAddDelV3Reply) Size ¶ added in v0.9.0
func (m *LcpItfPairAddDelV3Reply) Size() (size int)
func (*LcpItfPairAddDelV3Reply) Unmarshal ¶ added in v0.9.0
func (m *LcpItfPairAddDelV3Reply) Unmarshal(b []byte) error
type LcpItfPairDetails ¶
type LcpItfPairDetails struct {
PhySwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=phy_sw_if_index" json:"phy_sw_if_index,omitempty"`
HostSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=host_sw_if_index" json:"host_sw_if_index,omitempty"`
VifIndex uint32 `binapi:"u32,name=vif_index" json:"vif_index,omitempty"`
HostIfName string `binapi:"string[16],name=host_if_name" json:"host_if_name,omitempty"`
HostIfType LcpItfHostType `binapi:"lcp_itf_host_type,name=host_if_type" json:"host_if_type,omitempty"`
Netns string `binapi:"string[32],name=netns" json:"netns,omitempty"`
}
Linux Control Plane interface pair dump response
- phy_sw_if_index - VPP's sw_if_index for the PHY
- host_sw_if_index - VPP's sw_if_index for the host tap
- vif_index - tap linux index
- host_if_name - host interface name
- host_if_type - host interface type (tun, tap)
- netns - host interface netns
LcpItfPairDetails defines message 'lcp_itf_pair_details'. InProgress: the message form may change in the future versions
func (*LcpItfPairDetails) GetCrcString ¶
func (*LcpItfPairDetails) GetCrcString() string
func (*LcpItfPairDetails) GetMessageName ¶
func (*LcpItfPairDetails) GetMessageName() string
func (*LcpItfPairDetails) GetMessageType ¶
func (*LcpItfPairDetails) GetMessageType() api.MessageType
func (*LcpItfPairDetails) Reset ¶
func (m *LcpItfPairDetails) Reset()
func (*LcpItfPairDetails) Size ¶
func (m *LcpItfPairDetails) Size() (size int)
func (*LcpItfPairDetails) Unmarshal ¶
func (m *LcpItfPairDetails) Unmarshal(b []byte) error
type LcpItfPairGet ¶
type LcpItfPairGet struct {
Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
}
Dump Linux Control Plane interface pair data
- sw_if_index - interface to use as filter (~0 == "all")
LcpItfPairGet defines message 'lcp_itf_pair_get'.
func (*LcpItfPairGet) GetCrcString ¶
func (*LcpItfPairGet) GetCrcString() string
func (*LcpItfPairGet) GetMessageName ¶
func (*LcpItfPairGet) GetMessageName() string
func (*LcpItfPairGet) GetMessageType ¶
func (*LcpItfPairGet) GetMessageType() api.MessageType
func (*LcpItfPairGet) Reset ¶
func (m *LcpItfPairGet) Reset()
func (*LcpItfPairGet) Size ¶
func (m *LcpItfPairGet) Size() (size int)
func (*LcpItfPairGet) Unmarshal ¶
func (m *LcpItfPairGet) Unmarshal(b []byte) error
type LcpItfPairGetReply ¶
type LcpItfPairGetReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
}
LcpItfPairGetReply defines message 'lcp_itf_pair_get_reply'.
func (*LcpItfPairGetReply) GetCrcString ¶
func (*LcpItfPairGetReply) GetCrcString() string
func (*LcpItfPairGetReply) GetMessageName ¶
func (*LcpItfPairGetReply) GetMessageName() string
func (*LcpItfPairGetReply) GetMessageType ¶
func (*LcpItfPairGetReply) GetMessageType() api.MessageType
func (*LcpItfPairGetReply) Reset ¶
func (m *LcpItfPairGetReply) Reset()
func (*LcpItfPairGetReply) Size ¶
func (m *LcpItfPairGetReply) Size() (size int)
func (*LcpItfPairGetReply) Unmarshal ¶
func (m *LcpItfPairGetReply) Unmarshal(b []byte) error
type LcpItfPairGetV2 ¶ added in v0.9.0
type LcpItfPairGetV2 struct {
Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}
LcpItfPairGetV2 defines message 'lcp_itf_pair_get_v2'.
func (*LcpItfPairGetV2) GetCrcString ¶ added in v0.9.0
func (*LcpItfPairGetV2) GetCrcString() string
func (*LcpItfPairGetV2) GetMessageName ¶ added in v0.9.0
func (*LcpItfPairGetV2) GetMessageName() string
func (*LcpItfPairGetV2) GetMessageType ¶ added in v0.9.0
func (*LcpItfPairGetV2) GetMessageType() api.MessageType
func (*LcpItfPairGetV2) Marshal ¶ added in v0.9.0
func (m *LcpItfPairGetV2) Marshal(b []byte) ([]byte, error)
func (*LcpItfPairGetV2) Reset ¶ added in v0.9.0
func (m *LcpItfPairGetV2) Reset()
func (*LcpItfPairGetV2) Size ¶ added in v0.9.0
func (m *LcpItfPairGetV2) Size() (size int)
func (*LcpItfPairGetV2) Unmarshal ¶ added in v0.9.0
func (m *LcpItfPairGetV2) Unmarshal(b []byte) error
type LcpItfPairGetV2Reply ¶ added in v0.9.0
type LcpItfPairGetV2Reply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
}
LcpItfPairGetV2Reply defines message 'lcp_itf_pair_get_v2_reply'.
func (*LcpItfPairGetV2Reply) GetCrcString ¶ added in v0.9.0
func (*LcpItfPairGetV2Reply) GetCrcString() string
func (*LcpItfPairGetV2Reply) GetMessageName ¶ added in v0.9.0
func (*LcpItfPairGetV2Reply) GetMessageName() string
func (*LcpItfPairGetV2Reply) GetMessageType ¶ added in v0.9.0
func (*LcpItfPairGetV2Reply) GetMessageType() api.MessageType
func (*LcpItfPairGetV2Reply) Marshal ¶ added in v0.9.0
func (m *LcpItfPairGetV2Reply) Marshal(b []byte) ([]byte, error)
func (*LcpItfPairGetV2Reply) Reset ¶ added in v0.9.0
func (m *LcpItfPairGetV2Reply) Reset()
func (*LcpItfPairGetV2Reply) Size ¶ added in v0.9.0
func (m *LcpItfPairGetV2Reply) Size() (size int)
func (*LcpItfPairGetV2Reply) Unmarshal ¶ added in v0.9.0
func (m *LcpItfPairGetV2Reply) Unmarshal(b []byte) error
type LcpItfPairReplaceBegin ¶
type LcpItfPairReplaceBegin struct{}
Replace end/begin LcpItfPairReplaceBegin defines message 'lcp_itf_pair_replace_begin'.
func (*LcpItfPairReplaceBegin) GetCrcString ¶
func (*LcpItfPairReplaceBegin) GetCrcString() string
func (*LcpItfPairReplaceBegin) GetMessageName ¶
func (*LcpItfPairReplaceBegin) GetMessageName() string
func (*LcpItfPairReplaceBegin) GetMessageType ¶
func (*LcpItfPairReplaceBegin) GetMessageType() api.MessageType
func (*LcpItfPairReplaceBegin) Marshal ¶
func (m *LcpItfPairReplaceBegin) Marshal(b []byte) ([]byte, error)
func (*LcpItfPairReplaceBegin) Reset ¶
func (m *LcpItfPairReplaceBegin) Reset()
func (*LcpItfPairReplaceBegin) Size ¶
func (m *LcpItfPairReplaceBegin) Size() (size int)
func (*LcpItfPairReplaceBegin) Unmarshal ¶
func (m *LcpItfPairReplaceBegin) Unmarshal(b []byte) error
type LcpItfPairReplaceBeginReply ¶
type LcpItfPairReplaceBeginReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
LcpItfPairReplaceBeginReply defines message 'lcp_itf_pair_replace_begin_reply'.
func (*LcpItfPairReplaceBeginReply) GetCrcString ¶
func (*LcpItfPairReplaceBeginReply) GetCrcString() string
func (*LcpItfPairReplaceBeginReply) GetMessageName ¶
func (*LcpItfPairReplaceBeginReply) GetMessageName() string
func (*LcpItfPairReplaceBeginReply) GetMessageType ¶
func (*LcpItfPairReplaceBeginReply) GetMessageType() api.MessageType
func (*LcpItfPairReplaceBeginReply) Marshal ¶
func (m *LcpItfPairReplaceBeginReply) Marshal(b []byte) ([]byte, error)
func (*LcpItfPairReplaceBeginReply) Reset ¶
func (m *LcpItfPairReplaceBeginReply) Reset()
func (*LcpItfPairReplaceBeginReply) Size ¶
func (m *LcpItfPairReplaceBeginReply) Size() (size int)
func (*LcpItfPairReplaceBeginReply) Unmarshal ¶
func (m *LcpItfPairReplaceBeginReply) Unmarshal(b []byte) error
type LcpItfPairReplaceEnd ¶
type LcpItfPairReplaceEnd struct{}
LcpItfPairReplaceEnd defines message 'lcp_itf_pair_replace_end'.
func (*LcpItfPairReplaceEnd) GetCrcString ¶
func (*LcpItfPairReplaceEnd) GetCrcString() string
func (*LcpItfPairReplaceEnd) GetMessageName ¶
func (*LcpItfPairReplaceEnd) GetMessageName() string
func (*LcpItfPairReplaceEnd) GetMessageType ¶
func (*LcpItfPairReplaceEnd) GetMessageType() api.MessageType
func (*LcpItfPairReplaceEnd) Marshal ¶
func (m *LcpItfPairReplaceEnd) Marshal(b []byte) ([]byte, error)
func (*LcpItfPairReplaceEnd) Reset ¶
func (m *LcpItfPairReplaceEnd) Reset()
func (*LcpItfPairReplaceEnd) Size ¶
func (m *LcpItfPairReplaceEnd) Size() (size int)
func (*LcpItfPairReplaceEnd) Unmarshal ¶
func (m *LcpItfPairReplaceEnd) Unmarshal(b []byte) error
type LcpItfPairReplaceEndReply ¶
type LcpItfPairReplaceEndReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
LcpItfPairReplaceEndReply defines message 'lcp_itf_pair_replace_end_reply'.
func (*LcpItfPairReplaceEndReply) GetCrcString ¶
func (*LcpItfPairReplaceEndReply) GetCrcString() string
func (*LcpItfPairReplaceEndReply) GetMessageName ¶
func (*LcpItfPairReplaceEndReply) GetMessageName() string
func (*LcpItfPairReplaceEndReply) GetMessageType ¶
func (*LcpItfPairReplaceEndReply) GetMessageType() api.MessageType
func (*LcpItfPairReplaceEndReply) Marshal ¶
func (m *LcpItfPairReplaceEndReply) Marshal(b []byte) ([]byte, error)
func (*LcpItfPairReplaceEndReply) Reset ¶
func (m *LcpItfPairReplaceEndReply) Reset()
func (*LcpItfPairReplaceEndReply) Size ¶
func (m *LcpItfPairReplaceEndReply) Size() (size int)
func (*LcpItfPairReplaceEndReply) Unmarshal ¶
func (m *LcpItfPairReplaceEndReply) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface {
LcpDefaultNsGet(ctx context.Context, in *LcpDefaultNsGet) (*LcpDefaultNsGetReply, error)
LcpDefaultNsSet(ctx context.Context, in *LcpDefaultNsSet) (*LcpDefaultNsSetReply, error)
LcpEthertypeEnable(ctx context.Context, in *LcpEthertypeEnable) (*LcpEthertypeEnableReply, error)
LcpEthertypeGet(ctx context.Context, in *LcpEthertypeGet) (*LcpEthertypeGetReply, error)
LcpItfPairAddDel(ctx context.Context, in *LcpItfPairAddDel) (*LcpItfPairAddDelReply, error)
LcpItfPairAddDelV2(ctx context.Context, in *LcpItfPairAddDelV2) (*LcpItfPairAddDelV2Reply, error)
LcpItfPairAddDelV3(ctx context.Context, in *LcpItfPairAddDelV3) (*LcpItfPairAddDelV3Reply, error)
LcpItfPairGet(ctx context.Context, in *LcpItfPairGet) (RPCService_LcpItfPairGetClient, error)
LcpItfPairGetV2(ctx context.Context, in *LcpItfPairGetV2) (RPCService_LcpItfPairGetV2Client, error)
LcpItfPairReplaceBegin(ctx context.Context, in *LcpItfPairReplaceBegin) (*LcpItfPairReplaceBeginReply, error)
LcpItfPairReplaceEnd(ctx context.Context, in *LcpItfPairReplaceEnd) (*LcpItfPairReplaceEndReply, error)
}
RPCService defines RPC service lcp.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_LcpItfPairGetClient ¶
type RPCService_LcpItfPairGetClient interface {
Recv() (*LcpItfPairDetails, *LcpItfPairGetReply, error)
api.Stream
}
type RPCService_LcpItfPairGetV2Client ¶ added in v0.9.0
type RPCService_LcpItfPairGetV2Client interface {
Recv() (*LcpItfPairDetails, *LcpItfPairGetV2Reply, error)
api.Stream
}