l3xc

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: 9 Imported by: 0

Documentation

Overview

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

Contents: - 1 struct - 8 messages

Index

Constants

View Source
const (
	APIFile    = "l3xc"
	APIVersion = "1.0.1"
	VersionCrc = 0x520bfc6e
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type L3xc

type L3xc struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	IsIP6     bool                           `binapi:"bool,name=is_ip6" json:"is_ip6,omitempty"`
	NPaths    uint8                          `binapi:"u8,name=n_paths" json:"-"`
	Paths     []fib_types.FibPath            `binapi:"fib_path[n_paths],name=paths" json:"paths,omitempty"`
}

L3xc defines type 'l3xc'.

type L3xcDel

type L3xcDel struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	IsIP6     bool                           `binapi:"bool,name=is_ip6" json:"is_ip6,omitempty"`
}

L3xcDel defines message 'l3xc_del'.

func (*L3xcDel) GetCrcString

func (*L3xcDel) GetCrcString() string

func (*L3xcDel) GetMessageName

func (*L3xcDel) GetMessageName() string

func (*L3xcDel) GetMessageType

func (*L3xcDel) GetMessageType() api.MessageType

func (*L3xcDel) Marshal

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

func (*L3xcDel) Reset

func (m *L3xcDel) Reset()

func (*L3xcDel) Size

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

func (*L3xcDel) Unmarshal

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

type L3xcDelReply

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

L3xcDelReply defines message 'l3xc_del_reply'.

func (*L3xcDelReply) GetCrcString

func (*L3xcDelReply) GetCrcString() string

func (*L3xcDelReply) GetMessageName

func (*L3xcDelReply) GetMessageName() string

func (*L3xcDelReply) GetMessageType

func (*L3xcDelReply) GetMessageType() api.MessageType

func (*L3xcDelReply) Marshal

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

func (*L3xcDelReply) Reset

func (m *L3xcDelReply) Reset()

func (*L3xcDelReply) Size

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

func (*L3xcDelReply) Unmarshal

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

type L3xcDetails

type L3xcDetails struct {
	L3xc L3xc `binapi:"l3xc,name=l3xc" json:"l3xc,omitempty"`
}

description returned in the dump L3xcDetails defines message 'l3xc_details'.

func (*L3xcDetails) GetCrcString

func (*L3xcDetails) GetCrcString() string

func (*L3xcDetails) GetMessageName

func (*L3xcDetails) GetMessageName() string

func (*L3xcDetails) GetMessageType

func (*L3xcDetails) GetMessageType() api.MessageType

func (*L3xcDetails) Marshal

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

func (*L3xcDetails) Reset

func (m *L3xcDetails) Reset()

func (*L3xcDetails) Size

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

func (*L3xcDetails) Unmarshal

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

type L3xcDump

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

Dump all L3XC policies L3xcDump defines message 'l3xc_dump'.

func (*L3xcDump) GetCrcString

func (*L3xcDump) GetCrcString() string

func (*L3xcDump) GetMessageName

func (*L3xcDump) GetMessageName() string

func (*L3xcDump) GetMessageType

func (*L3xcDump) GetMessageType() api.MessageType

func (*L3xcDump) Marshal

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

func (*L3xcDump) Reset

func (m *L3xcDump) Reset()

func (*L3xcDump) Size

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

func (*L3xcDump) Unmarshal

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

type L3xcPluginGetVersion

type L3xcPluginGetVersion struct{}

Get the plugin version L3xcPluginGetVersion defines message 'l3xc_plugin_get_version'.

func (*L3xcPluginGetVersion) GetCrcString

func (*L3xcPluginGetVersion) GetCrcString() string

func (*L3xcPluginGetVersion) GetMessageName

func (*L3xcPluginGetVersion) GetMessageName() string

func (*L3xcPluginGetVersion) GetMessageType

func (*L3xcPluginGetVersion) GetMessageType() api.MessageType

func (*L3xcPluginGetVersion) Marshal

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

func (*L3xcPluginGetVersion) Reset

func (m *L3xcPluginGetVersion) Reset()

func (*L3xcPluginGetVersion) Size

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

func (*L3xcPluginGetVersion) Unmarshal

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

type L3xcPluginGetVersionReply

type L3xcPluginGetVersionReply 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

L3xcPluginGetVersionReply defines message 'l3xc_plugin_get_version_reply'.

func (*L3xcPluginGetVersionReply) GetCrcString

func (*L3xcPluginGetVersionReply) GetCrcString() string

func (*L3xcPluginGetVersionReply) GetMessageName

func (*L3xcPluginGetVersionReply) GetMessageName() string

func (*L3xcPluginGetVersionReply) GetMessageType

func (*L3xcPluginGetVersionReply) GetMessageType() api.MessageType

func (*L3xcPluginGetVersionReply) Marshal

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

func (*L3xcPluginGetVersionReply) Reset

func (m *L3xcPluginGetVersionReply) Reset()

func (*L3xcPluginGetVersionReply) Size

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

func (*L3xcPluginGetVersionReply) Unmarshal

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

type L3xcUpdate

type L3xcUpdate struct {
	L3xc L3xc `binapi:"l3xc,name=l3xc" json:"l3xc,omitempty"`
}

A description of an L3XC policy

  • input interface of the x-connect
  • n_paths Number of paths
  • paths The set of forwarding paths.

L3xcUpdate defines message 'l3xc_update'.

func (*L3xcUpdate) GetCrcString

func (*L3xcUpdate) GetCrcString() string

func (*L3xcUpdate) GetMessageName

func (*L3xcUpdate) GetMessageName() string

func (*L3xcUpdate) GetMessageType

func (*L3xcUpdate) GetMessageType() api.MessageType

func (*L3xcUpdate) Marshal

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

func (*L3xcUpdate) Reset

func (m *L3xcUpdate) Reset()

func (*L3xcUpdate) Size

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

func (*L3xcUpdate) Unmarshal

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

type L3xcUpdateReply

type L3xcUpdateReply struct {
	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	StatsIndex uint32 `binapi:"u32,name=stats_index" json:"stats_index,omitempty"`
}

L3xcUpdateReply defines message 'l3xc_update_reply'.

func (*L3xcUpdateReply) GetCrcString

func (*L3xcUpdateReply) GetCrcString() string

func (*L3xcUpdateReply) GetMessageName

func (*L3xcUpdateReply) GetMessageName() string

func (*L3xcUpdateReply) GetMessageType

func (*L3xcUpdateReply) GetMessageType() api.MessageType

func (*L3xcUpdateReply) Marshal

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

func (*L3xcUpdateReply) Reset

func (m *L3xcUpdateReply) Reset()

func (*L3xcUpdateReply) Size

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

func (*L3xcUpdateReply) Unmarshal

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

type RPCService

type RPCService interface {
	L3xcDel(ctx context.Context, in *L3xcDel) (*L3xcDelReply, error)
	L3xcDump(ctx context.Context, in *L3xcDump) (RPCService_L3xcDumpClient, error)
	L3xcPluginGetVersion(ctx context.Context, in *L3xcPluginGetVersion) (*L3xcPluginGetVersionReply, error)
	L3xcUpdate(ctx context.Context, in *L3xcUpdate) (*L3xcUpdateReply, error)
}

RPCService defines RPC service l3xc.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_L3xcDumpClient

type RPCService_L3xcDumpClient interface {
	Recv() (*L3xcDetails, error)
	api.Stream
}

Jump to

Keyboard shortcuts

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