classify

package
v0.0.0-...-140e075 Latest Latest
Warning

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

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

Documentation

Overview

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

Contents: - 3 enums - 44 messages

Index

Constants

View Source
const (
	APIFile    = "classify"
	APIVersion = "3.1.0"
	VersionCrc = 0x92a4f2c8
)

Variables

View Source
var (
	ClassifyAction_name = map[uint8]string{
		0: "CLASSIFY_API_ACTION_NONE",
		1: "CLASSIFY_API_ACTION_SET_IP4_FIB_INDEX",
		2: "CLASSIFY_API_ACTION_SET_IP6_FIB_INDEX",
		3: "CLASSIFY_API_ACTION_SET_METADATA",
	}
	ClassifyAction_value = map[string]uint8{
		"CLASSIFY_API_ACTION_NONE":              0,
		"CLASSIFY_API_ACTION_SET_IP4_FIB_INDEX": 1,
		"CLASSIFY_API_ACTION_SET_IP6_FIB_INDEX": 2,
		"CLASSIFY_API_ACTION_SET_METADATA":      3,
	}
)
View Source
var (
	FlowClassifyTable_name = map[uint8]string{
		0: "FLOW_CLASSIFY_API_TABLE_IP4",
		1: "FLOW_CLASSIFY_API_TABLE_IP6",
	}
	FlowClassifyTable_value = map[string]uint8{
		"FLOW_CLASSIFY_API_TABLE_IP4": 0,
		"FLOW_CLASSIFY_API_TABLE_IP6": 1,
	}
)
View Source
var (
	PolicerClassifyTable_name = map[uint8]string{
		0: "POLICER_CLASSIFY_API_TABLE_IP4",
		1: "POLICER_CLASSIFY_API_TABLE_IP6",
		2: "POLICER_CLASSIFY_API_TABLE_L2",
	}
	PolicerClassifyTable_value = map[string]uint8{
		"POLICER_CLASSIFY_API_TABLE_IP4": 0,
		"POLICER_CLASSIFY_API_TABLE_IP6": 1,
		"POLICER_CLASSIFY_API_TABLE_L2":  2,
	}
)

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type ClassifyAction

type ClassifyAction uint8

ClassifyAction defines enum 'classify_action'.

const (
	CLASSIFY_API_ACTION_NONE              ClassifyAction = 0
	CLASSIFY_API_ACTION_SET_IP4_FIB_INDEX ClassifyAction = 1
	CLASSIFY_API_ACTION_SET_IP6_FIB_INDEX ClassifyAction = 2
	CLASSIFY_API_ACTION_SET_METADATA      ClassifyAction = 3
)

func (ClassifyAction) String

func (x ClassifyAction) String() string

type ClassifyAddDelSession

type ClassifyAddDelSession struct {
	IsAdd        bool           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	TableIndex   uint32         `binapi:"u32,name=table_index" json:"table_index,omitempty"`
	HitNextIndex uint32         `binapi:"u32,name=hit_next_index,default=4294967295" json:"hit_next_index,omitempty"`
	OpaqueIndex  uint32         `binapi:"u32,name=opaque_index,default=4294967295" json:"opaque_index,omitempty"`
	Advance      int32          `binapi:"i32,name=advance,default=0" json:"advance,omitempty"`
	Action       ClassifyAction `binapi:"classify_action,name=action,default=0" json:"action,omitempty"`
	Metadata     uint32         `binapi:"u32,name=metadata,default=0" json:"metadata,omitempty"`
	MatchLen     uint32         `binapi:"u32,name=match_len" json:"-"`
	Match        []byte         `binapi:"u8[match_len],name=match" json:"match,omitempty"`
}

Classify add / del session request

  • is_add - add session if non-zero, else delete
  • table_index - index of the table to add/del the session, required
  • hit_next_index - for add, hit_next_index of new session, required
  • opaque_index - for add, opaque_index of new session
  • advance -for add, advance value for session
  • action - 0: no action (by default) metadata is not used. 1: Classified IP packets will be looked up from the specified ipv4 fib table (configured by metadata as VRF id). Only valid for L3 input ACL node 2: Classified IP packets will be looked up from the specified ipv6 fib table (configured by metadata as VRF id). Only valid for L3 input ACL node 3: Classified packet will be steered to source routing policy of given index (in metadata). This is only valid for IPv6 packets redirected to a source routing node.
  • metadata - valid only if action != 0 VRF id if action is 1 or 2. sr policy index if action is 3.
  • match_len - length of match, should be equal to skip_n_vectors plus match_n_vectors of target table times sizeof (u32x4)
  • match - for add, match value for session, required, needs to include bytes in front with length of skip_n_vectors of target table times sizeof (u32x4) (values of those bytes will be ignored)

ClassifyAddDelSession defines message 'classify_add_del_session'.

func (*ClassifyAddDelSession) GetCrcString

func (*ClassifyAddDelSession) GetCrcString() string

func (*ClassifyAddDelSession) GetMessageName

func (*ClassifyAddDelSession) GetMessageName() string

func (*ClassifyAddDelSession) GetMessageType

func (*ClassifyAddDelSession) GetMessageType() api.MessageType

func (*ClassifyAddDelSession) Marshal

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

func (*ClassifyAddDelSession) Reset

func (m *ClassifyAddDelSession) Reset()

func (*ClassifyAddDelSession) Size

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

func (*ClassifyAddDelSession) Unmarshal

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

type ClassifyAddDelSessionReply

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

ClassifyAddDelSessionReply defines message 'classify_add_del_session_reply'.

func (*ClassifyAddDelSessionReply) GetCrcString

func (*ClassifyAddDelSessionReply) GetCrcString() string

func (*ClassifyAddDelSessionReply) GetMessageName

func (*ClassifyAddDelSessionReply) GetMessageName() string

func (*ClassifyAddDelSessionReply) GetMessageType

func (*ClassifyAddDelSessionReply) GetMessageType() api.MessageType

func (*ClassifyAddDelSessionReply) Marshal

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

func (*ClassifyAddDelSessionReply) Reset

func (m *ClassifyAddDelSessionReply) Reset()

func (*ClassifyAddDelSessionReply) Size

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

func (*ClassifyAddDelSessionReply) Unmarshal

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

type ClassifyAddDelTable

type ClassifyAddDelTable struct {
	IsAdd             bool   `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	DelChain          bool   `binapi:"bool,name=del_chain" json:"del_chain,omitempty"`
	TableIndex        uint32 `binapi:"u32,name=table_index,default=4294967295" json:"table_index,omitempty"`
	Nbuckets          uint32 `binapi:"u32,name=nbuckets,default=2" json:"nbuckets,omitempty"`
	MemorySize        uint32 `binapi:"u32,name=memory_size,default=2097152" json:"memory_size,omitempty"`
	SkipNVectors      uint32 `binapi:"u32,name=skip_n_vectors,default=0" json:"skip_n_vectors,omitempty"`
	MatchNVectors     uint32 `binapi:"u32,name=match_n_vectors,default=1" json:"match_n_vectors,omitempty"`
	NextTableIndex    uint32 `binapi:"u32,name=next_table_index,default=4294967295" json:"next_table_index,omitempty"`
	MissNextIndex     uint32 `binapi:"u32,name=miss_next_index,default=4294967295" json:"miss_next_index,omitempty"`
	CurrentDataFlag   uint8  `binapi:"u8,name=current_data_flag,default=0" json:"current_data_flag,omitempty"`
	CurrentDataOffset int16  `binapi:"i16,name=current_data_offset,default=0" json:"current_data_offset,omitempty"`
	MaskLen           uint32 `binapi:"u32,name=mask_len" json:"-"`
	Mask              []byte `binapi:"u8[mask_len],name=mask" json:"mask,omitempty"`
}

Add/Delete classification table request

  • is_add- if non-zero add the table, else delete it
  • del_chain - if non-zero delete the whole chain of tables
  • table_index - if add, returns index of the created table, else specifies the table to delete
  • nbuckets - number of buckets when adding a table
  • memory_size - memory size when adding a table
  • match_n_vectors - number of match vectors
  • next_table_index - index of next table
  • miss_next_index - index of miss table
  • current_data_flag - option to use current node's packet payload as the starting point from where packets are classified, This option is only valid for L2/L3 input ACL for now. 0: by default, classify data from the buffer's start location 1: classify packets from VPP node’s current data pointer
  • current_data_offset - a signed value to shift the start location of the packet to be classified For example, if input IP ACL node is used, L2 header’s first byte can be accessible by configuring current_data_offset to -14 if there is no vlan tag. This is valid only if current_data_flag is set to 1.
  • mask_len - length of match mask, should be equal to match_n_vectors * sizeof (u32x4)
  • mask - match mask

ClassifyAddDelTable defines message 'classify_add_del_table'.

func (*ClassifyAddDelTable) GetCrcString

func (*ClassifyAddDelTable) GetCrcString() string

func (*ClassifyAddDelTable) GetMessageName

func (*ClassifyAddDelTable) GetMessageName() string

func (*ClassifyAddDelTable) GetMessageType

func (*ClassifyAddDelTable) GetMessageType() api.MessageType

func (*ClassifyAddDelTable) Marshal

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

func (*ClassifyAddDelTable) Reset

func (m *ClassifyAddDelTable) Reset()

func (*ClassifyAddDelTable) Size

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

func (*ClassifyAddDelTable) Unmarshal

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

type ClassifyAddDelTableReply

type ClassifyAddDelTableReply struct {
	Retval        int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	NewTableIndex uint32 `binapi:"u32,name=new_table_index" json:"new_table_index,omitempty"`
	SkipNVectors  uint32 `binapi:"u32,name=skip_n_vectors" json:"skip_n_vectors,omitempty"`
	MatchNVectors uint32 `binapi:"u32,name=match_n_vectors" json:"match_n_vectors,omitempty"`
}

Add/Delete classification table response

  • retval - return code for the table add/del request
  • new_table_index - for add, returned index of the new table
  • skip_n_vectors - for add, returned value of skip_n_vectors in table
  • match_n_vectors -for add, returned value of match_n_vectors in table

ClassifyAddDelTableReply defines message 'classify_add_del_table_reply'.

func (*ClassifyAddDelTableReply) GetCrcString

func (*ClassifyAddDelTableReply) GetCrcString() string

func (*ClassifyAddDelTableReply) GetMessageName

func (*ClassifyAddDelTableReply) GetMessageName() string

func (*ClassifyAddDelTableReply) GetMessageType

func (*ClassifyAddDelTableReply) GetMessageType() api.MessageType

func (*ClassifyAddDelTableReply) Marshal

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

func (*ClassifyAddDelTableReply) Reset

func (m *ClassifyAddDelTableReply) Reset()

func (*ClassifyAddDelTableReply) Size

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

func (*ClassifyAddDelTableReply) Unmarshal

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

type ClassifyPcapGetTables

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

Classify get the PCAP table indices for an interface ClassifyPcapGetTables defines message 'classify_pcap_get_tables'.

func (*ClassifyPcapGetTables) GetCrcString

func (*ClassifyPcapGetTables) GetCrcString() string

func (*ClassifyPcapGetTables) GetMessageName

func (*ClassifyPcapGetTables) GetMessageName() string

func (*ClassifyPcapGetTables) GetMessageType

func (*ClassifyPcapGetTables) GetMessageType() api.MessageType

func (*ClassifyPcapGetTables) Marshal

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

func (*ClassifyPcapGetTables) Reset

func (m *ClassifyPcapGetTables) Reset()

func (*ClassifyPcapGetTables) Size

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

func (*ClassifyPcapGetTables) Unmarshal

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

type ClassifyPcapGetTablesReply

type ClassifyPcapGetTablesReply struct {
	Retval  int32    `binapi:"i32,name=retval" json:"retval,omitempty"`
	Count   uint32   `binapi:"u32,name=count" json:"-"`
	Indices []uint32 `binapi:"u32[count],name=indices" json:"indices,omitempty"`
}

Classify get a PCAP tables response

  • retval - return code for the request
  • count - number of ids returned in response
  • indices - array of classify table indices

ClassifyPcapGetTablesReply defines message 'classify_pcap_get_tables_reply'.

func (*ClassifyPcapGetTablesReply) GetCrcString

func (*ClassifyPcapGetTablesReply) GetCrcString() string

func (*ClassifyPcapGetTablesReply) GetMessageName

func (*ClassifyPcapGetTablesReply) GetMessageName() string

func (*ClassifyPcapGetTablesReply) GetMessageType

func (*ClassifyPcapGetTablesReply) GetMessageType() api.MessageType

func (*ClassifyPcapGetTablesReply) Marshal

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

func (*ClassifyPcapGetTablesReply) Reset

func (m *ClassifyPcapGetTablesReply) Reset()

func (*ClassifyPcapGetTablesReply) Size

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

func (*ClassifyPcapGetTablesReply) Unmarshal

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

type ClassifyPcapLookupTable

type ClassifyPcapLookupTable struct {
	SwIfIndex     interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
	SkipNVectors  uint32                         `binapi:"u32,name=skip_n_vectors,default=0" json:"skip_n_vectors,omitempty"`
	MatchNVectors uint32                         `binapi:"u32,name=match_n_vectors,default=1" json:"match_n_vectors,omitempty"`
	MaskLen       uint32                         `binapi:"u32,name=mask_len" json:"-"`
	Mask          []byte                         `binapi:"u8[mask_len],name=mask" json:"mask,omitempty"`
}

Find a compatible Classify table in a PCAP chain

  • sw_if_index - interface whose chain will be searched, 0==system-wide
  • skip_n_vectors - number of u32x4 skip vectors
  • match_n_vectors - number of u32x4 vectors, 1..5
  • mask_len - length of mask, match_n_vectors * sizeof(u32x4)
  • mask - match mask

ClassifyPcapLookupTable defines message 'classify_pcap_lookup_table'.

func (*ClassifyPcapLookupTable) GetCrcString

func (*ClassifyPcapLookupTable) GetCrcString() string

func (*ClassifyPcapLookupTable) GetMessageName

func (*ClassifyPcapLookupTable) GetMessageName() string

func (*ClassifyPcapLookupTable) GetMessageType

func (*ClassifyPcapLookupTable) GetMessageType() api.MessageType

func (*ClassifyPcapLookupTable) Marshal

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

func (*ClassifyPcapLookupTable) Reset

func (m *ClassifyPcapLookupTable) Reset()

func (*ClassifyPcapLookupTable) Size

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

func (*ClassifyPcapLookupTable) Unmarshal

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

type ClassifyPcapLookupTableReply

type ClassifyPcapLookupTableReply struct {
	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	TableIndex uint32 `binapi:"u32,name=table_index" json:"table_index,omitempty"`
}

Classify pcap table lookup response

  • retval - return code for the table lookup request
  • table_index - returned index of the found table, or ~0

ClassifyPcapLookupTableReply defines message 'classify_pcap_lookup_table_reply'.

func (*ClassifyPcapLookupTableReply) GetCrcString

func (*ClassifyPcapLookupTableReply) GetCrcString() string

func (*ClassifyPcapLookupTableReply) GetMessageName

func (*ClassifyPcapLookupTableReply) GetMessageName() string

func (*ClassifyPcapLookupTableReply) GetMessageType

func (*ClassifyPcapLookupTableReply) GetMessageType() api.MessageType

func (*ClassifyPcapLookupTableReply) Marshal

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

func (*ClassifyPcapLookupTableReply) Reset

func (m *ClassifyPcapLookupTableReply) Reset()

func (*ClassifyPcapLookupTableReply) Size

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

func (*ClassifyPcapLookupTableReply) Unmarshal

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

type ClassifyPcapSetTable

type ClassifyPcapSetTable struct {
	SwIfIndex  interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	TableIndex uint32                         `binapi:"u32,name=table_index,default=4294967295" json:"table_index,omitempty"`
	SortMasks  bool                           `binapi:"bool,name=sort_masks,default=0" json:"sort_masks,omitempty"`
}

Add a Classify table into a PCAP chain on an interface

  • sw_if_index - interface whose chain will be searched, 0==system-wide
  • table_index - Classify table to be added
  • sort_masks - 1=sort masks into most-to-least specific order

ClassifyPcapSetTable defines message 'classify_pcap_set_table'.

func (*ClassifyPcapSetTable) GetCrcString

func (*ClassifyPcapSetTable) GetCrcString() string

func (*ClassifyPcapSetTable) GetMessageName

func (*ClassifyPcapSetTable) GetMessageName() string

func (*ClassifyPcapSetTable) GetMessageType

func (*ClassifyPcapSetTable) GetMessageType() api.MessageType

func (*ClassifyPcapSetTable) Marshal

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

func (*ClassifyPcapSetTable) Reset

func (m *ClassifyPcapSetTable) Reset()

func (*ClassifyPcapSetTable) Size

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

func (*ClassifyPcapSetTable) Unmarshal

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

type ClassifyPcapSetTableReply

type ClassifyPcapSetTableReply struct {
	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	TableIndex uint32 `binapi:"u32,name=table_index" json:"table_index,omitempty"`
}

Classify pcap table lookup response

  • retval - return code for the table lookup request
  • table_index - returned index of the sorted table chain

ClassifyPcapSetTableReply defines message 'classify_pcap_set_table_reply'.

func (*ClassifyPcapSetTableReply) GetCrcString

func (*ClassifyPcapSetTableReply) GetCrcString() string

func (*ClassifyPcapSetTableReply) GetMessageName

func (*ClassifyPcapSetTableReply) GetMessageName() string

func (*ClassifyPcapSetTableReply) GetMessageType

func (*ClassifyPcapSetTableReply) GetMessageType() api.MessageType

func (*ClassifyPcapSetTableReply) Marshal

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

func (*ClassifyPcapSetTableReply) Reset

func (m *ClassifyPcapSetTableReply) Reset()

func (*ClassifyPcapSetTableReply) Size

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

func (*ClassifyPcapSetTableReply) Unmarshal

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

type ClassifySessionDetails

type ClassifySessionDetails struct {
	Retval       int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	TableID      uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"`
	HitNextIndex uint32 `binapi:"u32,name=hit_next_index" json:"hit_next_index,omitempty"`
	Advance      int32  `binapi:"i32,name=advance" json:"advance,omitempty"`
	OpaqueIndex  uint32 `binapi:"u32,name=opaque_index" json:"opaque_index,omitempty"`
	MatchLength  uint32 `binapi:"u32,name=match_length" json:"-"`
	Match        []byte `binapi:"u8[match_length],name=match" json:"match,omitempty"`
}

Reply for classify table session dump request

  • count - number of ids returned in response
  • table_id - classify table index
  • hit_next_index - hit_next_index of session
  • opaque_index - for add, opaque_index of session
  • advance - advance value of session
  • match[] - match value for session

ClassifySessionDetails defines message 'classify_session_details'.

func (*ClassifySessionDetails) GetCrcString

func (*ClassifySessionDetails) GetCrcString() string

func (*ClassifySessionDetails) GetMessageName

func (*ClassifySessionDetails) GetMessageName() string

func (*ClassifySessionDetails) GetMessageType

func (*ClassifySessionDetails) GetMessageType() api.MessageType

func (*ClassifySessionDetails) Marshal

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

func (*ClassifySessionDetails) Reset

func (m *ClassifySessionDetails) Reset()

func (*ClassifySessionDetails) Size

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

func (*ClassifySessionDetails) Unmarshal

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

type ClassifySessionDump

type ClassifySessionDump struct {
	TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"`
}

Classify sessions dump request

  • table_id - classify table index

ClassifySessionDump defines message 'classify_session_dump'.

func (*ClassifySessionDump) GetCrcString

func (*ClassifySessionDump) GetCrcString() string

func (*ClassifySessionDump) GetMessageName

func (*ClassifySessionDump) GetMessageName() string

func (*ClassifySessionDump) GetMessageType

func (*ClassifySessionDump) GetMessageType() api.MessageType

func (*ClassifySessionDump) Marshal

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

func (*ClassifySessionDump) Reset

func (m *ClassifySessionDump) Reset()

func (*ClassifySessionDump) Size

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

func (*ClassifySessionDump) Unmarshal

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

type ClassifySetInterfaceIPTable

type ClassifySetInterfaceIPTable struct {
	IsIPv6     bool                           `binapi:"bool,name=is_ipv6" json:"is_ipv6,omitempty"`
	SwIfIndex  interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	TableIndex uint32                         `binapi:"u32,name=table_index" json:"table_index,omitempty"`
}

Set/unset the classification table for an interface request

  • is_ipv6 - ipv6 if non-zero, else ipv4
  • sw_if_index - interface to associate with the table
  • table_index - index of the table, if ~0 unset the table

ClassifySetInterfaceIPTable defines message 'classify_set_interface_ip_table'.

func (*ClassifySetInterfaceIPTable) GetCrcString

func (*ClassifySetInterfaceIPTable) GetCrcString() string

func (*ClassifySetInterfaceIPTable) GetMessageName

func (*ClassifySetInterfaceIPTable) GetMessageName() string

func (*ClassifySetInterfaceIPTable) GetMessageType

func (*ClassifySetInterfaceIPTable) GetMessageType() api.MessageType

func (*ClassifySetInterfaceIPTable) Marshal

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

func (*ClassifySetInterfaceIPTable) Reset

func (m *ClassifySetInterfaceIPTable) Reset()

func (*ClassifySetInterfaceIPTable) Size

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

func (*ClassifySetInterfaceIPTable) Unmarshal

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

type ClassifySetInterfaceIPTableReply

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

ClassifySetInterfaceIPTableReply defines message 'classify_set_interface_ip_table_reply'.

func (*ClassifySetInterfaceIPTableReply) GetCrcString

func (*ClassifySetInterfaceIPTableReply) GetCrcString() string

func (*ClassifySetInterfaceIPTableReply) GetMessageName

func (*ClassifySetInterfaceIPTableReply) GetMessageName() string

func (*ClassifySetInterfaceIPTableReply) GetMessageType

func (*ClassifySetInterfaceIPTableReply) Marshal

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

func (*ClassifySetInterfaceIPTableReply) Reset

func (*ClassifySetInterfaceIPTableReply) Size

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

func (*ClassifySetInterfaceIPTableReply) Unmarshal

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

type ClassifySetInterfaceL2Tables

type ClassifySetInterfaceL2Tables struct {
	SwIfIndex       interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	IP4TableIndex   uint32                         `binapi:"u32,name=ip4_table_index" json:"ip4_table_index,omitempty"`
	IP6TableIndex   uint32                         `binapi:"u32,name=ip6_table_index" json:"ip6_table_index,omitempty"`
	OtherTableIndex uint32                         `binapi:"u32,name=other_table_index" json:"other_table_index,omitempty"`
	IsInput         bool                           `binapi:"bool,name=is_input" json:"is_input,omitempty"`
}

Set/unset l2 classification tables for an interface request

  • sw_if_index - interface to set/unset tables for
  • ip4_table_index - ip4 index, use ~0 for all 3 indexes to unset
  • ip6_table_index - ip6 index
  • other_table_index - other index

ClassifySetInterfaceL2Tables defines message 'classify_set_interface_l2_tables'.

func (*ClassifySetInterfaceL2Tables) GetCrcString

func (*ClassifySetInterfaceL2Tables) GetCrcString() string

func (*ClassifySetInterfaceL2Tables) GetMessageName

func (*ClassifySetInterfaceL2Tables) GetMessageName() string

func (*ClassifySetInterfaceL2Tables) GetMessageType

func (*ClassifySetInterfaceL2Tables) GetMessageType() api.MessageType

func (*ClassifySetInterfaceL2Tables) Marshal

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

func (*ClassifySetInterfaceL2Tables) Reset

func (m *ClassifySetInterfaceL2Tables) Reset()

func (*ClassifySetInterfaceL2Tables) Size

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

func (*ClassifySetInterfaceL2Tables) Unmarshal

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

type ClassifySetInterfaceL2TablesReply

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

ClassifySetInterfaceL2TablesReply defines message 'classify_set_interface_l2_tables_reply'.

func (*ClassifySetInterfaceL2TablesReply) GetCrcString

func (*ClassifySetInterfaceL2TablesReply) GetCrcString() string

func (*ClassifySetInterfaceL2TablesReply) GetMessageName

func (*ClassifySetInterfaceL2TablesReply) GetMessageName() string

func (*ClassifySetInterfaceL2TablesReply) GetMessageType

func (*ClassifySetInterfaceL2TablesReply) Marshal

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

func (*ClassifySetInterfaceL2TablesReply) Reset

func (*ClassifySetInterfaceL2TablesReply) Size

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

func (*ClassifySetInterfaceL2TablesReply) Unmarshal

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

type ClassifyTableByInterface

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

Classify table ids by interface index request

  • sw_if_index - index of the interface

ClassifyTableByInterface defines message 'classify_table_by_interface'.

func (*ClassifyTableByInterface) GetCrcString

func (*ClassifyTableByInterface) GetCrcString() string

func (*ClassifyTableByInterface) GetMessageName

func (*ClassifyTableByInterface) GetMessageName() string

func (*ClassifyTableByInterface) GetMessageType

func (*ClassifyTableByInterface) GetMessageType() api.MessageType

func (*ClassifyTableByInterface) Marshal

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

func (*ClassifyTableByInterface) Reset

func (m *ClassifyTableByInterface) Reset()

func (*ClassifyTableByInterface) Size

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

func (*ClassifyTableByInterface) Unmarshal

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

type ClassifyTableByInterfaceReply

type ClassifyTableByInterfaceReply struct {
	Retval     int32                          `binapi:"i32,name=retval" json:"retval,omitempty"`
	SwIfIndex  interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	L2TableID  uint32                         `binapi:"u32,name=l2_table_id" json:"l2_table_id,omitempty"`
	IP4TableID uint32                         `binapi:"u32,name=ip4_table_id" json:"ip4_table_id,omitempty"`
	IP6TableID uint32                         `binapi:"u32,name=ip6_table_id" json:"ip6_table_id,omitempty"`
}

Reply for classify table id by interface index request

  • count - number of ids returned in response
  • sw_if_index - index of the interface
  • l2_table_id - l2 classify table index
  • ip4_table_id - ip4 classify table index
  • ip6_table_id - ip6 classify table index

ClassifyTableByInterfaceReply defines message 'classify_table_by_interface_reply'.

func (*ClassifyTableByInterfaceReply) GetCrcString

func (*ClassifyTableByInterfaceReply) GetCrcString() string

func (*ClassifyTableByInterfaceReply) GetMessageName

func (*ClassifyTableByInterfaceReply) GetMessageName() string

func (*ClassifyTableByInterfaceReply) GetMessageType

func (*ClassifyTableByInterfaceReply) GetMessageType() api.MessageType

func (*ClassifyTableByInterfaceReply) Marshal

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

func (*ClassifyTableByInterfaceReply) Reset

func (m *ClassifyTableByInterfaceReply) Reset()

func (*ClassifyTableByInterfaceReply) Size

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

func (*ClassifyTableByInterfaceReply) Unmarshal

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

type ClassifyTableIds

type ClassifyTableIds struct{}

Classify get table IDs request ClassifyTableIds defines message 'classify_table_ids'.

func (*ClassifyTableIds) GetCrcString

func (*ClassifyTableIds) GetCrcString() string

func (*ClassifyTableIds) GetMessageName

func (*ClassifyTableIds) GetMessageName() string

func (*ClassifyTableIds) GetMessageType

func (*ClassifyTableIds) GetMessageType() api.MessageType

func (*ClassifyTableIds) Marshal

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

func (*ClassifyTableIds) Reset

func (m *ClassifyTableIds) Reset()

func (*ClassifyTableIds) Size

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

func (*ClassifyTableIds) Unmarshal

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

type ClassifyTableIdsReply

type ClassifyTableIdsReply struct {
	Retval int32    `binapi:"i32,name=retval" json:"retval,omitempty"`
	Count  uint32   `binapi:"u32,name=count" json:"-"`
	Ids    []uint32 `binapi:"u32[count],name=ids" json:"ids,omitempty"`
}

Reply for classify get table IDs request

  • count - number of ids returned in response
  • ids - array of classify table ids

ClassifyTableIdsReply defines message 'classify_table_ids_reply'.

func (*ClassifyTableIdsReply) GetCrcString

func (*ClassifyTableIdsReply) GetCrcString() string

func (*ClassifyTableIdsReply) GetMessageName

func (*ClassifyTableIdsReply) GetMessageName() string

func (*ClassifyTableIdsReply) GetMessageType

func (*ClassifyTableIdsReply) GetMessageType() api.MessageType

func (*ClassifyTableIdsReply) Marshal

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

func (*ClassifyTableIdsReply) Reset

func (m *ClassifyTableIdsReply) Reset()

func (*ClassifyTableIdsReply) Size

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

func (*ClassifyTableIdsReply) Unmarshal

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

type ClassifyTableInfo

type ClassifyTableInfo struct {
	TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"`
}

Classify table info

  • table_id - classify table index

ClassifyTableInfo defines message 'classify_table_info'.

func (*ClassifyTableInfo) GetCrcString

func (*ClassifyTableInfo) GetCrcString() string

func (*ClassifyTableInfo) GetMessageName

func (*ClassifyTableInfo) GetMessageName() string

func (*ClassifyTableInfo) GetMessageType

func (*ClassifyTableInfo) GetMessageType() api.MessageType

func (*ClassifyTableInfo) Marshal

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

func (*ClassifyTableInfo) Reset

func (m *ClassifyTableInfo) Reset()

func (*ClassifyTableInfo) Size

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

func (*ClassifyTableInfo) Unmarshal

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

type ClassifyTableInfoReply

type ClassifyTableInfoReply struct {
	Retval         int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	TableID        uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"`
	Nbuckets       uint32 `binapi:"u32,name=nbuckets" json:"nbuckets,omitempty"`
	MatchNVectors  uint32 `binapi:"u32,name=match_n_vectors" json:"match_n_vectors,omitempty"`
	SkipNVectors   uint32 `binapi:"u32,name=skip_n_vectors" json:"skip_n_vectors,omitempty"`
	ActiveSessions uint32 `binapi:"u32,name=active_sessions" json:"active_sessions,omitempty"`
	NextTableIndex uint32 `binapi:"u32,name=next_table_index" json:"next_table_index,omitempty"`
	MissNextIndex  uint32 `binapi:"u32,name=miss_next_index" json:"miss_next_index,omitempty"`
	MaskLength     uint32 `binapi:"u32,name=mask_length" json:"-"`
	Mask           []byte `binapi:"u8[mask_length],name=mask" json:"mask,omitempty"`
}

Reply for classify table info request

  • count - number of ids returned in response
  • table_id - classify table index
  • nbuckets - number of buckets when adding a table
  • match_n_vectors - number of match vectors
  • skip_n_vectors - number of skip_n_vectors
  • active_sessions - number of sessions (active entries)
  • next_table_index - index of next table
  • miss_next_index - index of miss table
  • mask[] - match mask

ClassifyTableInfoReply defines message 'classify_table_info_reply'.

func (*ClassifyTableInfoReply) GetCrcString

func (*ClassifyTableInfoReply) GetCrcString() string

func (*ClassifyTableInfoReply) GetMessageName

func (*ClassifyTableInfoReply) GetMessageName() string

func (*ClassifyTableInfoReply) GetMessageType

func (*ClassifyTableInfoReply) GetMessageType() api.MessageType

func (*ClassifyTableInfoReply) Marshal

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

func (*ClassifyTableInfoReply) Reset

func (m *ClassifyTableInfoReply) Reset()

func (*ClassifyTableInfoReply) Size

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

func (*ClassifyTableInfoReply) Unmarshal

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

type ClassifyTraceGetTables

type ClassifyTraceGetTables struct{}

Classify get the Trace table indices ClassifyTraceGetTables defines message 'classify_trace_get_tables'.

func (*ClassifyTraceGetTables) GetCrcString

func (*ClassifyTraceGetTables) GetCrcString() string

func (*ClassifyTraceGetTables) GetMessageName

func (*ClassifyTraceGetTables) GetMessageName() string

func (*ClassifyTraceGetTables) GetMessageType

func (*ClassifyTraceGetTables) GetMessageType() api.MessageType

func (*ClassifyTraceGetTables) Marshal

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

func (*ClassifyTraceGetTables) Reset

func (m *ClassifyTraceGetTables) Reset()

func (*ClassifyTraceGetTables) Size

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

func (*ClassifyTraceGetTables) Unmarshal

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

type ClassifyTraceGetTablesReply

type ClassifyTraceGetTablesReply struct {
	Retval  int32    `binapi:"i32,name=retval" json:"retval,omitempty"`
	Count   uint32   `binapi:"u32,name=count" json:"-"`
	Indices []uint32 `binapi:"u32[count],name=indices" json:"indices,omitempty"`
}

Classify get the Trace tables response

  • retval - return code for the request
  • count - number of ids returned in response
  • indices - array of classify table indices

ClassifyTraceGetTablesReply defines message 'classify_trace_get_tables_reply'.

func (*ClassifyTraceGetTablesReply) GetCrcString

func (*ClassifyTraceGetTablesReply) GetCrcString() string

func (*ClassifyTraceGetTablesReply) GetMessageName

func (*ClassifyTraceGetTablesReply) GetMessageName() string

func (*ClassifyTraceGetTablesReply) GetMessageType

func (*ClassifyTraceGetTablesReply) GetMessageType() api.MessageType

func (*ClassifyTraceGetTablesReply) Marshal

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

func (*ClassifyTraceGetTablesReply) Reset

func (m *ClassifyTraceGetTablesReply) Reset()

func (*ClassifyTraceGetTablesReply) Size

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

func (*ClassifyTraceGetTablesReply) Unmarshal

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

type ClassifyTraceLookupTable

type ClassifyTraceLookupTable struct {
	SkipNVectors  uint32 `binapi:"u32,name=skip_n_vectors,default=0" json:"skip_n_vectors,omitempty"`
	MatchNVectors uint32 `binapi:"u32,name=match_n_vectors,default=1" json:"match_n_vectors,omitempty"`
	MaskLen       uint32 `binapi:"u32,name=mask_len" json:"-"`
	Mask          []byte `binapi:"u8[mask_len],name=mask" json:"mask,omitempty"`
}

Find a mask-compatible Classify table in the Trace chain

  • skip_n_vectors - number of u32x4 skip vectors
  • match_n_vectors - number of u32x4 vectors, 1..5
  • mask_len - length of mask, match_n_vectors * sizeof(u32x4)
  • mask - match mask

ClassifyTraceLookupTable defines message 'classify_trace_lookup_table'.

func (*ClassifyTraceLookupTable) GetCrcString

func (*ClassifyTraceLookupTable) GetCrcString() string

func (*ClassifyTraceLookupTable) GetMessageName

func (*ClassifyTraceLookupTable) GetMessageName() string

func (*ClassifyTraceLookupTable) GetMessageType

func (*ClassifyTraceLookupTable) GetMessageType() api.MessageType

func (*ClassifyTraceLookupTable) Marshal

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

func (*ClassifyTraceLookupTable) Reset

func (m *ClassifyTraceLookupTable) Reset()

func (*ClassifyTraceLookupTable) Size

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

func (*ClassifyTraceLookupTable) Unmarshal

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

type ClassifyTraceLookupTableReply

type ClassifyTraceLookupTableReply struct {
	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	TableIndex uint32 `binapi:"u32,name=table_index" json:"table_index,omitempty"`
}

Classify trace table lookup response

  • retval - return code for the table lookup request
  • table_index - returned index of the found table, or ~0

ClassifyTraceLookupTableReply defines message 'classify_trace_lookup_table_reply'.

func (*ClassifyTraceLookupTableReply) GetCrcString

func (*ClassifyTraceLookupTableReply) GetCrcString() string

func (*ClassifyTraceLookupTableReply) GetMessageName

func (*ClassifyTraceLookupTableReply) GetMessageName() string

func (*ClassifyTraceLookupTableReply) GetMessageType

func (*ClassifyTraceLookupTableReply) GetMessageType() api.MessageType

func (*ClassifyTraceLookupTableReply) Marshal

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

func (*ClassifyTraceLookupTableReply) Reset

func (m *ClassifyTraceLookupTableReply) Reset()

func (*ClassifyTraceLookupTableReply) Size

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

func (*ClassifyTraceLookupTableReply) Unmarshal

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

type ClassifyTraceSetTable

type ClassifyTraceSetTable struct {
	TableIndex uint32 `binapi:"u32,name=table_index,default=4294967295" json:"table_index,omitempty"`
	SortMasks  bool   `binapi:"bool,name=sort_masks,default=0" json:"sort_masks,omitempty"`
}

Add a Classify table into the Trace chain

  • table_index - Classify table to be added
  • sort_masks - 1=sort masks into most-to-least specific order

ClassifyTraceSetTable defines message 'classify_trace_set_table'.

func (*ClassifyTraceSetTable) GetCrcString

func (*ClassifyTraceSetTable) GetCrcString() string

func (*ClassifyTraceSetTable) GetMessageName

func (*ClassifyTraceSetTable) GetMessageName() string

func (*ClassifyTraceSetTable) GetMessageType

func (*ClassifyTraceSetTable) GetMessageType() api.MessageType

func (*ClassifyTraceSetTable) Marshal

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

func (*ClassifyTraceSetTable) Reset

func (m *ClassifyTraceSetTable) Reset()

func (*ClassifyTraceSetTable) Size

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

func (*ClassifyTraceSetTable) Unmarshal

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

type ClassifyTraceSetTableReply

type ClassifyTraceSetTableReply struct {
	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	TableIndex uint32 `binapi:"u32,name=table_index" json:"table_index,omitempty"`
}

Classify Trace table lookup response

  • retval - return code for the table lookup request
  • table_index - returned index of the sorted table chain

ClassifyTraceSetTableReply defines message 'classify_trace_set_table_reply'.

func (*ClassifyTraceSetTableReply) GetCrcString

func (*ClassifyTraceSetTableReply) GetCrcString() string

func (*ClassifyTraceSetTableReply) GetMessageName

func (*ClassifyTraceSetTableReply) GetMessageName() string

func (*ClassifyTraceSetTableReply) GetMessageType

func (*ClassifyTraceSetTableReply) GetMessageType() api.MessageType

func (*ClassifyTraceSetTableReply) Marshal

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

func (*ClassifyTraceSetTableReply) Reset

func (m *ClassifyTraceSetTableReply) Reset()

func (*ClassifyTraceSetTableReply) Size

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

func (*ClassifyTraceSetTableReply) Unmarshal

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

type FlowClassifyDetails

type FlowClassifyDetails struct {
	SwIfIndex  interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	TableIndex uint32                         `binapi:"u32,name=table_index" json:"table_index,omitempty"`
}

Flow classify operational state response.

  • sw_if_index - software interface index
  • table_index - classify table index

FlowClassifyDetails defines message 'flow_classify_details'.

func (*FlowClassifyDetails) GetCrcString

func (*FlowClassifyDetails) GetCrcString() string

func (*FlowClassifyDetails) GetMessageName

func (*FlowClassifyDetails) GetMessageName() string

func (*FlowClassifyDetails) GetMessageType

func (*FlowClassifyDetails) GetMessageType() api.MessageType

func (*FlowClassifyDetails) Marshal

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

func (*FlowClassifyDetails) Reset

func (m *FlowClassifyDetails) Reset()

func (*FlowClassifyDetails) Size

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

func (*FlowClassifyDetails) Unmarshal

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

type FlowClassifyDump

type FlowClassifyDump struct {
	Type      FlowClassifyTable              `binapi:"flow_classify_table,name=type" json:"type,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

Get list of flow classify interfaces and tables

  • type - flow classify table type
  • sw_if_index - filter on sw_if_index

FlowClassifyDump defines message 'flow_classify_dump'.

func (*FlowClassifyDump) GetCrcString

func (*FlowClassifyDump) GetCrcString() string

func (*FlowClassifyDump) GetMessageName

func (*FlowClassifyDump) GetMessageName() string

func (*FlowClassifyDump) GetMessageType

func (*FlowClassifyDump) GetMessageType() api.MessageType

func (*FlowClassifyDump) Marshal

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

func (*FlowClassifyDump) Reset

func (m *FlowClassifyDump) Reset()

func (*FlowClassifyDump) Size

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

func (*FlowClassifyDump) Unmarshal

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

type FlowClassifySetInterface

type FlowClassifySetInterface struct {
	SwIfIndex     interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	IP4TableIndex uint32                         `binapi:"u32,name=ip4_table_index" json:"ip4_table_index,omitempty"`
	IP6TableIndex uint32                         `binapi:"u32,name=ip6_table_index" json:"ip6_table_index,omitempty"`
	IsAdd         bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
}

Set/unset flow classify interface

  • sw_if_index - interface to set/unset flow classify
  • ip4_table_index - ip4 classify table index (~0 for skip)
  • ip6_table_index - ip6 classify table index (~0 for skip)
  • l2_table_index - l2 classify table index (~0 for skip)
  • is_add - Set if non-zero, else unset Note: User is recommended to use just one valid table_index per call. (ip4_table_index, ip6_table_index, or l2_table_index)

FlowClassifySetInterface defines message 'flow_classify_set_interface'.

func (*FlowClassifySetInterface) GetCrcString

func (*FlowClassifySetInterface) GetCrcString() string

func (*FlowClassifySetInterface) GetMessageName

func (*FlowClassifySetInterface) GetMessageName() string

func (*FlowClassifySetInterface) GetMessageType

func (*FlowClassifySetInterface) GetMessageType() api.MessageType

func (*FlowClassifySetInterface) Marshal

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

func (*FlowClassifySetInterface) Reset

func (m *FlowClassifySetInterface) Reset()

func (*FlowClassifySetInterface) Size

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

func (*FlowClassifySetInterface) Unmarshal

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

type FlowClassifySetInterfaceReply

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

FlowClassifySetInterfaceReply defines message 'flow_classify_set_interface_reply'.

func (*FlowClassifySetInterfaceReply) GetCrcString

func (*FlowClassifySetInterfaceReply) GetCrcString() string

func (*FlowClassifySetInterfaceReply) GetMessageName

func (*FlowClassifySetInterfaceReply) GetMessageName() string

func (*FlowClassifySetInterfaceReply) GetMessageType

func (*FlowClassifySetInterfaceReply) GetMessageType() api.MessageType

func (*FlowClassifySetInterfaceReply) Marshal

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

func (*FlowClassifySetInterfaceReply) Reset

func (m *FlowClassifySetInterfaceReply) Reset()

func (*FlowClassifySetInterfaceReply) Size

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

func (*FlowClassifySetInterfaceReply) Unmarshal

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

type FlowClassifyTable

type FlowClassifyTable uint8

FlowClassifyTable defines enum 'flow_classify_table'.

const (
	FLOW_CLASSIFY_API_TABLE_IP4 FlowClassifyTable = 0
	FLOW_CLASSIFY_API_TABLE_IP6 FlowClassifyTable = 1
)

func (FlowClassifyTable) String

func (x FlowClassifyTable) String() string

type InputACLSetInterface

type InputACLSetInterface struct {
	SwIfIndex     interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	IP4TableIndex uint32                         `binapi:"u32,name=ip4_table_index" json:"ip4_table_index,omitempty"`
	IP6TableIndex uint32                         `binapi:"u32,name=ip6_table_index" json:"ip6_table_index,omitempty"`
	L2TableIndex  uint32                         `binapi:"u32,name=l2_table_index" json:"l2_table_index,omitempty"`
	IsAdd         bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
}

Set/unset input ACL interface

  • sw_if_index - interface to set/unset input ACL
  • ip4_table_index - ip4 classify table index (~0 for skip)
  • ip6_table_index - ip6 classify table index (~0 for skip)
  • l2_table_index - l2 classify table index (~0 for skip)
  • is_add - Set input ACL if non-zero, else unset Note: User is recommended to use just one valid table_index per call. (ip4_table_index, ip6_table_index, or l2_table_index)

InputACLSetInterface defines message 'input_acl_set_interface'.

func (*InputACLSetInterface) GetCrcString

func (*InputACLSetInterface) GetCrcString() string

func (*InputACLSetInterface) GetMessageName

func (*InputACLSetInterface) GetMessageName() string

func (*InputACLSetInterface) GetMessageType

func (*InputACLSetInterface) GetMessageType() api.MessageType

func (*InputACLSetInterface) Marshal

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

func (*InputACLSetInterface) Reset

func (m *InputACLSetInterface) Reset()

func (*InputACLSetInterface) Size

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

func (*InputACLSetInterface) Unmarshal

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

type InputACLSetInterfaceReply

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

InputACLSetInterfaceReply defines message 'input_acl_set_interface_reply'.

func (*InputACLSetInterfaceReply) GetCrcString

func (*InputACLSetInterfaceReply) GetCrcString() string

func (*InputACLSetInterfaceReply) GetMessageName

func (*InputACLSetInterfaceReply) GetMessageName() string

func (*InputACLSetInterfaceReply) GetMessageType

func (*InputACLSetInterfaceReply) GetMessageType() api.MessageType

func (*InputACLSetInterfaceReply) Marshal

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

func (*InputACLSetInterfaceReply) Reset

func (m *InputACLSetInterfaceReply) Reset()

func (*InputACLSetInterfaceReply) Size

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

func (*InputACLSetInterfaceReply) Unmarshal

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

type OutputACLSetInterface

type OutputACLSetInterface struct {
	SwIfIndex     interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	IP4TableIndex uint32                         `binapi:"u32,name=ip4_table_index" json:"ip4_table_index,omitempty"`
	IP6TableIndex uint32                         `binapi:"u32,name=ip6_table_index" json:"ip6_table_index,omitempty"`
	L2TableIndex  uint32                         `binapi:"u32,name=l2_table_index" json:"l2_table_index,omitempty"`
	IsAdd         bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
}

Set/unset output ACL interface

  • sw_if_index - interface to set/unset output ACL
  • ip4_table_index - ip4 classify table index (~0 for skip)
  • ip6_table_index - ip6 classify table index (~0 for skip)
  • l2_table_index - l2 classify table index (~0 for skip)
  • is_add - Set output ACL if non-zero, else unset Note: User is recommended to use just one valid table_index per call. (ip4_table_index, ip6_table_index, or l2_table_index)

OutputACLSetInterface defines message 'output_acl_set_interface'.

func (*OutputACLSetInterface) GetCrcString

func (*OutputACLSetInterface) GetCrcString() string

func (*OutputACLSetInterface) GetMessageName

func (*OutputACLSetInterface) GetMessageName() string

func (*OutputACLSetInterface) GetMessageType

func (*OutputACLSetInterface) GetMessageType() api.MessageType

func (*OutputACLSetInterface) Marshal

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

func (*OutputACLSetInterface) Reset

func (m *OutputACLSetInterface) Reset()

func (*OutputACLSetInterface) Size

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

func (*OutputACLSetInterface) Unmarshal

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

type OutputACLSetInterfaceReply

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

OutputACLSetInterfaceReply defines message 'output_acl_set_interface_reply'.

func (*OutputACLSetInterfaceReply) GetCrcString

func (*OutputACLSetInterfaceReply) GetCrcString() string

func (*OutputACLSetInterfaceReply) GetMessageName

func (*OutputACLSetInterfaceReply) GetMessageName() string

func (*OutputACLSetInterfaceReply) GetMessageType

func (*OutputACLSetInterfaceReply) GetMessageType() api.MessageType

func (*OutputACLSetInterfaceReply) Marshal

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

func (*OutputACLSetInterfaceReply) Reset

func (m *OutputACLSetInterfaceReply) Reset()

func (*OutputACLSetInterfaceReply) Size

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

func (*OutputACLSetInterfaceReply) Unmarshal

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

type PolicerClassifyDetails

type PolicerClassifyDetails struct {
	SwIfIndex  interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	TableIndex uint32                         `binapi:"u32,name=table_index" json:"table_index,omitempty"`
}

Policer classify operational state response.

  • sw_if_index - software interface index
  • table_index - classify table index

PolicerClassifyDetails defines message 'policer_classify_details'.

func (*PolicerClassifyDetails) GetCrcString

func (*PolicerClassifyDetails) GetCrcString() string

func (*PolicerClassifyDetails) GetMessageName

func (*PolicerClassifyDetails) GetMessageName() string

func (*PolicerClassifyDetails) GetMessageType

func (*PolicerClassifyDetails) GetMessageType() api.MessageType

func (*PolicerClassifyDetails) Marshal

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

func (*PolicerClassifyDetails) Reset

func (m *PolicerClassifyDetails) Reset()

func (*PolicerClassifyDetails) Size

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

func (*PolicerClassifyDetails) Unmarshal

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

type PolicerClassifyDump

type PolicerClassifyDump struct {
	Type      PolicerClassifyTable           `binapi:"policer_classify_table,name=type" json:"type,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

Get list of policer classify interfaces and tables

  • type - classify table type
  • sw_if_index - filter on sw_if_index

PolicerClassifyDump defines message 'policer_classify_dump'.

func (*PolicerClassifyDump) GetCrcString

func (*PolicerClassifyDump) GetCrcString() string

func (*PolicerClassifyDump) GetMessageName

func (*PolicerClassifyDump) GetMessageName() string

func (*PolicerClassifyDump) GetMessageType

func (*PolicerClassifyDump) GetMessageType() api.MessageType

func (*PolicerClassifyDump) Marshal

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

func (*PolicerClassifyDump) Reset

func (m *PolicerClassifyDump) Reset()

func (*PolicerClassifyDump) Size

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

func (*PolicerClassifyDump) Unmarshal

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

type PolicerClassifySetInterface

type PolicerClassifySetInterface struct {
	SwIfIndex     interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	IP4TableIndex uint32                         `binapi:"u32,name=ip4_table_index" json:"ip4_table_index,omitempty"`
	IP6TableIndex uint32                         `binapi:"u32,name=ip6_table_index" json:"ip6_table_index,omitempty"`
	L2TableIndex  uint32                         `binapi:"u32,name=l2_table_index" json:"l2_table_index,omitempty"`
	IsAdd         bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
}

Set/unset policer classify interface

  • sw_if_index - interface to set/unset policer classify
  • ip4_table_index - ip4 classify table index (~0 for skip)
  • ip6_table_index - ip6 classify table index (~0 for skip)
  • l2_table_index - l2 classify table index (~0 for skip)
  • is_add - Set if non-zero, else unset Note: User is recommended to use just one valid table_index per call. (ip4_table_index, ip6_table_index, or l2_table_index)

PolicerClassifySetInterface defines message 'policer_classify_set_interface'.

func (*PolicerClassifySetInterface) GetCrcString

func (*PolicerClassifySetInterface) GetCrcString() string

func (*PolicerClassifySetInterface) GetMessageName

func (*PolicerClassifySetInterface) GetMessageName() string

func (*PolicerClassifySetInterface) GetMessageType

func (*PolicerClassifySetInterface) GetMessageType() api.MessageType

func (*PolicerClassifySetInterface) Marshal

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

func (*PolicerClassifySetInterface) Reset

func (m *PolicerClassifySetInterface) Reset()

func (*PolicerClassifySetInterface) Size

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

func (*PolicerClassifySetInterface) Unmarshal

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

type PolicerClassifySetInterfaceReply

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

PolicerClassifySetInterfaceReply defines message 'policer_classify_set_interface_reply'.

func (*PolicerClassifySetInterfaceReply) GetCrcString

func (*PolicerClassifySetInterfaceReply) GetCrcString() string

func (*PolicerClassifySetInterfaceReply) GetMessageName

func (*PolicerClassifySetInterfaceReply) GetMessageName() string

func (*PolicerClassifySetInterfaceReply) GetMessageType

func (*PolicerClassifySetInterfaceReply) Marshal

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

func (*PolicerClassifySetInterfaceReply) Reset

func (*PolicerClassifySetInterfaceReply) Size

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

func (*PolicerClassifySetInterfaceReply) Unmarshal

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

type PolicerClassifyTable

type PolicerClassifyTable uint8

PolicerClassifyTable defines enum 'policer_classify_table'.

const (
	POLICER_CLASSIFY_API_TABLE_IP4 PolicerClassifyTable = 0
	POLICER_CLASSIFY_API_TABLE_IP6 PolicerClassifyTable = 1
	POLICER_CLASSIFY_API_TABLE_L2  PolicerClassifyTable = 2
)

func (PolicerClassifyTable) String

func (x PolicerClassifyTable) String() string

type PuntACLAddDel

type PuntACLAddDel struct {
	IP4TableIndex uint32 `binapi:"u32,name=ip4_table_index,default=4294967295" json:"ip4_table_index,omitempty"`
	IP6TableIndex uint32 `binapi:"u32,name=ip6_table_index,default=4294967295" json:"ip6_table_index,omitempty"`
	IsAdd         bool   `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
}

Add/del punt ACL

  • ip4_table_index - ip4 punt classify table index (~0 for skip)
  • ip6_table_index - ip6 punt classify table index (~0 for skip)
  • is_add - add punt ACL if non-zero, else delete

PuntACLAddDel defines message 'punt_acl_add_del'.

func (*PuntACLAddDel) GetCrcString

func (*PuntACLAddDel) GetCrcString() string

func (*PuntACLAddDel) GetMessageName

func (*PuntACLAddDel) GetMessageName() string

func (*PuntACLAddDel) GetMessageType

func (*PuntACLAddDel) GetMessageType() api.MessageType

func (*PuntACLAddDel) Marshal

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

func (*PuntACLAddDel) Reset

func (m *PuntACLAddDel) Reset()

func (*PuntACLAddDel) Size

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

func (*PuntACLAddDel) Unmarshal

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

type PuntACLAddDelReply

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

PuntACLAddDelReply defines message 'punt_acl_add_del_reply'.

func (*PuntACLAddDelReply) GetCrcString

func (*PuntACLAddDelReply) GetCrcString() string

func (*PuntACLAddDelReply) GetMessageName

func (*PuntACLAddDelReply) GetMessageName() string

func (*PuntACLAddDelReply) GetMessageType

func (*PuntACLAddDelReply) GetMessageType() api.MessageType

func (*PuntACLAddDelReply) Marshal

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

func (*PuntACLAddDelReply) Reset

func (m *PuntACLAddDelReply) Reset()

func (*PuntACLAddDelReply) Size

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

func (*PuntACLAddDelReply) Unmarshal

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

type PuntACLGet

type PuntACLGet struct{}

Get classify table ids configured for punt ACL PuntACLGet defines message 'punt_acl_get'.

func (*PuntACLGet) GetCrcString

func (*PuntACLGet) GetCrcString() string

func (*PuntACLGet) GetMessageName

func (*PuntACLGet) GetMessageName() string

func (*PuntACLGet) GetMessageType

func (*PuntACLGet) GetMessageType() api.MessageType

func (*PuntACLGet) Marshal

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

func (*PuntACLGet) Reset

func (m *PuntACLGet) Reset()

func (*PuntACLGet) Size

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

func (*PuntACLGet) Unmarshal

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

type PuntACLGetReply

type PuntACLGetReply struct {
	Retval        int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	IP4TableIndex uint32 `binapi:"u32,name=ip4_table_index" json:"ip4_table_index,omitempty"`
	IP6TableIndex uint32 `binapi:"u32,name=ip6_table_index" json:"ip6_table_index,omitempty"`
}

Reply for punt_acl_get

  • retval - return value (0 for success)
  • ip4_table_index - ip4 punt classify table index (~0 for none)
  • ip6_table_index - ip6 punt classify table index (~0 for none)

PuntACLGetReply defines message 'punt_acl_get_reply'.

func (*PuntACLGetReply) GetCrcString

func (*PuntACLGetReply) GetCrcString() string

func (*PuntACLGetReply) GetMessageName

func (*PuntACLGetReply) GetMessageName() string

func (*PuntACLGetReply) GetMessageType

func (*PuntACLGetReply) GetMessageType() api.MessageType

func (*PuntACLGetReply) Marshal

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

func (*PuntACLGetReply) Reset

func (m *PuntACLGetReply) Reset()

func (*PuntACLGetReply) Size

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

func (*PuntACLGetReply) Unmarshal

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

type RPCService

type RPCService interface {
	ClassifyAddDelSession(ctx context.Context, in *ClassifyAddDelSession) (*ClassifyAddDelSessionReply, error)
	ClassifyAddDelTable(ctx context.Context, in *ClassifyAddDelTable) (*ClassifyAddDelTableReply, error)
	ClassifyPcapGetTables(ctx context.Context, in *ClassifyPcapGetTables) (*ClassifyPcapGetTablesReply, error)
	ClassifyPcapLookupTable(ctx context.Context, in *ClassifyPcapLookupTable) (*ClassifyPcapLookupTableReply, error)
	ClassifyPcapSetTable(ctx context.Context, in *ClassifyPcapSetTable) (*ClassifyPcapSetTableReply, error)
	ClassifySessionDump(ctx context.Context, in *ClassifySessionDump) (RPCService_ClassifySessionDumpClient, error)
	ClassifySetInterfaceIPTable(ctx context.Context, in *ClassifySetInterfaceIPTable) (*ClassifySetInterfaceIPTableReply, error)
	ClassifySetInterfaceL2Tables(ctx context.Context, in *ClassifySetInterfaceL2Tables) (*ClassifySetInterfaceL2TablesReply, error)
	ClassifyTableByInterface(ctx context.Context, in *ClassifyTableByInterface) (*ClassifyTableByInterfaceReply, error)
	ClassifyTableIds(ctx context.Context, in *ClassifyTableIds) (*ClassifyTableIdsReply, error)
	ClassifyTableInfo(ctx context.Context, in *ClassifyTableInfo) (*ClassifyTableInfoReply, error)
	ClassifyTraceGetTables(ctx context.Context, in *ClassifyTraceGetTables) (*ClassifyTraceGetTablesReply, error)
	ClassifyTraceLookupTable(ctx context.Context, in *ClassifyTraceLookupTable) (*ClassifyTraceLookupTableReply, error)
	ClassifyTraceSetTable(ctx context.Context, in *ClassifyTraceSetTable) (*ClassifyTraceSetTableReply, error)
	FlowClassifyDump(ctx context.Context, in *FlowClassifyDump) (RPCService_FlowClassifyDumpClient, error)
	FlowClassifySetInterface(ctx context.Context, in *FlowClassifySetInterface) (*FlowClassifySetInterfaceReply, error)
	InputACLSetInterface(ctx context.Context, in *InputACLSetInterface) (*InputACLSetInterfaceReply, error)
	OutputACLSetInterface(ctx context.Context, in *OutputACLSetInterface) (*OutputACLSetInterfaceReply, error)
	PolicerClassifyDump(ctx context.Context, in *PolicerClassifyDump) (RPCService_PolicerClassifyDumpClient, error)
	PolicerClassifySetInterface(ctx context.Context, in *PolicerClassifySetInterface) (*PolicerClassifySetInterfaceReply, error)
	PuntACLAddDel(ctx context.Context, in *PuntACLAddDel) (*PuntACLAddDelReply, error)
	PuntACLGet(ctx context.Context, in *PuntACLGet) (*PuntACLGetReply, error)
}

RPCService defines RPC service classify.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_ClassifySessionDumpClient

type RPCService_ClassifySessionDumpClient interface {
	Recv() (*ClassifySessionDetails, error)
	api.Stream
}

type RPCService_FlowClassifyDumpClient

type RPCService_FlowClassifyDumpClient interface {
	Recv() (*FlowClassifyDetails, error)
	api.Stream
}

type RPCService_PolicerClassifyDumpClient

type RPCService_PolicerClassifyDumpClient interface {
	Recv() (*PolicerClassifyDetails, error)
	api.Stream
}

Jump to

Keyboard shortcuts

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