policer

package
v0.0.0-...-4d08cb0 Latest Latest
Warning

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

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

Documentation

Overview

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

Contents: - 25 messages

Index

Constants

View Source
const (
	APIFile    = "policer"
	APIVersion = "3.0.0"
	VersionCrc = 0x341163a6
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type PolicerAdd

type PolicerAdd struct {
	Name  string                      `binapi:"string[64],name=name" json:"name,omitempty"`
	Infos policer_types.PolicerConfig `binapi:"policer_config,name=infos" json:"infos,omitempty"`
}

PolicerAdd defines message 'policer_add'.

func (*PolicerAdd) GetCrcString

func (*PolicerAdd) GetCrcString() string

func (*PolicerAdd) GetMessageName

func (*PolicerAdd) GetMessageName() string

func (*PolicerAdd) GetMessageType

func (*PolicerAdd) GetMessageType() api.MessageType

func (*PolicerAdd) Marshal

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

func (*PolicerAdd) Reset

func (m *PolicerAdd) Reset()

func (*PolicerAdd) Size

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

func (*PolicerAdd) Unmarshal

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

type PolicerAddDel

type PolicerAddDel struct {
	IsAdd         bool                             `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	Name          string                           `binapi:"string[64],name=name" json:"name,omitempty"`
	Cir           uint32                           `binapi:"u32,name=cir" json:"cir,omitempty"`
	Eir           uint32                           `binapi:"u32,name=eir" json:"eir,omitempty"`
	Cb            uint64                           `binapi:"u64,name=cb" json:"cb,omitempty"`
	Eb            uint64                           `binapi:"u64,name=eb" json:"eb,omitempty"`
	RateType      policer_types.Sse2QosRateType    `binapi:"sse2_qos_rate_type,name=rate_type" json:"rate_type,omitempty"`
	RoundType     policer_types.Sse2QosRoundType   `binapi:"sse2_qos_round_type,name=round_type" json:"round_type,omitempty"`
	Type          policer_types.Sse2QosPolicerType `binapi:"sse2_qos_policer_type,name=type" json:"type,omitempty"`
	ColorAware    bool                             `binapi:"bool,name=color_aware" json:"color_aware,omitempty"`
	ConformAction policer_types.Sse2QosAction      `binapi:"sse2_qos_action,name=conform_action" json:"conform_action,omitempty"`
	ExceedAction  policer_types.Sse2QosAction      `binapi:"sse2_qos_action,name=exceed_action" json:"exceed_action,omitempty"`
	ViolateAction policer_types.Sse2QosAction      `binapi:"sse2_qos_action,name=violate_action" json:"violate_action,omitempty"`
}

Add/del policer

  • is_add - add policer if non-zero, else delete
  • name - policer name
  • cir - CIR
  • eir - EIR
  • cb - Committed Burst
  • eb - Excess or Peak Burst
  • rate_type - rate type
  • round_type - rounding type
  • type - policer algorithm
  • color_aware - 0=color-blind, 1=color-aware
  • conform_action - conform action
  • exceed_action - exceed action type
  • violate_action - violate action type

PolicerAddDel defines message 'policer_add_del'.

func (*PolicerAddDel) GetCrcString

func (*PolicerAddDel) GetCrcString() string

func (*PolicerAddDel) GetMessageName

func (*PolicerAddDel) GetMessageName() string

func (*PolicerAddDel) GetMessageType

func (*PolicerAddDel) GetMessageType() api.MessageType

func (*PolicerAddDel) Marshal

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

func (*PolicerAddDel) Reset

func (m *PolicerAddDel) Reset()

func (*PolicerAddDel) Size

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

func (*PolicerAddDel) Unmarshal

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

type PolicerAddDelReply

type PolicerAddDelReply struct {
	Retval       int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	PolicerIndex uint32 `binapi:"u32,name=policer_index" json:"policer_index,omitempty"`
}

Add/del policer response

  • retval - return value for request
  • policer_index - for add, returned index of the new policer

PolicerAddDelReply defines message 'policer_add_del_reply'.

func (*PolicerAddDelReply) GetCrcString

func (*PolicerAddDelReply) GetCrcString() string

func (*PolicerAddDelReply) GetMessageName

func (*PolicerAddDelReply) GetMessageName() string

func (*PolicerAddDelReply) GetMessageType

func (*PolicerAddDelReply) GetMessageType() api.MessageType

func (*PolicerAddDelReply) Marshal

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

func (*PolicerAddDelReply) Reset

func (m *PolicerAddDelReply) Reset()

func (*PolicerAddDelReply) Size

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

func (*PolicerAddDelReply) Unmarshal

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

type PolicerAddReply

type PolicerAddReply struct {
	Retval       int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	PolicerIndex uint32 `binapi:"u32,name=policer_index" json:"policer_index,omitempty"`
}

PolicerAddReply defines message 'policer_add_reply'.

func (*PolicerAddReply) GetCrcString

func (*PolicerAddReply) GetCrcString() string

func (*PolicerAddReply) GetMessageName

func (*PolicerAddReply) GetMessageName() string

func (*PolicerAddReply) GetMessageType

func (*PolicerAddReply) GetMessageType() api.MessageType

func (*PolicerAddReply) Marshal

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

func (*PolicerAddReply) Reset

func (m *PolicerAddReply) Reset()

func (*PolicerAddReply) Size

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

func (*PolicerAddReply) Unmarshal

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

type PolicerBind

type PolicerBind struct {
	Name        string `binapi:"string[64],name=name" json:"name,omitempty"`
	WorkerIndex uint32 `binapi:"u32,name=worker_index" json:"worker_index,omitempty"`
	BindEnable  bool   `binapi:"bool,name=bind_enable" json:"bind_enable,omitempty"`
}

policer bind: Associate/disassociate a policer with a worker thread.

  • name - policer name to bind
  • worker_index - the worker thread to bind to
  • bind_enable - Associate/disassociate

PolicerBind defines message 'policer_bind'.

func (*PolicerBind) GetCrcString

func (*PolicerBind) GetCrcString() string

func (*PolicerBind) GetMessageName

func (*PolicerBind) GetMessageName() string

func (*PolicerBind) GetMessageType

func (*PolicerBind) GetMessageType() api.MessageType

func (*PolicerBind) Marshal

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

func (*PolicerBind) Reset

func (m *PolicerBind) Reset()

func (*PolicerBind) Size

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

func (*PolicerBind) Unmarshal

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

type PolicerBindReply

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

PolicerBindReply defines message 'policer_bind_reply'.

func (*PolicerBindReply) GetCrcString

func (*PolicerBindReply) GetCrcString() string

func (*PolicerBindReply) GetMessageName

func (*PolicerBindReply) GetMessageName() string

func (*PolicerBindReply) GetMessageType

func (*PolicerBindReply) GetMessageType() api.MessageType

func (*PolicerBindReply) Marshal

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

func (*PolicerBindReply) Reset

func (m *PolicerBindReply) Reset()

func (*PolicerBindReply) Size

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

func (*PolicerBindReply) Unmarshal

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

type PolicerBindV2

type PolicerBindV2 struct {
	PolicerIndex uint32 `binapi:"u32,name=policer_index" json:"policer_index,omitempty"`
	WorkerIndex  uint32 `binapi:"u32,name=worker_index" json:"worker_index,omitempty"`
	BindEnable   bool   `binapi:"bool,name=bind_enable" json:"bind_enable,omitempty"`
}

PolicerBindV2 defines message 'policer_bind_v2'.

func (*PolicerBindV2) GetCrcString

func (*PolicerBindV2) GetCrcString() string

func (*PolicerBindV2) GetMessageName

func (*PolicerBindV2) GetMessageName() string

func (*PolicerBindV2) GetMessageType

func (*PolicerBindV2) GetMessageType() api.MessageType

func (*PolicerBindV2) Marshal

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

func (*PolicerBindV2) Reset

func (m *PolicerBindV2) Reset()

func (*PolicerBindV2) Size

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

func (*PolicerBindV2) Unmarshal

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

type PolicerBindV2Reply

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

PolicerBindV2Reply defines message 'policer_bind_v2_reply'.

func (*PolicerBindV2Reply) GetCrcString

func (*PolicerBindV2Reply) GetCrcString() string

func (*PolicerBindV2Reply) GetMessageName

func (*PolicerBindV2Reply) GetMessageName() string

func (*PolicerBindV2Reply) GetMessageType

func (*PolicerBindV2Reply) GetMessageType() api.MessageType

func (*PolicerBindV2Reply) Marshal

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

func (*PolicerBindV2Reply) Reset

func (m *PolicerBindV2Reply) Reset()

func (*PolicerBindV2Reply) Size

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

func (*PolicerBindV2Reply) Unmarshal

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

type PolicerDel

type PolicerDel struct {
	PolicerIndex uint32 `binapi:"u32,name=policer_index" json:"policer_index,omitempty"`
}

PolicerDel defines message 'policer_del'.

func (*PolicerDel) GetCrcString

func (*PolicerDel) GetCrcString() string

func (*PolicerDel) GetMessageName

func (*PolicerDel) GetMessageName() string

func (*PolicerDel) GetMessageType

func (*PolicerDel) GetMessageType() api.MessageType

func (*PolicerDel) Marshal

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

func (*PolicerDel) Reset

func (m *PolicerDel) Reset()

func (*PolicerDel) Size

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

func (*PolicerDel) Unmarshal

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

type PolicerDelReply

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

PolicerDelReply defines message 'policer_del_reply'.

func (*PolicerDelReply) GetCrcString

func (*PolicerDelReply) GetCrcString() string

func (*PolicerDelReply) GetMessageName

func (*PolicerDelReply) GetMessageName() string

func (*PolicerDelReply) GetMessageType

func (*PolicerDelReply) GetMessageType() api.MessageType

func (*PolicerDelReply) Marshal

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

func (*PolicerDelReply) Reset

func (m *PolicerDelReply) Reset()

func (*PolicerDelReply) Size

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

func (*PolicerDelReply) Unmarshal

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

type PolicerDetails

type PolicerDetails struct {
	Name               string                           `binapi:"string[64],name=name" json:"name,omitempty"`
	Cir                uint32                           `binapi:"u32,name=cir" json:"cir,omitempty"`
	Eir                uint32                           `binapi:"u32,name=eir" json:"eir,omitempty"`
	Cb                 uint64                           `binapi:"u64,name=cb" json:"cb,omitempty"`
	Eb                 uint64                           `binapi:"u64,name=eb" json:"eb,omitempty"`
	RateType           policer_types.Sse2QosRateType    `binapi:"sse2_qos_rate_type,name=rate_type" json:"rate_type,omitempty"`
	RoundType          policer_types.Sse2QosRoundType   `binapi:"sse2_qos_round_type,name=round_type" json:"round_type,omitempty"`
	Type               policer_types.Sse2QosPolicerType `binapi:"sse2_qos_policer_type,name=type" json:"type,omitempty"`
	ConformAction      policer_types.Sse2QosAction      `binapi:"sse2_qos_action,name=conform_action" json:"conform_action,omitempty"`
	ExceedAction       policer_types.Sse2QosAction      `binapi:"sse2_qos_action,name=exceed_action" json:"exceed_action,omitempty"`
	ViolateAction      policer_types.Sse2QosAction      `binapi:"sse2_qos_action,name=violate_action" json:"violate_action,omitempty"`
	SingleRate         bool                             `binapi:"bool,name=single_rate" json:"single_rate,omitempty"`
	ColorAware         bool                             `binapi:"bool,name=color_aware" json:"color_aware,omitempty"`
	Scale              uint32                           `binapi:"u32,name=scale" json:"scale,omitempty"`
	CirTokensPerPeriod uint32                           `binapi:"u32,name=cir_tokens_per_period" json:"cir_tokens_per_period,omitempty"`
	PirTokensPerPeriod uint32                           `binapi:"u32,name=pir_tokens_per_period" json:"pir_tokens_per_period,omitempty"`
	CurrentLimit       uint32                           `binapi:"u32,name=current_limit" json:"current_limit,omitempty"`
	CurrentBucket      uint32                           `binapi:"u32,name=current_bucket" json:"current_bucket,omitempty"`
	ExtendedLimit      uint32                           `binapi:"u32,name=extended_limit" json:"extended_limit,omitempty"`
	ExtendedBucket     uint32                           `binapi:"u32,name=extended_bucket" json:"extended_bucket,omitempty"`
	LastUpdateTime     uint64                           `binapi:"u64,name=last_update_time" json:"last_update_time,omitempty"`
}

Policer operational state response.

  • name - policer name
  • cir - CIR
  • eir - EIR
  • cb - Committed Burst
  • eb - Excess or Peak Burst
  • rate_type - rate type
  • round_type - rounding type
  • type - policer algorithm
  • conform_action - conform action
  • exceed_action - exceed action
  • violate_action - violate action
  • single_rate - 1 = single rate policer, 0 = two rate policer
  • color_aware - for hierarchical policing
  • scale - power-of-2 shift amount for lower rates
  • cir_tokens_per_period - number of tokens for each period
  • pir_tokens_per_period - number of tokens for each period for 2-rate policer
  • current_limit - current limit
  • current_bucket - current bucket
  • extended_limit - extended limit
  • extended_bucket - extended bucket
  • last_update_time - last update time

PolicerDetails defines message 'policer_details'.

func (*PolicerDetails) GetCrcString

func (*PolicerDetails) GetCrcString() string

func (*PolicerDetails) GetMessageName

func (*PolicerDetails) GetMessageName() string

func (*PolicerDetails) GetMessageType

func (*PolicerDetails) GetMessageType() api.MessageType

func (*PolicerDetails) Marshal

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

func (*PolicerDetails) Reset

func (m *PolicerDetails) Reset()

func (*PolicerDetails) Size

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

func (*PolicerDetails) Unmarshal

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

type PolicerDump

type PolicerDump struct {
	MatchNameValid bool   `binapi:"bool,name=match_name_valid" json:"match_name_valid,omitempty"`
	MatchName      string `binapi:"string[64],name=match_name" json:"match_name,omitempty"`
}

Get list of policers

  • match_name_valid - if 0 request all policers otherwise use match_name
  • match_name - policer name

PolicerDump defines message 'policer_dump'.

func (*PolicerDump) GetCrcString

func (*PolicerDump) GetCrcString() string

func (*PolicerDump) GetMessageName

func (*PolicerDump) GetMessageName() string

func (*PolicerDump) GetMessageType

func (*PolicerDump) GetMessageType() api.MessageType

func (*PolicerDump) Marshal

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

func (*PolicerDump) Reset

func (m *PolicerDump) Reset()

func (*PolicerDump) Size

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

func (*PolicerDump) Unmarshal

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

type PolicerDumpV2

type PolicerDumpV2 struct {
	PolicerIndex uint32 `binapi:"u32,name=policer_index" json:"policer_index,omitempty"`
}

Get list of policers

  • policer_index - index of policer in the pool, ~0 to request all

PolicerDumpV2 defines message 'policer_dump_v2'.

func (*PolicerDumpV2) GetCrcString

func (*PolicerDumpV2) GetCrcString() string

func (*PolicerDumpV2) GetMessageName

func (*PolicerDumpV2) GetMessageName() string

func (*PolicerDumpV2) GetMessageType

func (*PolicerDumpV2) GetMessageType() api.MessageType

func (*PolicerDumpV2) Marshal

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

func (*PolicerDumpV2) Reset

func (m *PolicerDumpV2) Reset()

func (*PolicerDumpV2) Size

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

func (*PolicerDumpV2) Unmarshal

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

type PolicerInput

type PolicerInput struct {
	Name      string                         `binapi:"string[64],name=name" json:"name,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Apply     bool                           `binapi:"bool,name=apply" json:"apply,omitempty"`
}

policer input: Apply policer as an input feature.

  • name - policer name
  • sw_if_index - interface to apply the policer
  • apply - Apply/remove

PolicerInput defines message 'policer_input'.

func (*PolicerInput) GetCrcString

func (*PolicerInput) GetCrcString() string

func (*PolicerInput) GetMessageName

func (*PolicerInput) GetMessageName() string

func (*PolicerInput) GetMessageType

func (*PolicerInput) GetMessageType() api.MessageType

func (*PolicerInput) Marshal

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

func (*PolicerInput) Reset

func (m *PolicerInput) Reset()

func (*PolicerInput) Size

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

func (*PolicerInput) Unmarshal

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

type PolicerInputReply

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

PolicerInputReply defines message 'policer_input_reply'.

func (*PolicerInputReply) GetCrcString

func (*PolicerInputReply) GetCrcString() string

func (*PolicerInputReply) GetMessageName

func (*PolicerInputReply) GetMessageName() string

func (*PolicerInputReply) GetMessageType

func (*PolicerInputReply) GetMessageType() api.MessageType

func (*PolicerInputReply) Marshal

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

func (*PolicerInputReply) Reset

func (m *PolicerInputReply) Reset()

func (*PolicerInputReply) Size

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

func (*PolicerInputReply) Unmarshal

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

type PolicerInputV2

type PolicerInputV2 struct {
	PolicerIndex uint32                         `binapi:"u32,name=policer_index" json:"policer_index,omitempty"`
	SwIfIndex    interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Apply        bool                           `binapi:"bool,name=apply" json:"apply,omitempty"`
}

PolicerInputV2 defines message 'policer_input_v2'.

func (*PolicerInputV2) GetCrcString

func (*PolicerInputV2) GetCrcString() string

func (*PolicerInputV2) GetMessageName

func (*PolicerInputV2) GetMessageName() string

func (*PolicerInputV2) GetMessageType

func (*PolicerInputV2) GetMessageType() api.MessageType

func (*PolicerInputV2) Marshal

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

func (*PolicerInputV2) Reset

func (m *PolicerInputV2) Reset()

func (*PolicerInputV2) Size

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

func (*PolicerInputV2) Unmarshal

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

type PolicerInputV2Reply

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

PolicerInputV2Reply defines message 'policer_input_v2_reply'.

func (*PolicerInputV2Reply) GetCrcString

func (*PolicerInputV2Reply) GetCrcString() string

func (*PolicerInputV2Reply) GetMessageName

func (*PolicerInputV2Reply) GetMessageName() string

func (*PolicerInputV2Reply) GetMessageType

func (*PolicerInputV2Reply) GetMessageType() api.MessageType

func (*PolicerInputV2Reply) Marshal

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

func (*PolicerInputV2Reply) Reset

func (m *PolicerInputV2Reply) Reset()

func (*PolicerInputV2Reply) Size

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

func (*PolicerInputV2Reply) Unmarshal

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

type PolicerOutput

type PolicerOutput struct {
	Name      string                         `binapi:"string[64],name=name" json:"name,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Apply     bool                           `binapi:"bool,name=apply" json:"apply,omitempty"`
}

policer output: Apply policer as an output feature.

  • name - policer name
  • sw_if_index - interface to apply the policer
  • apply - Apply/remove

PolicerOutput defines message 'policer_output'.

func (*PolicerOutput) GetCrcString

func (*PolicerOutput) GetCrcString() string

func (*PolicerOutput) GetMessageName

func (*PolicerOutput) GetMessageName() string

func (*PolicerOutput) GetMessageType

func (*PolicerOutput) GetMessageType() api.MessageType

func (*PolicerOutput) Marshal

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

func (*PolicerOutput) Reset

func (m *PolicerOutput) Reset()

func (*PolicerOutput) Size

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

func (*PolicerOutput) Unmarshal

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

type PolicerOutputReply

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

PolicerOutputReply defines message 'policer_output_reply'.

func (*PolicerOutputReply) GetCrcString

func (*PolicerOutputReply) GetCrcString() string

func (*PolicerOutputReply) GetMessageName

func (*PolicerOutputReply) GetMessageName() string

func (*PolicerOutputReply) GetMessageType

func (*PolicerOutputReply) GetMessageType() api.MessageType

func (*PolicerOutputReply) Marshal

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

func (*PolicerOutputReply) Reset

func (m *PolicerOutputReply) Reset()

func (*PolicerOutputReply) Size

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

func (*PolicerOutputReply) Unmarshal

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

type PolicerOutputV2

type PolicerOutputV2 struct {
	PolicerIndex uint32                         `binapi:"u32,name=policer_index" json:"policer_index,omitempty"`
	SwIfIndex    interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Apply        bool                           `binapi:"bool,name=apply" json:"apply,omitempty"`
}

PolicerOutputV2 defines message 'policer_output_v2'.

func (*PolicerOutputV2) GetCrcString

func (*PolicerOutputV2) GetCrcString() string

func (*PolicerOutputV2) GetMessageName

func (*PolicerOutputV2) GetMessageName() string

func (*PolicerOutputV2) GetMessageType

func (*PolicerOutputV2) GetMessageType() api.MessageType

func (*PolicerOutputV2) Marshal

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

func (*PolicerOutputV2) Reset

func (m *PolicerOutputV2) Reset()

func (*PolicerOutputV2) Size

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

func (*PolicerOutputV2) Unmarshal

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

type PolicerOutputV2Reply

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

PolicerOutputV2Reply defines message 'policer_output_v2_reply'.

func (*PolicerOutputV2Reply) GetCrcString

func (*PolicerOutputV2Reply) GetCrcString() string

func (*PolicerOutputV2Reply) GetMessageName

func (*PolicerOutputV2Reply) GetMessageName() string

func (*PolicerOutputV2Reply) GetMessageType

func (*PolicerOutputV2Reply) GetMessageType() api.MessageType

func (*PolicerOutputV2Reply) Marshal

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

func (*PolicerOutputV2Reply) Reset

func (m *PolicerOutputV2Reply) Reset()

func (*PolicerOutputV2Reply) Size

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

func (*PolicerOutputV2Reply) Unmarshal

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

type PolicerReset

type PolicerReset struct {
	PolicerIndex uint32 `binapi:"u32,name=policer_index" json:"policer_index,omitempty"`
}

PolicerReset defines message 'policer_reset'.

func (*PolicerReset) GetCrcString

func (*PolicerReset) GetCrcString() string

func (*PolicerReset) GetMessageName

func (*PolicerReset) GetMessageName() string

func (*PolicerReset) GetMessageType

func (*PolicerReset) GetMessageType() api.MessageType

func (*PolicerReset) Marshal

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

func (*PolicerReset) Reset

func (m *PolicerReset) Reset()

func (*PolicerReset) Size

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

func (*PolicerReset) Unmarshal

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

type PolicerResetReply

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

PolicerResetReply defines message 'policer_reset_reply'.

func (*PolicerResetReply) GetCrcString

func (*PolicerResetReply) GetCrcString() string

func (*PolicerResetReply) GetMessageName

func (*PolicerResetReply) GetMessageName() string

func (*PolicerResetReply) GetMessageType

func (*PolicerResetReply) GetMessageType() api.MessageType

func (*PolicerResetReply) Marshal

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

func (*PolicerResetReply) Reset

func (m *PolicerResetReply) Reset()

func (*PolicerResetReply) Size

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

func (*PolicerResetReply) Unmarshal

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

type PolicerUpdate

type PolicerUpdate struct {
	PolicerIndex uint32                      `binapi:"u32,name=policer_index" json:"policer_index,omitempty"`
	Infos        policer_types.PolicerConfig `binapi:"policer_config,name=infos" json:"infos,omitempty"`
}

PolicerUpdate defines message 'policer_update'.

func (*PolicerUpdate) GetCrcString

func (*PolicerUpdate) GetCrcString() string

func (*PolicerUpdate) GetMessageName

func (*PolicerUpdate) GetMessageName() string

func (*PolicerUpdate) GetMessageType

func (*PolicerUpdate) GetMessageType() api.MessageType

func (*PolicerUpdate) Marshal

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

func (*PolicerUpdate) Reset

func (m *PolicerUpdate) Reset()

func (*PolicerUpdate) Size

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

func (*PolicerUpdate) Unmarshal

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

type PolicerUpdateReply

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

PolicerUpdateReply defines message 'policer_update_reply'.

func (*PolicerUpdateReply) GetCrcString

func (*PolicerUpdateReply) GetCrcString() string

func (*PolicerUpdateReply) GetMessageName

func (*PolicerUpdateReply) GetMessageName() string

func (*PolicerUpdateReply) GetMessageType

func (*PolicerUpdateReply) GetMessageType() api.MessageType

func (*PolicerUpdateReply) Marshal

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

func (*PolicerUpdateReply) Reset

func (m *PolicerUpdateReply) Reset()

func (*PolicerUpdateReply) Size

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

func (*PolicerUpdateReply) Unmarshal

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

type RPCService

type RPCService interface {
	PolicerAdd(ctx context.Context, in *PolicerAdd) (*PolicerAddReply, error)
	PolicerAddDel(ctx context.Context, in *PolicerAddDel) (*PolicerAddDelReply, error)
	PolicerBind(ctx context.Context, in *PolicerBind) (*PolicerBindReply, error)
	PolicerBindV2(ctx context.Context, in *PolicerBindV2) (*PolicerBindV2Reply, error)
	PolicerDel(ctx context.Context, in *PolicerDel) (*PolicerDelReply, error)
	PolicerDump(ctx context.Context, in *PolicerDump) (RPCService_PolicerDumpClient, error)
	PolicerDumpV2(ctx context.Context, in *PolicerDumpV2) (RPCService_PolicerDumpV2Client, error)
	PolicerInput(ctx context.Context, in *PolicerInput) (*PolicerInputReply, error)
	PolicerInputV2(ctx context.Context, in *PolicerInputV2) (*PolicerInputV2Reply, error)
	PolicerOutput(ctx context.Context, in *PolicerOutput) (*PolicerOutputReply, error)
	PolicerOutputV2(ctx context.Context, in *PolicerOutputV2) (*PolicerOutputV2Reply, error)
	PolicerReset(ctx context.Context, in *PolicerReset) (*PolicerResetReply, error)
	PolicerUpdate(ctx context.Context, in *PolicerUpdate) (*PolicerUpdateReply, error)
}

RPCService defines RPC service policer.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_PolicerDumpClient

type RPCService_PolicerDumpClient interface {
	Recv() (*PolicerDetails, error)
	api.Stream
}

type RPCService_PolicerDumpV2Client

type RPCService_PolicerDumpV2Client interface {
	Recv() (*PolicerDetails, error)
	api.Stream
}

Jump to

Keyboard shortcuts

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