adl

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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

Contents: - 4 messages

Index

Constants

View Source
const (
	APIFile    = "adl"
	APIVersion = "1.0.1"
	VersionCrc = 0xb752b7a2
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type AdlAllowlistEnableDisable

type AdlAllowlistEnableDisable struct {
	SwIfIndex  interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	FibID      uint32                         `binapi:"u32,name=fib_id" json:"fib_id,omitempty"`
	IP4        bool                           `binapi:"bool,name=ip4" json:"ip4,omitempty"`
	IP6        bool                           `binapi:"bool,name=ip6" json:"ip6,omitempty"`
	DefaultAdl bool                           `binapi:"bool,name=default_adl" json:"default_adl,omitempty"`
}

adl: enable/disable allow list filtration features on an interface

Note: the supplied fib_id must match in order to remove the feature!
- sw_if_index - interface handle, physical interfaces only
- fib_id - fib identifier for the allow/deny fib
- ip4 - 1 => enable ip4 filtration, 0=> disable ip4 filtration
- ip6 - 1 => enable ip6 filtration, 0=> disable ip6 filtration
- default_adl -  1 => enable non-ip4, non-ip6 filtration
                      0 => disable it

AdlAllowlistEnableDisable defines message 'adl_allowlist_enable_disable'.

func (*AdlAllowlistEnableDisable) GetCrcString

func (*AdlAllowlistEnableDisable) GetCrcString() string

func (*AdlAllowlistEnableDisable) GetMessageName

func (*AdlAllowlistEnableDisable) GetMessageName() string

func (*AdlAllowlistEnableDisable) GetMessageType

func (*AdlAllowlistEnableDisable) GetMessageType() api.MessageType

func (*AdlAllowlistEnableDisable) Marshal

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

func (*AdlAllowlistEnableDisable) Reset

func (m *AdlAllowlistEnableDisable) Reset()

func (*AdlAllowlistEnableDisable) Size

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

func (*AdlAllowlistEnableDisable) Unmarshal

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

type AdlAllowlistEnableDisableReply

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

AdlAllowlistEnableDisableReply defines message 'adl_allowlist_enable_disable_reply'.

func (*AdlAllowlistEnableDisableReply) GetCrcString

func (*AdlAllowlistEnableDisableReply) GetCrcString() string

func (*AdlAllowlistEnableDisableReply) GetMessageName

func (*AdlAllowlistEnableDisableReply) GetMessageName() string

func (*AdlAllowlistEnableDisableReply) GetMessageType

func (*AdlAllowlistEnableDisableReply) Marshal

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

func (*AdlAllowlistEnableDisableReply) Reset

func (m *AdlAllowlistEnableDisableReply) Reset()

func (*AdlAllowlistEnableDisableReply) Size

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

func (*AdlAllowlistEnableDisableReply) Unmarshal

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

type AdlInterfaceEnableDisable

type AdlInterfaceEnableDisable struct {
	SwIfIndex     interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	EnableDisable bool                           `binapi:"bool,name=enable_disable" json:"enable_disable,omitempty"`
}

adl: enable/disable filtration features on an interface

  • sw_if_inded - desired interface
  • enable_disable - 1 => enable, 0 => disable

AdlInterfaceEnableDisable defines message 'adl_interface_enable_disable'.

func (*AdlInterfaceEnableDisable) GetCrcString

func (*AdlInterfaceEnableDisable) GetCrcString() string

func (*AdlInterfaceEnableDisable) GetMessageName

func (*AdlInterfaceEnableDisable) GetMessageName() string

func (*AdlInterfaceEnableDisable) GetMessageType

func (*AdlInterfaceEnableDisable) GetMessageType() api.MessageType

func (*AdlInterfaceEnableDisable) Marshal

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

func (*AdlInterfaceEnableDisable) Reset

func (m *AdlInterfaceEnableDisable) Reset()

func (*AdlInterfaceEnableDisable) Size

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

func (*AdlInterfaceEnableDisable) Unmarshal

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

type AdlInterfaceEnableDisableReply

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

AdlInterfaceEnableDisableReply defines message 'adl_interface_enable_disable_reply'.

func (*AdlInterfaceEnableDisableReply) GetCrcString

func (*AdlInterfaceEnableDisableReply) GetCrcString() string

func (*AdlInterfaceEnableDisableReply) GetMessageName

func (*AdlInterfaceEnableDisableReply) GetMessageName() string

func (*AdlInterfaceEnableDisableReply) GetMessageType

func (*AdlInterfaceEnableDisableReply) Marshal

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

func (*AdlInterfaceEnableDisableReply) Reset

func (m *AdlInterfaceEnableDisableReply) Reset()

func (*AdlInterfaceEnableDisableReply) Size

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

func (*AdlInterfaceEnableDisableReply) Unmarshal

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

type RPCService

type RPCService interface {
	AdlAllowlistEnableDisable(ctx context.Context, in *AdlAllowlistEnableDisable) (*AdlAllowlistEnableDisableReply, error)
	AdlInterfaceEnableDisable(ctx context.Context, in *AdlInterfaceEnableDisable) (*AdlInterfaceEnableDisableReply, error)
}

RPCService defines RPC service adl.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

Jump to

Keyboard shortcuts

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