acl

package
v0.9.0-alpha Latest Latest
Warning

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

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

Documentation

Overview

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

Contents: - 42 messages

Index

Constants

View Source
const (
	APIFile    = "acl"
	APIVersion = "2.0.1"
	VersionCrc = 0x5133bba0
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type ACLAddReplace

type ACLAddReplace struct {
	ACLIndex uint32              `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
	Tag      string              `binapi:"string[64],name=tag" json:"tag,omitempty"`
	Count    uint32              `binapi:"u32,name=count" json:"-"`
	R        []acl_types.ACLRule `binapi:"acl_rule[count],name=r" json:"r,omitempty"`
}

Replace an existing ACL in-place or create a new ACL

  • acl_index - an existing ACL entry (0..0xfffffffe) to replace, or 0xffffffff to make new ACL
  • tag - a string value stored along with the ACL, for descriptive purposes
  • count - number of ACL rules @r - Rules for this access-list

ACLAddReplace defines message 'acl_add_replace'.

func (*ACLAddReplace) GetCrcString

func (*ACLAddReplace) GetCrcString() string

func (*ACLAddReplace) GetMessageName

func (*ACLAddReplace) GetMessageName() string

func (*ACLAddReplace) GetMessageType

func (*ACLAddReplace) GetMessageType() api.MessageType

func (*ACLAddReplace) Marshal

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

func (*ACLAddReplace) Reset

func (m *ACLAddReplace) Reset()

func (*ACLAddReplace) Size

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

func (*ACLAddReplace) Unmarshal

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

type ACLAddReplaceReply

type ACLAddReplaceReply struct {
	ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
	Retval   int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
}

Reply to add/replace ACL

  • acl_index - index of the updated or newly created ACL
  • retval 0 - no error

ACLAddReplaceReply defines message 'acl_add_replace_reply'.

func (*ACLAddReplaceReply) GetCrcString

func (*ACLAddReplaceReply) GetCrcString() string

func (*ACLAddReplaceReply) GetMessageName

func (*ACLAddReplaceReply) GetMessageName() string

func (*ACLAddReplaceReply) GetMessageType

func (*ACLAddReplaceReply) GetMessageType() api.MessageType

func (*ACLAddReplaceReply) Marshal

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

func (*ACLAddReplaceReply) Reset

func (m *ACLAddReplaceReply) Reset()

func (*ACLAddReplaceReply) Size

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

func (*ACLAddReplaceReply) Unmarshal

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

type ACLDel

type ACLDel struct {
	ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
}

Delete an ACL

  • acl_index - ACL index to delete

ACLDel defines message 'acl_del'.

func (*ACLDel) GetCrcString

func (*ACLDel) GetCrcString() string

func (*ACLDel) GetMessageName

func (*ACLDel) GetMessageName() string

func (*ACLDel) GetMessageType

func (*ACLDel) GetMessageType() api.MessageType

func (*ACLDel) Marshal

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

func (*ACLDel) Reset

func (m *ACLDel) Reset()

func (*ACLDel) Size

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

func (*ACLDel) Unmarshal

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

type ACLDelReply

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

ACLDelReply defines message 'acl_del_reply'.

func (*ACLDelReply) GetCrcString

func (*ACLDelReply) GetCrcString() string

func (*ACLDelReply) GetMessageName

func (*ACLDelReply) GetMessageName() string

func (*ACLDelReply) GetMessageType

func (*ACLDelReply) GetMessageType() api.MessageType

func (*ACLDelReply) Marshal

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

func (*ACLDelReply) Reset

func (m *ACLDelReply) Reset()

func (*ACLDelReply) Size

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

func (*ACLDelReply) Unmarshal

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

type ACLDetails

type ACLDetails struct {
	ACLIndex uint32              `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
	Tag      string              `binapi:"string[64],name=tag" json:"tag,omitempty"`
	Count    uint32              `binapi:"u32,name=count" json:"-"`
	R        []acl_types.ACLRule `binapi:"acl_rule[count],name=r" json:"r,omitempty"`
}

Details about a single ACL contents

  • acl_index - ACL index whose contents are being sent in this message
  • tag - Descriptive tag value which was supplied at ACL creation
  • count - Number of rules in this ACL
  • r - Array of rules within this ACL

ACLDetails defines message 'acl_details'.

func (*ACLDetails) GetCrcString

func (*ACLDetails) GetCrcString() string

func (*ACLDetails) GetMessageName

func (*ACLDetails) GetMessageName() string

func (*ACLDetails) GetMessageType

func (*ACLDetails) GetMessageType() api.MessageType

func (*ACLDetails) Marshal

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

func (*ACLDetails) Reset

func (m *ACLDetails) Reset()

func (*ACLDetails) Size

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

func (*ACLDetails) Unmarshal

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

type ACLDump

type ACLDump struct {
	ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
}

Dump the specific ACL contents or all of the ACLs' contents

  • acl_index - ACL index to dump, ~0 to dump all ACLs

ACLDump defines message 'acl_dump'.

func (*ACLDump) GetCrcString

func (*ACLDump) GetCrcString() string

func (*ACLDump) GetMessageName

func (*ACLDump) GetMessageName() string

func (*ACLDump) GetMessageType

func (*ACLDump) GetMessageType() api.MessageType

func (*ACLDump) Marshal

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

func (*ACLDump) Reset

func (m *ACLDump) Reset()

func (*ACLDump) Size

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

func (*ACLDump) Unmarshal

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

type ACLInterfaceAddDel

type ACLInterfaceAddDel struct {
	IsAdd     bool                           `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
	IsInput   bool                           `binapi:"bool,name=is_input" json:"is_input,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	ACLIndex  uint32                         `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
}

Use acl_interface_set_acl_list instead

Append/remove an ACL index to/from the list of ACLs checked for an interface
- is_add - add or delete the ACL index from the list
- is_input - check the ACL on input (1) or output (0)
- sw_if_index - the interface to alter the list of ACLs on
- acl_index - index of ACL for the operation

ACLInterfaceAddDel defines message 'acl_interface_add_del'.

func (*ACLInterfaceAddDel) GetCrcString

func (*ACLInterfaceAddDel) GetCrcString() string

func (*ACLInterfaceAddDel) GetMessageName

func (*ACLInterfaceAddDel) GetMessageName() string

func (*ACLInterfaceAddDel) GetMessageType

func (*ACLInterfaceAddDel) GetMessageType() api.MessageType

func (*ACLInterfaceAddDel) Marshal

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

func (*ACLInterfaceAddDel) Reset

func (m *ACLInterfaceAddDel) Reset()

func (*ACLInterfaceAddDel) Size

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

func (*ACLInterfaceAddDel) Unmarshal

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

type ACLInterfaceAddDelReply

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

ACLInterfaceAddDelReply defines message 'acl_interface_add_del_reply'.

func (*ACLInterfaceAddDelReply) GetCrcString

func (*ACLInterfaceAddDelReply) GetCrcString() string

func (*ACLInterfaceAddDelReply) GetMessageName

func (*ACLInterfaceAddDelReply) GetMessageName() string

func (*ACLInterfaceAddDelReply) GetMessageType

func (*ACLInterfaceAddDelReply) GetMessageType() api.MessageType

func (*ACLInterfaceAddDelReply) Marshal

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

func (*ACLInterfaceAddDelReply) Reset

func (m *ACLInterfaceAddDelReply) Reset()

func (*ACLInterfaceAddDelReply) Size

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

func (*ACLInterfaceAddDelReply) Unmarshal

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

type ACLInterfaceEtypeWhitelistDetails

type ACLInterfaceEtypeWhitelistDetails struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Count     uint8                          `binapi:"u8,name=count" json:"-"`
	NInput    uint8                          `binapi:"u8,name=n_input" json:"n_input,omitempty"`
	Whitelist []uint16                       `binapi:"u16[count],name=whitelist" json:"whitelist,omitempty"`
}

Details about ethertype whitelist on a single interface

  • sw_if_index - interface for which the list of MACIP ACLs is applied
  • count - total number of whitelisted ethertypes in the vector
  • n_input - this many first elements correspond to input whitelisted ethertypes, the rest - output
  • whitelist - vector of whitelisted ethertypes

ACLInterfaceEtypeWhitelistDetails defines message 'acl_interface_etype_whitelist_details'.

func (*ACLInterfaceEtypeWhitelistDetails) GetCrcString

func (*ACLInterfaceEtypeWhitelistDetails) GetCrcString() string

func (*ACLInterfaceEtypeWhitelistDetails) GetMessageName

func (*ACLInterfaceEtypeWhitelistDetails) GetMessageName() string

func (*ACLInterfaceEtypeWhitelistDetails) GetMessageType

func (*ACLInterfaceEtypeWhitelistDetails) Marshal

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

func (*ACLInterfaceEtypeWhitelistDetails) Reset

func (*ACLInterfaceEtypeWhitelistDetails) Size

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

func (*ACLInterfaceEtypeWhitelistDetails) Unmarshal

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

type ACLInterfaceEtypeWhitelistDump

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

Dump the list(s) of Ethertype whitelists applied to specific or all interfaces

  • sw_if_index - interface to dump the ethertype whitelist for

ACLInterfaceEtypeWhitelistDump defines message 'acl_interface_etype_whitelist_dump'.

func (*ACLInterfaceEtypeWhitelistDump) GetCrcString

func (*ACLInterfaceEtypeWhitelistDump) GetCrcString() string

func (*ACLInterfaceEtypeWhitelistDump) GetMessageName

func (*ACLInterfaceEtypeWhitelistDump) GetMessageName() string

func (*ACLInterfaceEtypeWhitelistDump) GetMessageType

func (*ACLInterfaceEtypeWhitelistDump) Marshal

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

func (*ACLInterfaceEtypeWhitelistDump) Reset

func (m *ACLInterfaceEtypeWhitelistDump) Reset()

func (*ACLInterfaceEtypeWhitelistDump) Size

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

func (*ACLInterfaceEtypeWhitelistDump) Unmarshal

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

type ACLInterfaceListDetails

type ACLInterfaceListDetails struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Count     uint8                          `binapi:"u8,name=count" json:"-"`
	NInput    uint8                          `binapi:"u8,name=n_input" json:"n_input,omitempty"`
	Acls      []uint32                       `binapi:"u32[count],name=acls" json:"acls,omitempty"`
}

Details about a single ACL contents

  • sw_if_index - interface for which the list of ACLs is applied
  • count - total length of acl indices vector
  • n_input - this many of indices in the beginning are input ACLs, the rest - output
  • acls - the vector of ACL indices

ACLInterfaceListDetails defines message 'acl_interface_list_details'.

func (*ACLInterfaceListDetails) GetCrcString

func (*ACLInterfaceListDetails) GetCrcString() string

func (*ACLInterfaceListDetails) GetMessageName

func (*ACLInterfaceListDetails) GetMessageName() string

func (*ACLInterfaceListDetails) GetMessageType

func (*ACLInterfaceListDetails) GetMessageType() api.MessageType

func (*ACLInterfaceListDetails) Marshal

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

func (*ACLInterfaceListDetails) Reset

func (m *ACLInterfaceListDetails) Reset()

func (*ACLInterfaceListDetails) Size

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

func (*ACLInterfaceListDetails) Unmarshal

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

type ACLInterfaceListDump

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

Dump the list(s) of ACL applied to specific or all interfaces

  • sw_if_index - interface for which to dump the ACL list. Default: 0xffffffff (All interfaces)

ACLInterfaceListDump defines message 'acl_interface_list_dump'.

func (*ACLInterfaceListDump) GetCrcString

func (*ACLInterfaceListDump) GetCrcString() string

func (*ACLInterfaceListDump) GetMessageName

func (*ACLInterfaceListDump) GetMessageName() string

func (*ACLInterfaceListDump) GetMessageType

func (*ACLInterfaceListDump) GetMessageType() api.MessageType

func (*ACLInterfaceListDump) Marshal

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

func (*ACLInterfaceListDump) Reset

func (m *ACLInterfaceListDump) Reset()

func (*ACLInterfaceListDump) Size

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

func (*ACLInterfaceListDump) Unmarshal

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

type ACLInterfaceSetACLList

type ACLInterfaceSetACLList struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Count     uint8                          `binapi:"u8,name=count" json:"-"`
	NInput    uint8                          `binapi:"u8,name=n_input" json:"n_input,omitempty"`
	Acls      []uint32                       `binapi:"u32[count],name=acls" json:"acls,omitempty"`
}

Set the vector of input/output ACLs checked for an interface

  • sw_if_index - the interface to alter the list of ACLs on
  • count - total number of ACL indices in the vector
  • n_input - this many first elements correspond to input ACLs, the rest - output
  • acls - vector of ACL indices

ACLInterfaceSetACLList defines message 'acl_interface_set_acl_list'.

func (*ACLInterfaceSetACLList) GetCrcString

func (*ACLInterfaceSetACLList) GetCrcString() string

func (*ACLInterfaceSetACLList) GetMessageName

func (*ACLInterfaceSetACLList) GetMessageName() string

func (*ACLInterfaceSetACLList) GetMessageType

func (*ACLInterfaceSetACLList) GetMessageType() api.MessageType

func (*ACLInterfaceSetACLList) Marshal

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

func (*ACLInterfaceSetACLList) Reset

func (m *ACLInterfaceSetACLList) Reset()

func (*ACLInterfaceSetACLList) Size

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

func (*ACLInterfaceSetACLList) Unmarshal

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

type ACLInterfaceSetACLListReply

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

ACLInterfaceSetACLListReply defines message 'acl_interface_set_acl_list_reply'.

func (*ACLInterfaceSetACLListReply) GetCrcString

func (*ACLInterfaceSetACLListReply) GetCrcString() string

func (*ACLInterfaceSetACLListReply) GetMessageName

func (*ACLInterfaceSetACLListReply) GetMessageName() string

func (*ACLInterfaceSetACLListReply) GetMessageType

func (*ACLInterfaceSetACLListReply) GetMessageType() api.MessageType

func (*ACLInterfaceSetACLListReply) Marshal

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

func (*ACLInterfaceSetACLListReply) Reset

func (m *ACLInterfaceSetACLListReply) Reset()

func (*ACLInterfaceSetACLListReply) Size

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

func (*ACLInterfaceSetACLListReply) Unmarshal

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

type ACLInterfaceSetEtypeWhitelist

type ACLInterfaceSetEtypeWhitelist struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Count     uint8                          `binapi:"u8,name=count" json:"-"`
	NInput    uint8                          `binapi:"u8,name=n_input" json:"n_input,omitempty"`
	Whitelist []uint16                       `binapi:"u16[count],name=whitelist" json:"whitelist,omitempty"`
}

Set the ethertype whitelists on an interface. Takes effect when applying ACLs on the interface, so must be given prior.

  • sw_if_index - the interface to alter the list of ACLs on
  • count - total number of whitelisted ethertypes in the vector
  • n_input - this many first elements correspond to input whitelisted ethertypes, the rest - output
  • whitelist - vector of whitelisted ethertypes

ACLInterfaceSetEtypeWhitelist defines message 'acl_interface_set_etype_whitelist'.

func (*ACLInterfaceSetEtypeWhitelist) GetCrcString

func (*ACLInterfaceSetEtypeWhitelist) GetCrcString() string

func (*ACLInterfaceSetEtypeWhitelist) GetMessageName

func (*ACLInterfaceSetEtypeWhitelist) GetMessageName() string

func (*ACLInterfaceSetEtypeWhitelist) GetMessageType

func (*ACLInterfaceSetEtypeWhitelist) GetMessageType() api.MessageType

func (*ACLInterfaceSetEtypeWhitelist) Marshal

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

func (*ACLInterfaceSetEtypeWhitelist) Reset

func (m *ACLInterfaceSetEtypeWhitelist) Reset()

func (*ACLInterfaceSetEtypeWhitelist) Size

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

func (*ACLInterfaceSetEtypeWhitelist) Unmarshal

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

type ACLInterfaceSetEtypeWhitelistReply

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

ACLInterfaceSetEtypeWhitelistReply defines message 'acl_interface_set_etype_whitelist_reply'.

func (*ACLInterfaceSetEtypeWhitelistReply) GetCrcString

func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageName

func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageName() string

func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageType

func (*ACLInterfaceSetEtypeWhitelistReply) Marshal

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

func (*ACLInterfaceSetEtypeWhitelistReply) Reset

func (*ACLInterfaceSetEtypeWhitelistReply) Size

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

func (*ACLInterfaceSetEtypeWhitelistReply) Unmarshal

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

type ACLPluginControlPing

type ACLPluginControlPing struct{}

Control ping from client to api server request ACLPluginControlPing defines message 'acl_plugin_control_ping'.

func (*ACLPluginControlPing) GetCrcString

func (*ACLPluginControlPing) GetCrcString() string

func (*ACLPluginControlPing) GetMessageName

func (*ACLPluginControlPing) GetMessageName() string

func (*ACLPluginControlPing) GetMessageType

func (*ACLPluginControlPing) GetMessageType() api.MessageType

func (*ACLPluginControlPing) Marshal

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

func (*ACLPluginControlPing) Reset

func (m *ACLPluginControlPing) Reset()

func (*ACLPluginControlPing) Size

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

func (*ACLPluginControlPing) Unmarshal

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

type ACLPluginControlPingReply

type ACLPluginControlPingReply struct {
	Retval      int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	ClientIndex uint32 `binapi:"u32,name=client_index" json:"client_index,omitempty"`
	VpePID      uint32 `binapi:"u32,name=vpe_pid" json:"vpe_pid,omitempty"`
}

Control ping from the client to the server response

  • retval - return code for the request
  • vpe_pid - the pid of the vpe, returned by the server

ACLPluginControlPingReply defines message 'acl_plugin_control_ping_reply'.

func (*ACLPluginControlPingReply) GetCrcString

func (*ACLPluginControlPingReply) GetCrcString() string

func (*ACLPluginControlPingReply) GetMessageName

func (*ACLPluginControlPingReply) GetMessageName() string

func (*ACLPluginControlPingReply) GetMessageType

func (*ACLPluginControlPingReply) GetMessageType() api.MessageType

func (*ACLPluginControlPingReply) Marshal

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

func (*ACLPluginControlPingReply) Reset

func (m *ACLPluginControlPingReply) Reset()

func (*ACLPluginControlPingReply) Size

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

func (*ACLPluginControlPingReply) Unmarshal

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

type ACLPluginGetConnTableMaxEntries

type ACLPluginGetConnTableMaxEntries struct{}

Get Connection table max entries ACLPluginGetConnTableMaxEntries defines message 'acl_plugin_get_conn_table_max_entries'.

func (*ACLPluginGetConnTableMaxEntries) GetCrcString

func (*ACLPluginGetConnTableMaxEntries) GetCrcString() string

func (*ACLPluginGetConnTableMaxEntries) GetMessageName

func (*ACLPluginGetConnTableMaxEntries) GetMessageName() string

func (*ACLPluginGetConnTableMaxEntries) GetMessageType

func (*ACLPluginGetConnTableMaxEntries) Marshal

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

func (*ACLPluginGetConnTableMaxEntries) Reset

func (*ACLPluginGetConnTableMaxEntries) Size

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

func (*ACLPluginGetConnTableMaxEntries) Unmarshal

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

type ACLPluginGetConnTableMaxEntriesReply

type ACLPluginGetConnTableMaxEntriesReply struct {
	ConnTableMaxEntries uint64 `binapi:"u64,name=conn_table_max_entries" json:"conn_table_max_entries,omitempty"`
}

Reply to get connection table max entries

  • conn_table_max_entries - the value of maximum entries of connection table

ACLPluginGetConnTableMaxEntriesReply defines message 'acl_plugin_get_conn_table_max_entries_reply'.

func (*ACLPluginGetConnTableMaxEntriesReply) GetCrcString

func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageName

func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageName() string

func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageType

func (*ACLPluginGetConnTableMaxEntriesReply) Marshal

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

func (*ACLPluginGetConnTableMaxEntriesReply) Reset

func (*ACLPluginGetConnTableMaxEntriesReply) Size

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

func (*ACLPluginGetConnTableMaxEntriesReply) Unmarshal

type ACLPluginGetVersion

type ACLPluginGetVersion struct{}

Get the plugin version ACLPluginGetVersion defines message 'acl_plugin_get_version'.

func (*ACLPluginGetVersion) GetCrcString

func (*ACLPluginGetVersion) GetCrcString() string

func (*ACLPluginGetVersion) GetMessageName

func (*ACLPluginGetVersion) GetMessageName() string

func (*ACLPluginGetVersion) GetMessageType

func (*ACLPluginGetVersion) GetMessageType() api.MessageType

func (*ACLPluginGetVersion) Marshal

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

func (*ACLPluginGetVersion) Reset

func (m *ACLPluginGetVersion) Reset()

func (*ACLPluginGetVersion) Size

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

func (*ACLPluginGetVersion) Unmarshal

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

type ACLPluginGetVersionReply

type ACLPluginGetVersionReply struct {
	Major uint32 `binapi:"u32,name=major" json:"major,omitempty"`
	Minor uint32 `binapi:"u32,name=minor" json:"minor,omitempty"`
}

Reply to get the plugin version

  • major - Incremented every time a known breaking behavior change is introduced
  • minor - Incremented with small changes, may be used to avoid buggy versions

ACLPluginGetVersionReply defines message 'acl_plugin_get_version_reply'.

func (*ACLPluginGetVersionReply) GetCrcString

func (*ACLPluginGetVersionReply) GetCrcString() string

func (*ACLPluginGetVersionReply) GetMessageName

func (*ACLPluginGetVersionReply) GetMessageName() string

func (*ACLPluginGetVersionReply) GetMessageType

func (*ACLPluginGetVersionReply) GetMessageType() api.MessageType

func (*ACLPluginGetVersionReply) Marshal

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

func (*ACLPluginGetVersionReply) Reset

func (m *ACLPluginGetVersionReply) Reset()

func (*ACLPluginGetVersionReply) Size

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

func (*ACLPluginGetVersionReply) Unmarshal

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

type ACLPluginUseHashLookupGet

type ACLPluginUseHashLookupGet struct{}

Get if the hash-based ACL lookups are enabled (default) or not (use linear search) ACLPluginUseHashLookupGet defines message 'acl_plugin_use_hash_lookup_get'. InProgress: the message form may change in the future versions

func (*ACLPluginUseHashLookupGet) GetCrcString

func (*ACLPluginUseHashLookupGet) GetCrcString() string

func (*ACLPluginUseHashLookupGet) GetMessageName

func (*ACLPluginUseHashLookupGet) GetMessageName() string

func (*ACLPluginUseHashLookupGet) GetMessageType

func (*ACLPluginUseHashLookupGet) GetMessageType() api.MessageType

func (*ACLPluginUseHashLookupGet) Marshal

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

func (*ACLPluginUseHashLookupGet) Reset

func (m *ACLPluginUseHashLookupGet) Reset()

func (*ACLPluginUseHashLookupGet) Size

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

func (*ACLPluginUseHashLookupGet) Unmarshal

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

type ACLPluginUseHashLookupGetReply

type ACLPluginUseHashLookupGetReply struct {
	Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
}

Reply with the previous state of the hash lookup

  • prev_enable - previous state of the hash lookup use

ACLPluginUseHashLookupGetReply defines message 'acl_plugin_use_hash_lookup_get_reply'. InProgress: the message form may change in the future versions

func (*ACLPluginUseHashLookupGetReply) GetCrcString

func (*ACLPluginUseHashLookupGetReply) GetCrcString() string

func (*ACLPluginUseHashLookupGetReply) GetMessageName

func (*ACLPluginUseHashLookupGetReply) GetMessageName() string

func (*ACLPluginUseHashLookupGetReply) GetMessageType

func (*ACLPluginUseHashLookupGetReply) Marshal

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

func (*ACLPluginUseHashLookupGetReply) Reset

func (m *ACLPluginUseHashLookupGetReply) Reset()

func (*ACLPluginUseHashLookupGetReply) Size

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

func (*ACLPluginUseHashLookupGetReply) Unmarshal

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

type ACLPluginUseHashLookupSet

type ACLPluginUseHashLookupSet struct {
	Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
}

Enable hash-based ACL lookups (default) or disable them (use linear search)

  • enable - whether to enable or disable the usage of hash lookup algorithm

ACLPluginUseHashLookupSet defines message 'acl_plugin_use_hash_lookup_set'. InProgress: the message form may change in the future versions

func (*ACLPluginUseHashLookupSet) GetCrcString

func (*ACLPluginUseHashLookupSet) GetCrcString() string

func (*ACLPluginUseHashLookupSet) GetMessageName

func (*ACLPluginUseHashLookupSet) GetMessageName() string

func (*ACLPluginUseHashLookupSet) GetMessageType

func (*ACLPluginUseHashLookupSet) GetMessageType() api.MessageType

func (*ACLPluginUseHashLookupSet) Marshal

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

func (*ACLPluginUseHashLookupSet) Reset

func (m *ACLPluginUseHashLookupSet) Reset()

func (*ACLPluginUseHashLookupSet) Size

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

func (*ACLPluginUseHashLookupSet) Unmarshal

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

type ACLPluginUseHashLookupSetReply

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

ACLPluginUseHashLookupSetReply defines message 'acl_plugin_use_hash_lookup_set_reply'. InProgress: the message form may change in the future versions

func (*ACLPluginUseHashLookupSetReply) GetCrcString

func (*ACLPluginUseHashLookupSetReply) GetCrcString() string

func (*ACLPluginUseHashLookupSetReply) GetMessageName

func (*ACLPluginUseHashLookupSetReply) GetMessageName() string

func (*ACLPluginUseHashLookupSetReply) GetMessageType

func (*ACLPluginUseHashLookupSetReply) Marshal

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

func (*ACLPluginUseHashLookupSetReply) Reset

func (m *ACLPluginUseHashLookupSetReply) Reset()

func (*ACLPluginUseHashLookupSetReply) Size

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

func (*ACLPluginUseHashLookupSetReply) Unmarshal

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

type ACLStatsIntfCountersEnable

type ACLStatsIntfCountersEnable struct {
	Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
}

Enable or disable incrementing ACL counters in stats segment by interface processing

  • enable - whether to enable or disable incrementing the counters

ACLStatsIntfCountersEnable defines message 'acl_stats_intf_counters_enable'.

func (*ACLStatsIntfCountersEnable) GetCrcString

func (*ACLStatsIntfCountersEnable) GetCrcString() string

func (*ACLStatsIntfCountersEnable) GetMessageName

func (*ACLStatsIntfCountersEnable) GetMessageName() string

func (*ACLStatsIntfCountersEnable) GetMessageType

func (*ACLStatsIntfCountersEnable) GetMessageType() api.MessageType

func (*ACLStatsIntfCountersEnable) Marshal

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

func (*ACLStatsIntfCountersEnable) Reset

func (m *ACLStatsIntfCountersEnable) Reset()

func (*ACLStatsIntfCountersEnable) Size

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

func (*ACLStatsIntfCountersEnable) Unmarshal

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

type ACLStatsIntfCountersEnableReply

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

ACLStatsIntfCountersEnableReply defines message 'acl_stats_intf_counters_enable_reply'.

func (*ACLStatsIntfCountersEnableReply) GetCrcString

func (*ACLStatsIntfCountersEnableReply) GetCrcString() string

func (*ACLStatsIntfCountersEnableReply) GetMessageName

func (*ACLStatsIntfCountersEnableReply) GetMessageName() string

func (*ACLStatsIntfCountersEnableReply) GetMessageType

func (*ACLStatsIntfCountersEnableReply) Marshal

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

func (*ACLStatsIntfCountersEnableReply) Reset

func (*ACLStatsIntfCountersEnableReply) Size

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

func (*ACLStatsIntfCountersEnableReply) Unmarshal

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

type MacipACLAdd

type MacipACLAdd struct {
	Tag   string                   `binapi:"string[64],name=tag" json:"tag,omitempty"`
	Count uint32                   `binapi:"u32,name=count" json:"-"`
	R     []acl_types.MacipACLRule `binapi:"macip_acl_rule[count],name=r" json:"r,omitempty"`
}

Add a MACIP ACL

  • tag - descriptive value for this MACIP ACL
  • count - number of rules in this MACIP ACL
  • r - vector of MACIP ACL rules

MacipACLAdd defines message 'macip_acl_add'.

func (*MacipACLAdd) GetCrcString

func (*MacipACLAdd) GetCrcString() string

func (*MacipACLAdd) GetMessageName

func (*MacipACLAdd) GetMessageName() string

func (*MacipACLAdd) GetMessageType

func (*MacipACLAdd) GetMessageType() api.MessageType

func (*MacipACLAdd) Marshal

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

func (*MacipACLAdd) Reset

func (m *MacipACLAdd) Reset()

func (*MacipACLAdd) Size

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

func (*MacipACLAdd) Unmarshal

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

type MacipACLAddReplace

type MacipACLAddReplace struct {
	ACLIndex uint32                   `binapi:"u32,name=acl_index,default=4294967295" json:"acl_index,omitempty"`
	Tag      string                   `binapi:"string[64],name=tag" json:"tag,omitempty"`
	Count    uint32                   `binapi:"u32,name=count" json:"-"`
	R        []acl_types.MacipACLRule `binapi:"macip_acl_rule[count],name=r" json:"r,omitempty"`
}

Add/Replace a MACIP ACL

  • acl_index - an existing MACIP ACL entry (0..0xfffffffe) to replace, or 0xffffffff to make new MACIP ACL Default: 0xffffffff
  • tag - descriptive value for this MACIP ACL
  • count - number of rules in this MACIP ACL
  • r - vector of MACIP ACL rules

MacipACLAddReplace defines message 'macip_acl_add_replace'.

func (*MacipACLAddReplace) GetCrcString

func (*MacipACLAddReplace) GetCrcString() string

func (*MacipACLAddReplace) GetMessageName

func (*MacipACLAddReplace) GetMessageName() string

func (*MacipACLAddReplace) GetMessageType

func (*MacipACLAddReplace) GetMessageType() api.MessageType

func (*MacipACLAddReplace) Marshal

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

func (*MacipACLAddReplace) Reset

func (m *MacipACLAddReplace) Reset()

func (*MacipACLAddReplace) Size

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

func (*MacipACLAddReplace) Unmarshal

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

type MacipACLAddReplaceReply

type MacipACLAddReplaceReply struct {
	ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
	Retval   int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
}

Reply to add/replace MACIP ACL

  • acl_index - index of the newly created MACIP ACL
  • retval 0 - no error

MacipACLAddReplaceReply defines message 'macip_acl_add_replace_reply'.

func (*MacipACLAddReplaceReply) GetCrcString

func (*MacipACLAddReplaceReply) GetCrcString() string

func (*MacipACLAddReplaceReply) GetMessageName

func (*MacipACLAddReplaceReply) GetMessageName() string

func (*MacipACLAddReplaceReply) GetMessageType

func (*MacipACLAddReplaceReply) GetMessageType() api.MessageType

func (*MacipACLAddReplaceReply) Marshal

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

func (*MacipACLAddReplaceReply) Reset

func (m *MacipACLAddReplaceReply) Reset()

func (*MacipACLAddReplaceReply) Size

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

func (*MacipACLAddReplaceReply) Unmarshal

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

type MacipACLAddReply

type MacipACLAddReply struct {
	ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
	Retval   int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
}

Reply to add MACIP ACL

  • acl_index - index of the newly created MACIP ACL
  • retval 0 - no error

MacipACLAddReply defines message 'macip_acl_add_reply'.

func (*MacipACLAddReply) GetCrcString

func (*MacipACLAddReply) GetCrcString() string

func (*MacipACLAddReply) GetMessageName

func (*MacipACLAddReply) GetMessageName() string

func (*MacipACLAddReply) GetMessageType

func (*MacipACLAddReply) GetMessageType() api.MessageType

func (*MacipACLAddReply) Marshal

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

func (*MacipACLAddReply) Reset

func (m *MacipACLAddReply) Reset()

func (*MacipACLAddReply) Size

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

func (*MacipACLAddReply) Unmarshal

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

type MacipACLDel

type MacipACLDel struct {
	ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
}

Delete a MACIP ACL

  • acl_index - MACIP ACL index to delete

MacipACLDel defines message 'macip_acl_del'.

func (*MacipACLDel) GetCrcString

func (*MacipACLDel) GetCrcString() string

func (*MacipACLDel) GetMessageName

func (*MacipACLDel) GetMessageName() string

func (*MacipACLDel) GetMessageType

func (*MacipACLDel) GetMessageType() api.MessageType

func (*MacipACLDel) Marshal

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

func (*MacipACLDel) Reset

func (m *MacipACLDel) Reset()

func (*MacipACLDel) Size

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

func (*MacipACLDel) Unmarshal

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

type MacipACLDelReply

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

MacipACLDelReply defines message 'macip_acl_del_reply'.

func (*MacipACLDelReply) GetCrcString

func (*MacipACLDelReply) GetCrcString() string

func (*MacipACLDelReply) GetMessageName

func (*MacipACLDelReply) GetMessageName() string

func (*MacipACLDelReply) GetMessageType

func (*MacipACLDelReply) GetMessageType() api.MessageType

func (*MacipACLDelReply) Marshal

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

func (*MacipACLDelReply) Reset

func (m *MacipACLDelReply) Reset()

func (*MacipACLDelReply) Size

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

func (*MacipACLDelReply) Unmarshal

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

type MacipACLDetails

type MacipACLDetails struct {
	ACLIndex uint32                   `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
	Tag      string                   `binapi:"string[64],name=tag" json:"tag,omitempty"`
	Count    uint32                   `binapi:"u32,name=count" json:"-"`
	R        []acl_types.MacipACLRule `binapi:"macip_acl_rule[count],name=r" json:"r,omitempty"`
}

Details about one MACIP ACL

  • acl_index - index of this MACIP ACL
  • tag - descriptive tag which was supplied during the creation
  • count - length of the vector of MACIP ACL rules
  • r - rules comprising this MACIP ACL

MacipACLDetails defines message 'macip_acl_details'.

func (*MacipACLDetails) GetCrcString

func (*MacipACLDetails) GetCrcString() string

func (*MacipACLDetails) GetMessageName

func (*MacipACLDetails) GetMessageName() string

func (*MacipACLDetails) GetMessageType

func (*MacipACLDetails) GetMessageType() api.MessageType

func (*MacipACLDetails) Marshal

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

func (*MacipACLDetails) Reset

func (m *MacipACLDetails) Reset()

func (*MacipACLDetails) Size

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

func (*MacipACLDetails) Unmarshal

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

type MacipACLDump

type MacipACLDump struct {
	ACLIndex uint32 `binapi:"u32,name=acl_index,default=4294967295" json:"acl_index,omitempty"`
}

Dump one or all defined MACIP ACLs

  • acl_index - MACIP ACL index or ~0 to dump all MACIP ACLs Default: 0xffffffff

MacipACLDump defines message 'macip_acl_dump'.

func (*MacipACLDump) GetCrcString

func (*MacipACLDump) GetCrcString() string

func (*MacipACLDump) GetMessageName

func (*MacipACLDump) GetMessageName() string

func (*MacipACLDump) GetMessageType

func (*MacipACLDump) GetMessageType() api.MessageType

func (*MacipACLDump) Marshal

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

func (*MacipACLDump) Reset

func (m *MacipACLDump) Reset()

func (*MacipACLDump) Size

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

func (*MacipACLDump) Unmarshal

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

type MacipACLInterfaceAddDel

type MacipACLInterfaceAddDel struct {
	IsAdd     bool                           `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	ACLIndex  uint32                         `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
}

Add or delete a MACIP ACL to/from interface

  • is_add - add (1) or delete (0) MACIP ACL from being used on an interface
  • sw_if_index - interface to apply the action to
  • acl_index - MACIP ACL index

MacipACLInterfaceAddDel defines message 'macip_acl_interface_add_del'.

func (*MacipACLInterfaceAddDel) GetCrcString

func (*MacipACLInterfaceAddDel) GetCrcString() string

func (*MacipACLInterfaceAddDel) GetMessageName

func (*MacipACLInterfaceAddDel) GetMessageName() string

func (*MacipACLInterfaceAddDel) GetMessageType

func (*MacipACLInterfaceAddDel) GetMessageType() api.MessageType

func (*MacipACLInterfaceAddDel) Marshal

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

func (*MacipACLInterfaceAddDel) Reset

func (m *MacipACLInterfaceAddDel) Reset()

func (*MacipACLInterfaceAddDel) Size

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

func (*MacipACLInterfaceAddDel) Unmarshal

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

type MacipACLInterfaceAddDelReply

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

MacipACLInterfaceAddDelReply defines message 'macip_acl_interface_add_del_reply'.

func (*MacipACLInterfaceAddDelReply) GetCrcString

func (*MacipACLInterfaceAddDelReply) GetCrcString() string

func (*MacipACLInterfaceAddDelReply) GetMessageName

func (*MacipACLInterfaceAddDelReply) GetMessageName() string

func (*MacipACLInterfaceAddDelReply) GetMessageType

func (*MacipACLInterfaceAddDelReply) GetMessageType() api.MessageType

func (*MacipACLInterfaceAddDelReply) Marshal

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

func (*MacipACLInterfaceAddDelReply) Reset

func (m *MacipACLInterfaceAddDelReply) Reset()

func (*MacipACLInterfaceAddDelReply) Size

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

func (*MacipACLInterfaceAddDelReply) Unmarshal

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

type MacipACLInterfaceGet

type MacipACLInterfaceGet struct{}

Get the vector of MACIP ACL IDs applied to the interfaces MacipACLInterfaceGet defines message 'macip_acl_interface_get'.

func (*MacipACLInterfaceGet) GetCrcString

func (*MacipACLInterfaceGet) GetCrcString() string

func (*MacipACLInterfaceGet) GetMessageName

func (*MacipACLInterfaceGet) GetMessageName() string

func (*MacipACLInterfaceGet) GetMessageType

func (*MacipACLInterfaceGet) GetMessageType() api.MessageType

func (*MacipACLInterfaceGet) Marshal

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

func (*MacipACLInterfaceGet) Reset

func (m *MacipACLInterfaceGet) Reset()

func (*MacipACLInterfaceGet) Size

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

func (*MacipACLInterfaceGet) Unmarshal

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

type MacipACLInterfaceGetReply

type MacipACLInterfaceGetReply struct {
	Count uint32   `binapi:"u32,name=count" json:"-"`
	Acls  []uint32 `binapi:"u32[count],name=acls" json:"acls,omitempty"`
}

Reply with the vector of MACIP ACLs by sw_if_index

  • count - total number of elements in the vector
  • acls - the vector of active MACIP ACL indices per sw_if_index

MacipACLInterfaceGetReply defines message 'macip_acl_interface_get_reply'.

func (*MacipACLInterfaceGetReply) GetCrcString

func (*MacipACLInterfaceGetReply) GetCrcString() string

func (*MacipACLInterfaceGetReply) GetMessageName

func (*MacipACLInterfaceGetReply) GetMessageName() string

func (*MacipACLInterfaceGetReply) GetMessageType

func (*MacipACLInterfaceGetReply) GetMessageType() api.MessageType

func (*MacipACLInterfaceGetReply) Marshal

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

func (*MacipACLInterfaceGetReply) Reset

func (m *MacipACLInterfaceGetReply) Reset()

func (*MacipACLInterfaceGetReply) Size

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

func (*MacipACLInterfaceGetReply) Unmarshal

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

type MacipACLInterfaceListDetails

type MacipACLInterfaceListDetails struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Count     uint8                          `binapi:"u8,name=count" json:"-"`
	Acls      []uint32                       `binapi:"u32[count],name=acls" json:"acls,omitempty"`
}

Details about a single MACIP ACL contents

  • sw_if_index - interface for which the list of MACIP ACLs is applied
  • count - total length of acl indices vector
  • acls - the vector of MACIP ACL indices

MacipACLInterfaceListDetails defines message 'macip_acl_interface_list_details'.

func (*MacipACLInterfaceListDetails) GetCrcString

func (*MacipACLInterfaceListDetails) GetCrcString() string

func (*MacipACLInterfaceListDetails) GetMessageName

func (*MacipACLInterfaceListDetails) GetMessageName() string

func (*MacipACLInterfaceListDetails) GetMessageType

func (*MacipACLInterfaceListDetails) GetMessageType() api.MessageType

func (*MacipACLInterfaceListDetails) Marshal

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

func (*MacipACLInterfaceListDetails) Reset

func (m *MacipACLInterfaceListDetails) Reset()

func (*MacipACLInterfaceListDetails) Size

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

func (*MacipACLInterfaceListDetails) Unmarshal

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

type MacipACLInterfaceListDump

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

Dump the list(s) of MACIP ACLs applied to specific or all interfaces

  • sw_if_index - interface to dump the MACIP ACL list for

MacipACLInterfaceListDump defines message 'macip_acl_interface_list_dump'.

func (*MacipACLInterfaceListDump) GetCrcString

func (*MacipACLInterfaceListDump) GetCrcString() string

func (*MacipACLInterfaceListDump) GetMessageName

func (*MacipACLInterfaceListDump) GetMessageName() string

func (*MacipACLInterfaceListDump) GetMessageType

func (*MacipACLInterfaceListDump) GetMessageType() api.MessageType

func (*MacipACLInterfaceListDump) Marshal

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

func (*MacipACLInterfaceListDump) Reset

func (m *MacipACLInterfaceListDump) Reset()

func (*MacipACLInterfaceListDump) Size

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

func (*MacipACLInterfaceListDump) Unmarshal

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

type RPCService

type RPCService interface {
	ACLAddReplace(ctx context.Context, in *ACLAddReplace) (*ACLAddReplaceReply, error)
	ACLDel(ctx context.Context, in *ACLDel) (*ACLDelReply, error)
	ACLDump(ctx context.Context, in *ACLDump) (RPCService_ACLDumpClient, error)
	ACLInterfaceAddDel(ctx context.Context, in *ACLInterfaceAddDel) (*ACLInterfaceAddDelReply, error)
	ACLInterfaceEtypeWhitelistDump(ctx context.Context, in *ACLInterfaceEtypeWhitelistDump) (RPCService_ACLInterfaceEtypeWhitelistDumpClient, error)
	ACLInterfaceListDump(ctx context.Context, in *ACLInterfaceListDump) (RPCService_ACLInterfaceListDumpClient, error)
	ACLInterfaceSetACLList(ctx context.Context, in *ACLInterfaceSetACLList) (*ACLInterfaceSetACLListReply, error)
	ACLInterfaceSetEtypeWhitelist(ctx context.Context, in *ACLInterfaceSetEtypeWhitelist) (*ACLInterfaceSetEtypeWhitelistReply, error)
	ACLPluginControlPing(ctx context.Context, in *ACLPluginControlPing) (*ACLPluginControlPingReply, error)
	ACLPluginGetConnTableMaxEntries(ctx context.Context, in *ACLPluginGetConnTableMaxEntries) (*ACLPluginGetConnTableMaxEntriesReply, error)
	ACLPluginGetVersion(ctx context.Context, in *ACLPluginGetVersion) (*ACLPluginGetVersionReply, error)
	ACLPluginUseHashLookupGet(ctx context.Context, in *ACLPluginUseHashLookupGet) (*ACLPluginUseHashLookupGetReply, error)
	ACLPluginUseHashLookupSet(ctx context.Context, in *ACLPluginUseHashLookupSet) (*ACLPluginUseHashLookupSetReply, error)
	ACLStatsIntfCountersEnable(ctx context.Context, in *ACLStatsIntfCountersEnable) (*ACLStatsIntfCountersEnableReply, error)
	MacipACLAdd(ctx context.Context, in *MacipACLAdd) (*MacipACLAddReply, error)
	MacipACLAddReplace(ctx context.Context, in *MacipACLAddReplace) (*MacipACLAddReplaceReply, error)
	MacipACLDel(ctx context.Context, in *MacipACLDel) (*MacipACLDelReply, error)
	MacipACLDump(ctx context.Context, in *MacipACLDump) (RPCService_MacipACLDumpClient, error)
	MacipACLInterfaceAddDel(ctx context.Context, in *MacipACLInterfaceAddDel) (*MacipACLInterfaceAddDelReply, error)
	MacipACLInterfaceGet(ctx context.Context, in *MacipACLInterfaceGet) (*MacipACLInterfaceGetReply, error)
	MacipACLInterfaceListDump(ctx context.Context, in *MacipACLInterfaceListDump) (RPCService_MacipACLInterfaceListDumpClient, error)
}

RPCService defines RPC service acl.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_ACLDumpClient

type RPCService_ACLDumpClient interface {
	Recv() (*ACLDetails, error)
	api.Stream
}

type RPCService_ACLInterfaceEtypeWhitelistDumpClient

type RPCService_ACLInterfaceEtypeWhitelistDumpClient interface {
	Recv() (*ACLInterfaceEtypeWhitelistDetails, error)
	api.Stream
}

type RPCService_ACLInterfaceListDumpClient

type RPCService_ACLInterfaceListDumpClient interface {
	Recv() (*ACLInterfaceListDetails, error)
	api.Stream
}

type RPCService_MacipACLDumpClient

type RPCService_MacipACLDumpClient interface {
	Recv() (*MacipACLDetails, error)
	api.Stream
}

type RPCService_MacipACLInterfaceListDumpClient

type RPCService_MacipACLInterfaceListDumpClient interface {
	Recv() (*MacipACLInterfaceListDetails, error)
	api.Stream
}

Jump to

Keyboard shortcuts

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