interfaces

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package interfaces is a generated VPP binary API for 'interface' module.

It consists of:

10 enums
 7 aliases
 6 types
 1 union
51 messages
25 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "interface"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0x8c9928df
)

Variables

View Source
var AddressFamily_name = map[uint32]string{
	0: "ADDRESS_IP4",
	1: "ADDRESS_IP6",
}
View Source
var AddressFamily_value = map[string]uint32{
	"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[uint32]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_AH",
	51:  "IP_API_PROTO_ESP",
	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]uint32{
	"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_AH":       50,
	"IP_API_PROTO_ESP":      51,
	"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{
	1: "IF_API_TYPE_HARDWARE",
	2: "IF_API_TYPE_SUB",
	3: "IF_API_TYPE_P2P",
	4: "IF_API_TYPE_PIPE",
}
View Source
var IfType_value = map[string]uint32{
	"IF_API_TYPE_HARDWARE": 1,
	"IF_API_TYPE_SUB":      2,
	"IF_API_TYPE_P2P":      3,
	"IF_API_TYPE_PIPE":     4,
}
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{
	1: "MTU_PROTO_API_L3",
	2: "MTU_PROTO_API_IP4",
	3: "MTU_PROTO_API_IP6",
	4: "MTU_PROTO_API_MPLS",
	5: "MTU_PROTO_API_N",
}
View Source
var MtuProto_value = map[string]uint32{
	"MTU_PROTO_API_L3":   1,
	"MTU_PROTO_API_IP4":  2,
	"MTU_PROTO_API_IP6":  3,
	"MTU_PROTO_API_MPLS": 4,
	"MTU_PROTO_API_N":    5,
}
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,
}

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 uint32

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 CollectDetailedInterfaceStats

type CollectDetailedInterfaceStats struct {
	SwIfIndex     InterfaceIndex
	EnableDisable bool
}

CollectDetailedInterfaceStats represents VPP binary API message 'collect_detailed_interface_stats'.

func (*CollectDetailedInterfaceStats) GetCrcString

func (*CollectDetailedInterfaceStats) GetCrcString() string

func (*CollectDetailedInterfaceStats) GetMessageName

func (*CollectDetailedInterfaceStats) GetMessageName() string

func (*CollectDetailedInterfaceStats) GetMessageType

func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType

type CollectDetailedInterfaceStatsReply

type CollectDetailedInterfaceStatsReply struct {
	Retval int32
}

CollectDetailedInterfaceStatsReply represents VPP binary API message 'collect_detailed_interface_stats_reply'.

func (*CollectDetailedInterfaceStatsReply) GetCrcString

func (*CollectDetailedInterfaceStatsReply) GetMessageName

func (*CollectDetailedInterfaceStatsReply) GetMessageName() string

func (*CollectDetailedInterfaceStatsReply) GetMessageType

type CreateLoopback

type CreateLoopback struct {
	MacAddress MacAddress
}

CreateLoopback represents VPP binary API message 'create_loopback'.

func (*CreateLoopback) GetCrcString

func (*CreateLoopback) GetCrcString() string

func (*CreateLoopback) GetMessageName

func (*CreateLoopback) GetMessageName() string

func (*CreateLoopback) GetMessageType

func (*CreateLoopback) GetMessageType() api.MessageType

type CreateLoopbackInstance

type CreateLoopbackInstance struct {
	MacAddress   MacAddress
	IsSpecified  bool
	UserInstance uint32
}

CreateLoopbackInstance represents VPP binary API message 'create_loopback_instance'.

func (*CreateLoopbackInstance) GetCrcString

func (*CreateLoopbackInstance) GetCrcString() string

func (*CreateLoopbackInstance) GetMessageName

func (*CreateLoopbackInstance) GetMessageName() string

func (*CreateLoopbackInstance) GetMessageType

func (*CreateLoopbackInstance) GetMessageType() api.MessageType

type CreateLoopbackInstanceReply

type CreateLoopbackInstanceReply struct {
	Retval    int32
	SwIfIndex InterfaceIndex
}

CreateLoopbackInstanceReply represents VPP binary API message 'create_loopback_instance_reply'.

func (*CreateLoopbackInstanceReply) GetCrcString

func (*CreateLoopbackInstanceReply) GetCrcString() string

func (*CreateLoopbackInstanceReply) GetMessageName

func (*CreateLoopbackInstanceReply) GetMessageName() string

func (*CreateLoopbackInstanceReply) GetMessageType

func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType

type CreateLoopbackReply

type CreateLoopbackReply struct {
	Retval    int32
	SwIfIndex InterfaceIndex
}

CreateLoopbackReply represents VPP binary API message 'create_loopback_reply'.

func (*CreateLoopbackReply) GetCrcString

func (*CreateLoopbackReply) GetCrcString() string

func (*CreateLoopbackReply) GetMessageName

func (*CreateLoopbackReply) GetMessageName() string

func (*CreateLoopbackReply) GetMessageType

func (*CreateLoopbackReply) GetMessageType() api.MessageType

type CreateSubif

type CreateSubif struct {
	SwIfIndex   InterfaceIndex
	SubID       uint32
	SubIfFlags  SubIfFlags
	OuterVlanID uint16
	InnerVlanID uint16
}

CreateSubif represents VPP binary API message 'create_subif'.

func (*CreateSubif) GetCrcString

func (*CreateSubif) GetCrcString() string

func (*CreateSubif) GetMessageName

func (*CreateSubif) GetMessageName() string

func (*CreateSubif) GetMessageType

func (*CreateSubif) GetMessageType() api.MessageType

type CreateSubifReply

type CreateSubifReply struct {
	Retval    int32
	SwIfIndex InterfaceIndex
}

CreateSubifReply represents VPP binary API message 'create_subif_reply'.

func (*CreateSubifReply) GetCrcString

func (*CreateSubifReply) GetCrcString() string

func (*CreateSubifReply) GetMessageName

func (*CreateSubifReply) GetMessageName() string

func (*CreateSubifReply) GetMessageType

func (*CreateSubifReply) GetMessageType() api.MessageType

type CreateVlanSubif

type CreateVlanSubif struct {
	SwIfIndex InterfaceIndex
	VlanID    uint32
}

CreateVlanSubif represents VPP binary API message 'create_vlan_subif'.

func (*CreateVlanSubif) GetCrcString

func (*CreateVlanSubif) GetCrcString() string

func (*CreateVlanSubif) GetMessageName

func (*CreateVlanSubif) GetMessageName() string

func (*CreateVlanSubif) GetMessageType

func (*CreateVlanSubif) GetMessageType() api.MessageType

type CreateVlanSubifReply

type CreateVlanSubifReply struct {
	Retval    int32
	SwIfIndex InterfaceIndex
}

CreateVlanSubifReply represents VPP binary API message 'create_vlan_subif_reply'.

func (*CreateVlanSubifReply) GetCrcString

func (*CreateVlanSubifReply) GetCrcString() string

func (*CreateVlanSubifReply) GetMessageName

func (*CreateVlanSubifReply) GetMessageName() string

func (*CreateVlanSubifReply) GetMessageType

func (*CreateVlanSubifReply) GetMessageType() api.MessageType

type DeleteLoopback

type DeleteLoopback struct {
	SwIfIndex InterfaceIndex
}

DeleteLoopback represents VPP binary API message 'delete_loopback'.

func (*DeleteLoopback) GetCrcString

func (*DeleteLoopback) GetCrcString() string

func (*DeleteLoopback) GetMessageName

func (*DeleteLoopback) GetMessageName() string

func (*DeleteLoopback) GetMessageType

func (*DeleteLoopback) GetMessageType() api.MessageType

type DeleteLoopbackReply

type DeleteLoopbackReply struct {
	Retval int32
}

DeleteLoopbackReply represents VPP binary API message 'delete_loopback_reply'.

func (*DeleteLoopbackReply) GetCrcString

func (*DeleteLoopbackReply) GetCrcString() string

func (*DeleteLoopbackReply) GetMessageName

func (*DeleteLoopbackReply) GetMessageName() string

func (*DeleteLoopbackReply) GetMessageType

func (*DeleteLoopbackReply) GetMessageType() api.MessageType

type DeleteSubif

type DeleteSubif struct {
	SwIfIndex InterfaceIndex
}

DeleteSubif represents VPP binary API message 'delete_subif'.

func (*DeleteSubif) GetCrcString

func (*DeleteSubif) GetCrcString() string

func (*DeleteSubif) GetMessageName

func (*DeleteSubif) GetMessageName() string

func (*DeleteSubif) GetMessageType

func (*DeleteSubif) GetMessageType() api.MessageType

type DeleteSubifReply

type DeleteSubifReply struct {
	Retval int32
}

DeleteSubifReply represents VPP binary API message 'delete_subif_reply'.

func (*DeleteSubifReply) GetCrcString

func (*DeleteSubifReply) GetCrcString() string

func (*DeleteSubifReply) GetMessageName

func (*DeleteSubifReply) GetMessageName() string

func (*DeleteSubifReply) GetMessageType

func (*DeleteSubifReply) GetMessageType() api.MessageType

type HwInterfaceSetMtu

type HwInterfaceSetMtu struct {
	SwIfIndex InterfaceIndex
	Mtu       uint16
}

HwInterfaceSetMtu represents VPP binary API message 'hw_interface_set_mtu'.

func (*HwInterfaceSetMtu) GetCrcString

func (*HwInterfaceSetMtu) GetCrcString() string

func (*HwInterfaceSetMtu) GetMessageName

func (*HwInterfaceSetMtu) GetMessageName() string

func (*HwInterfaceSetMtu) GetMessageType

func (*HwInterfaceSetMtu) GetMessageType() api.MessageType

type HwInterfaceSetMtuReply

type HwInterfaceSetMtuReply struct {
	Retval int32
}

HwInterfaceSetMtuReply represents VPP binary API message 'hw_interface_set_mtu_reply'.

func (*HwInterfaceSetMtuReply) GetCrcString

func (*HwInterfaceSetMtuReply) GetCrcString() string

func (*HwInterfaceSetMtuReply) GetMessageName

func (*HwInterfaceSetMtuReply) GetMessageName() string

func (*HwInterfaceSetMtuReply) GetMessageType

func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType

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 uint32

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_AH       IPProto = 50
	IP_API_PROTO_ESP      IPProto = 51
	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 = 1
	IF_API_TYPE_SUB      IfType = 2
	IF_API_TYPE_P2P      IfType = 3
	IF_API_TYPE_PIPE     IfType = 4
)

func (IfType) String

func (x IfType) String() string

type InterfaceIndex

type InterfaceIndex uint32

InterfaceIndex represents VPP binary API alias 'interface_index'.

type InterfaceNameRenumber

type InterfaceNameRenumber struct {
	SwIfIndex          InterfaceIndex
	NewShowDevInstance uint32
}

InterfaceNameRenumber represents VPP binary API message 'interface_name_renumber'.

func (*InterfaceNameRenumber) GetCrcString

func (*InterfaceNameRenumber) GetCrcString() string

func (*InterfaceNameRenumber) GetMessageName

func (*InterfaceNameRenumber) GetMessageName() string

func (*InterfaceNameRenumber) GetMessageType

func (*InterfaceNameRenumber) GetMessageType() api.MessageType

type InterfaceNameRenumberReply

type InterfaceNameRenumberReply struct {
	Retval int32
}

InterfaceNameRenumberReply represents VPP binary API message 'interface_name_renumber_reply'.

func (*InterfaceNameRenumberReply) GetCrcString

func (*InterfaceNameRenumberReply) GetCrcString() string

func (*InterfaceNameRenumberReply) GetMessageName

func (*InterfaceNameRenumberReply) GetMessageName() string

func (*InterfaceNameRenumberReply) GetMessageType

func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType

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 = 1
	MTU_PROTO_API_IP4  MtuProto = 2
	MTU_PROTO_API_IP6  MtuProto = 3
	MTU_PROTO_API_MPLS MtuProto = 4
	MTU_PROTO_API_N    MtuProto = 5
)

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

type RPCService interface {
	DumpSwInterface(ctx context.Context, in *SwInterfaceDump) (RPCService_DumpSwInterfaceClient, error)
	DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) (RPCService_DumpSwInterfaceRxPlacementClient, error)
	CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error)
	CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error)
	CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error)
	CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error)
	CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error)
	DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error)
	DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error)
	HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error)
	InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error)
	SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error)
	SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
	SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
	SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
	SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
	SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error)
	SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
	SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
	SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
	SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error)
	SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
	SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
	SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
	WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error)
}

RPCService represents RPC service API for interface module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

type RPCService_DumpSwInterfaceClient

type RPCService_DumpSwInterfaceClient interface {
	Recv() (*SwInterfaceDetails, error)
}

type RPCService_DumpSwInterfaceRxPlacementClient

type RPCService_DumpSwInterfaceRxPlacementClient interface {
	Recv() (*SwInterfaceRxPlacementDetails, 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 SwInterfaceAddDelAddress

type SwInterfaceAddDelAddress struct {
	SwIfIndex InterfaceIndex
	IsAdd     bool
	DelAll    bool
	Prefix    AddressWithPrefix
}

SwInterfaceAddDelAddress represents VPP binary API message 'sw_interface_add_del_address'.

func (*SwInterfaceAddDelAddress) GetCrcString

func (*SwInterfaceAddDelAddress) GetCrcString() string

func (*SwInterfaceAddDelAddress) GetMessageName

func (*SwInterfaceAddDelAddress) GetMessageName() string

func (*SwInterfaceAddDelAddress) GetMessageType

func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType

type SwInterfaceAddDelAddressReply

type SwInterfaceAddDelAddressReply struct {
	Retval int32
}

SwInterfaceAddDelAddressReply represents VPP binary API message 'sw_interface_add_del_address_reply'.

func (*SwInterfaceAddDelAddressReply) GetCrcString

func (*SwInterfaceAddDelAddressReply) GetCrcString() string

func (*SwInterfaceAddDelAddressReply) GetMessageName

func (*SwInterfaceAddDelAddressReply) GetMessageName() string

func (*SwInterfaceAddDelAddressReply) GetMessageType

func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType

type SwInterfaceClearStats

type SwInterfaceClearStats struct {
	SwIfIndex InterfaceIndex
}

SwInterfaceClearStats represents VPP binary API message 'sw_interface_clear_stats'.

func (*SwInterfaceClearStats) GetCrcString

func (*SwInterfaceClearStats) GetCrcString() string

func (*SwInterfaceClearStats) GetMessageName

func (*SwInterfaceClearStats) GetMessageName() string

func (*SwInterfaceClearStats) GetMessageType

func (*SwInterfaceClearStats) GetMessageType() api.MessageType

type SwInterfaceClearStatsReply

type SwInterfaceClearStatsReply struct {
	Retval int32
}

SwInterfaceClearStatsReply represents VPP binary API message 'sw_interface_clear_stats_reply'.

func (*SwInterfaceClearStatsReply) GetCrcString

func (*SwInterfaceClearStatsReply) GetCrcString() string

func (*SwInterfaceClearStatsReply) GetMessageName

func (*SwInterfaceClearStatsReply) GetMessageName() string

func (*SwInterfaceClearStatsReply) GetMessageType

func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType

type SwInterfaceDetails

type SwInterfaceDetails struct {
	SwIfIndex       InterfaceIndex
	SupSwIfIndex    uint32
	L2Address       MacAddress
	Flags           IfStatusFlags
	Type            IfType
	LinkDuplex      LinkDuplex
	LinkSpeed       uint32
	LinkMtu         uint16
	Mtu             []uint32 `struc:"[4]uint32"`
	SubID           uint32
	SubNumberOfTags uint8
	SubOuterVlanID  uint16
	SubInnerVlanID  uint16
	SubIfFlags      SubIfFlags
	VtrOp           uint32
	VtrPushDot1q    uint32
	VtrTag1         uint32
	VtrTag2         uint32
	OuterTag        uint16
	BDmac           MacAddress
	BSmac           MacAddress
	BVlanid         uint16
	ISid            uint32
	InterfaceName   string `struc:"[64]byte"`
	Tag             string `struc:"[64]byte"`
}

SwInterfaceDetails represents VPP binary API message 'sw_interface_details'.

func (*SwInterfaceDetails) GetCrcString

func (*SwInterfaceDetails) GetCrcString() string

func (*SwInterfaceDetails) GetMessageName

func (*SwInterfaceDetails) GetMessageName() string

func (*SwInterfaceDetails) GetMessageType

func (*SwInterfaceDetails) GetMessageType() api.MessageType

type SwInterfaceDump

type SwInterfaceDump struct {
	SwIfIndex         InterfaceIndex
	NameFilterValid   bool
	XXX_NameFilterLen uint32 `struc:"sizeof=NameFilter"`
	NameFilter        string
}

SwInterfaceDump represents VPP binary API message 'sw_interface_dump'.

func (*SwInterfaceDump) GetCrcString

func (*SwInterfaceDump) GetCrcString() string

func (*SwInterfaceDump) GetMessageName

func (*SwInterfaceDump) GetMessageName() string

func (*SwInterfaceDump) GetMessageType

func (*SwInterfaceDump) GetMessageType() api.MessageType

type SwInterfaceEvent

type SwInterfaceEvent struct {
	PID       uint32
	SwIfIndex InterfaceIndex
	Flags     IfStatusFlags
	Deleted   bool
}

SwInterfaceEvent represents VPP binary API message 'sw_interface_event'.

func (*SwInterfaceEvent) GetCrcString

func (*SwInterfaceEvent) GetCrcString() string

func (*SwInterfaceEvent) GetMessageName

func (*SwInterfaceEvent) GetMessageName() string

func (*SwInterfaceEvent) GetMessageType

func (*SwInterfaceEvent) GetMessageType() api.MessageType

type SwInterfaceGetMacAddress

type SwInterfaceGetMacAddress struct {
	SwIfIndex InterfaceIndex
}

SwInterfaceGetMacAddress represents VPP binary API message 'sw_interface_get_mac_address'.

func (*SwInterfaceGetMacAddress) GetCrcString

func (*SwInterfaceGetMacAddress) GetCrcString() string

func (*SwInterfaceGetMacAddress) GetMessageName

func (*SwInterfaceGetMacAddress) GetMessageName() string

func (*SwInterfaceGetMacAddress) GetMessageType

func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType

type SwInterfaceGetMacAddressReply

type SwInterfaceGetMacAddressReply struct {
	Retval     int32
	MacAddress MacAddress
}

SwInterfaceGetMacAddressReply represents VPP binary API message 'sw_interface_get_mac_address_reply'.

func (*SwInterfaceGetMacAddressReply) GetCrcString

func (*SwInterfaceGetMacAddressReply) GetCrcString() string

func (*SwInterfaceGetMacAddressReply) GetMessageName

func (*SwInterfaceGetMacAddressReply) GetMessageName() string

func (*SwInterfaceGetMacAddressReply) GetMessageType

func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType

type SwInterfaceGetTable

type SwInterfaceGetTable struct {
	SwIfIndex InterfaceIndex
	IsIPv6    bool
}

SwInterfaceGetTable represents VPP binary API message 'sw_interface_get_table'.

func (*SwInterfaceGetTable) GetCrcString

func (*SwInterfaceGetTable) GetCrcString() string

func (*SwInterfaceGetTable) GetMessageName

func (*SwInterfaceGetTable) GetMessageName() string

func (*SwInterfaceGetTable) GetMessageType

func (*SwInterfaceGetTable) GetMessageType() api.MessageType

type SwInterfaceGetTableReply

type SwInterfaceGetTableReply struct {
	Retval int32
	VrfID  uint32
}

SwInterfaceGetTableReply represents VPP binary API message 'sw_interface_get_table_reply'.

func (*SwInterfaceGetTableReply) GetCrcString

func (*SwInterfaceGetTableReply) GetCrcString() string

func (*SwInterfaceGetTableReply) GetMessageName

func (*SwInterfaceGetTableReply) GetMessageName() string

func (*SwInterfaceGetTableReply) GetMessageType

func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType

type SwInterfaceRxPlacementDetails

type SwInterfaceRxPlacementDetails struct {
	SwIfIndex InterfaceIndex
	QueueID   uint32
	WorkerID  uint32
	Mode      RxMode
}

SwInterfaceRxPlacementDetails represents VPP binary API message 'sw_interface_rx_placement_details'.

func (*SwInterfaceRxPlacementDetails) GetCrcString

func (*SwInterfaceRxPlacementDetails) GetCrcString() string

func (*SwInterfaceRxPlacementDetails) GetMessageName

func (*SwInterfaceRxPlacementDetails) GetMessageName() string

func (*SwInterfaceRxPlacementDetails) GetMessageType

func (*SwInterfaceRxPlacementDetails) GetMessageType() api.MessageType

type SwInterfaceRxPlacementDump

type SwInterfaceRxPlacementDump struct {
	SwIfIndex InterfaceIndex
}

SwInterfaceRxPlacementDump represents VPP binary API message 'sw_interface_rx_placement_dump'.

func (*SwInterfaceRxPlacementDump) GetCrcString

func (*SwInterfaceRxPlacementDump) GetCrcString() string

func (*SwInterfaceRxPlacementDump) GetMessageName

func (*SwInterfaceRxPlacementDump) GetMessageName() string

func (*SwInterfaceRxPlacementDump) GetMessageType

func (*SwInterfaceRxPlacementDump) GetMessageType() api.MessageType

type SwInterfaceSetFlags

type SwInterfaceSetFlags struct {
	SwIfIndex InterfaceIndex
	Flags     IfStatusFlags
}

SwInterfaceSetFlags represents VPP binary API message 'sw_interface_set_flags'.

func (*SwInterfaceSetFlags) GetCrcString

func (*SwInterfaceSetFlags) GetCrcString() string

func (*SwInterfaceSetFlags) GetMessageName

func (*SwInterfaceSetFlags) GetMessageName() string

func (*SwInterfaceSetFlags) GetMessageType

func (*SwInterfaceSetFlags) GetMessageType() api.MessageType

type SwInterfaceSetFlagsReply

type SwInterfaceSetFlagsReply struct {
	Retval int32
}

SwInterfaceSetFlagsReply represents VPP binary API message 'sw_interface_set_flags_reply'.

func (*SwInterfaceSetFlagsReply) GetCrcString

func (*SwInterfaceSetFlagsReply) GetCrcString() string

func (*SwInterfaceSetFlagsReply) GetMessageName

func (*SwInterfaceSetFlagsReply) GetMessageName() string

func (*SwInterfaceSetFlagsReply) GetMessageType

func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType

type SwInterfaceSetIPDirectedBroadcast

type SwInterfaceSetIPDirectedBroadcast struct {
	SwIfIndex InterfaceIndex
	Enable    bool
}

SwInterfaceSetIPDirectedBroadcast represents VPP binary API message 'sw_interface_set_ip_directed_broadcast'.

func (*SwInterfaceSetIPDirectedBroadcast) GetCrcString

func (*SwInterfaceSetIPDirectedBroadcast) GetCrcString() string

func (*SwInterfaceSetIPDirectedBroadcast) GetMessageName

func (*SwInterfaceSetIPDirectedBroadcast) GetMessageName() string

func (*SwInterfaceSetIPDirectedBroadcast) GetMessageType

type SwInterfaceSetIPDirectedBroadcastReply

type SwInterfaceSetIPDirectedBroadcastReply struct {
	Retval int32
}

SwInterfaceSetIPDirectedBroadcastReply represents VPP binary API message 'sw_interface_set_ip_directed_broadcast_reply'.

func (*SwInterfaceSetIPDirectedBroadcastReply) GetCrcString

func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageName

func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageType

type SwInterfaceSetMacAddress

type SwInterfaceSetMacAddress struct {
	SwIfIndex  InterfaceIndex
	MacAddress MacAddress
}

SwInterfaceSetMacAddress represents VPP binary API message 'sw_interface_set_mac_address'.

func (*SwInterfaceSetMacAddress) GetCrcString

func (*SwInterfaceSetMacAddress) GetCrcString() string

func (*SwInterfaceSetMacAddress) GetMessageName

func (*SwInterfaceSetMacAddress) GetMessageName() string

func (*SwInterfaceSetMacAddress) GetMessageType

func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType

type SwInterfaceSetMacAddressReply

type SwInterfaceSetMacAddressReply struct {
	Retval int32
}

SwInterfaceSetMacAddressReply represents VPP binary API message 'sw_interface_set_mac_address_reply'.

func (*SwInterfaceSetMacAddressReply) GetCrcString

func (*SwInterfaceSetMacAddressReply) GetCrcString() string

func (*SwInterfaceSetMacAddressReply) GetMessageName

func (*SwInterfaceSetMacAddressReply) GetMessageName() string

func (*SwInterfaceSetMacAddressReply) GetMessageType

func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType

type SwInterfaceSetMtu

type SwInterfaceSetMtu struct {
	SwIfIndex InterfaceIndex
	Mtu       []uint32 `struc:"[4]uint32"`
}

SwInterfaceSetMtu represents VPP binary API message 'sw_interface_set_mtu'.

func (*SwInterfaceSetMtu) GetCrcString

func (*SwInterfaceSetMtu) GetCrcString() string

func (*SwInterfaceSetMtu) GetMessageName

func (*SwInterfaceSetMtu) GetMessageName() string

func (*SwInterfaceSetMtu) GetMessageType

func (*SwInterfaceSetMtu) GetMessageType() api.MessageType

type SwInterfaceSetMtuReply

type SwInterfaceSetMtuReply struct {
	Retval int32
}

SwInterfaceSetMtuReply represents VPP binary API message 'sw_interface_set_mtu_reply'.

func (*SwInterfaceSetMtuReply) GetCrcString

func (*SwInterfaceSetMtuReply) GetCrcString() string

func (*SwInterfaceSetMtuReply) GetMessageName

func (*SwInterfaceSetMtuReply) GetMessageName() string

func (*SwInterfaceSetMtuReply) GetMessageType

func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType

type SwInterfaceSetRxMode

type SwInterfaceSetRxMode struct {
	SwIfIndex    InterfaceIndex
	QueueIDValid bool
	QueueID      uint32
	Mode         RxMode
}

SwInterfaceSetRxMode represents VPP binary API message 'sw_interface_set_rx_mode'.

func (*SwInterfaceSetRxMode) GetCrcString

func (*SwInterfaceSetRxMode) GetCrcString() string

func (*SwInterfaceSetRxMode) GetMessageName

func (*SwInterfaceSetRxMode) GetMessageName() string

func (*SwInterfaceSetRxMode) GetMessageType

func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType

type SwInterfaceSetRxModeReply

type SwInterfaceSetRxModeReply struct {
	Retval int32
}

SwInterfaceSetRxModeReply represents VPP binary API message 'sw_interface_set_rx_mode_reply'.

func (*SwInterfaceSetRxModeReply) GetCrcString

func (*SwInterfaceSetRxModeReply) GetCrcString() string

func (*SwInterfaceSetRxModeReply) GetMessageName

func (*SwInterfaceSetRxModeReply) GetMessageName() string

func (*SwInterfaceSetRxModeReply) GetMessageType

func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType

type SwInterfaceSetRxPlacement

type SwInterfaceSetRxPlacement struct {
	SwIfIndex InterfaceIndex
	QueueID   uint32
	WorkerID  uint32
	IsMain    bool
}

SwInterfaceSetRxPlacement represents VPP binary API message 'sw_interface_set_rx_placement'.

func (*SwInterfaceSetRxPlacement) GetCrcString

func (*SwInterfaceSetRxPlacement) GetCrcString() string

func (*SwInterfaceSetRxPlacement) GetMessageName

func (*SwInterfaceSetRxPlacement) GetMessageName() string

func (*SwInterfaceSetRxPlacement) GetMessageType

func (*SwInterfaceSetRxPlacement) GetMessageType() api.MessageType

type SwInterfaceSetRxPlacementReply

type SwInterfaceSetRxPlacementReply struct {
	Retval int32
}

SwInterfaceSetRxPlacementReply represents VPP binary API message 'sw_interface_set_rx_placement_reply'.

func (*SwInterfaceSetRxPlacementReply) GetCrcString

func (*SwInterfaceSetRxPlacementReply) GetCrcString() string

func (*SwInterfaceSetRxPlacementReply) GetMessageName

func (*SwInterfaceSetRxPlacementReply) GetMessageName() string

func (*SwInterfaceSetRxPlacementReply) GetMessageType

type SwInterfaceSetTable

type SwInterfaceSetTable struct {
	SwIfIndex InterfaceIndex
	IsIPv6    bool
	VrfID     uint32
}

SwInterfaceSetTable represents VPP binary API message 'sw_interface_set_table'.

func (*SwInterfaceSetTable) GetCrcString

func (*SwInterfaceSetTable) GetCrcString() string

func (*SwInterfaceSetTable) GetMessageName

func (*SwInterfaceSetTable) GetMessageName() string

func (*SwInterfaceSetTable) GetMessageType

func (*SwInterfaceSetTable) GetMessageType() api.MessageType

type SwInterfaceSetTableReply

type SwInterfaceSetTableReply struct {
	Retval int32
}

SwInterfaceSetTableReply represents VPP binary API message 'sw_interface_set_table_reply'.

func (*SwInterfaceSetTableReply) GetCrcString

func (*SwInterfaceSetTableReply) GetCrcString() string

func (*SwInterfaceSetTableReply) GetMessageName

func (*SwInterfaceSetTableReply) GetMessageName() string

func (*SwInterfaceSetTableReply) GetMessageType

func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType

type SwInterfaceSetUnnumbered

type SwInterfaceSetUnnumbered struct {
	SwIfIndex           InterfaceIndex
	UnnumberedSwIfIndex InterfaceIndex
	IsAdd               bool
}

SwInterfaceSetUnnumbered represents VPP binary API message 'sw_interface_set_unnumbered'.

func (*SwInterfaceSetUnnumbered) GetCrcString

func (*SwInterfaceSetUnnumbered) GetCrcString() string

func (*SwInterfaceSetUnnumbered) GetMessageName

func (*SwInterfaceSetUnnumbered) GetMessageName() string

func (*SwInterfaceSetUnnumbered) GetMessageType

func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType

type SwInterfaceSetUnnumberedReply

type SwInterfaceSetUnnumberedReply struct {
	Retval int32
}

SwInterfaceSetUnnumberedReply represents VPP binary API message 'sw_interface_set_unnumbered_reply'.

func (*SwInterfaceSetUnnumberedReply) GetCrcString

func (*SwInterfaceSetUnnumberedReply) GetCrcString() string

func (*SwInterfaceSetUnnumberedReply) GetMessageName

func (*SwInterfaceSetUnnumberedReply) GetMessageName() string

func (*SwInterfaceSetUnnumberedReply) GetMessageType

func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType

type SwInterfaceTagAddDel

type SwInterfaceTagAddDel struct {
	IsAdd     bool
	SwIfIndex InterfaceIndex
	Tag       string `struc:"[64]byte"`
}

SwInterfaceTagAddDel represents VPP binary API message 'sw_interface_tag_add_del'.

func (*SwInterfaceTagAddDel) GetCrcString

func (*SwInterfaceTagAddDel) GetCrcString() string

func (*SwInterfaceTagAddDel) GetMessageName

func (*SwInterfaceTagAddDel) GetMessageName() string

func (*SwInterfaceTagAddDel) GetMessageType

func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType

type SwInterfaceTagAddDelReply

type SwInterfaceTagAddDelReply struct {
	Retval int32
}

SwInterfaceTagAddDelReply represents VPP binary API message 'sw_interface_tag_add_del_reply'.

func (*SwInterfaceTagAddDelReply) GetCrcString

func (*SwInterfaceTagAddDelReply) GetCrcString() string

func (*SwInterfaceTagAddDelReply) GetMessageName

func (*SwInterfaceTagAddDelReply) GetMessageName() string

func (*SwInterfaceTagAddDelReply) GetMessageType

func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType

type WantInterfaceEvents

type WantInterfaceEvents struct {
	EnableDisable uint32
	PID           uint32
}

WantInterfaceEvents represents VPP binary API message 'want_interface_events'.

func (*WantInterfaceEvents) GetCrcString

func (*WantInterfaceEvents) GetCrcString() string

func (*WantInterfaceEvents) GetMessageName

func (*WantInterfaceEvents) GetMessageName() string

func (*WantInterfaceEvents) GetMessageType

func (*WantInterfaceEvents) GetMessageType() api.MessageType

type WantInterfaceEventsReply

type WantInterfaceEventsReply struct {
	Retval int32
}

WantInterfaceEventsReply represents VPP binary API message 'want_interface_events_reply'.

func (*WantInterfaceEventsReply) GetCrcString

func (*WantInterfaceEventsReply) GetCrcString() string

func (*WantInterfaceEventsReply) GetMessageName

func (*WantInterfaceEventsReply) GetMessageName() string

func (*WantInterfaceEventsReply) GetMessageType

func (*WantInterfaceEventsReply) GetMessageType() api.MessageType

Jump to

Keyboard shortcuts

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