sr

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package sr is a generated VPP binary API for 'sr' module.

It consists of:

 3 types
18 messages
 9 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "sr"
	// APIVersion is the API version of this module.
	APIVersion = "1.2.0"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0xaa3993c3
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type RPCService

RPCService represents RPC service API for sr module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

type RPCService_DumpSrLocalsidsClient

type RPCService_DumpSrLocalsidsClient interface {
	Recv() (*SrLocalsidsDetails, error)
}

type RPCService_DumpSrPoliciesClient

type RPCService_DumpSrPoliciesClient interface {
	Recv() (*SrPoliciesDetails, error)
}

type RPCService_DumpSrSteeringPolClient

type RPCService_DumpSrSteeringPolClient interface {
	Recv() (*SrSteeringPolDetails, error)
}

type SrIP6Address

type SrIP6Address struct {
	Data []byte `struc:"[16]byte"`
}

SrIP6Address represents VPP binary API type 'sr_ip6_address'.

func (*SrIP6Address) GetTypeName

func (*SrIP6Address) GetTypeName() string

type SrLocalsidAddDel

type SrLocalsidAddDel struct {
	IsDel     uint8
	Localsid  Srv6Sid
	EndPsp    uint8
	Behavior  uint8
	SwIfIndex uint32
	VlanIndex uint32
	FibTable  uint32
	NhAddr6   []byte `struc:"[16]byte"`
	NhAddr4   []byte `struc:"[4]byte"`
}

SrLocalsidAddDel represents VPP binary API message 'sr_localsid_add_del'.

func (*SrLocalsidAddDel) GetCrcString

func (*SrLocalsidAddDel) GetCrcString() string

func (*SrLocalsidAddDel) GetMessageName

func (*SrLocalsidAddDel) GetMessageName() string

func (*SrLocalsidAddDel) GetMessageType

func (*SrLocalsidAddDel) GetMessageType() api.MessageType

type SrLocalsidAddDelReply

type SrLocalsidAddDelReply struct {
	Retval int32
}

SrLocalsidAddDelReply represents VPP binary API message 'sr_localsid_add_del_reply'.

func (*SrLocalsidAddDelReply) GetCrcString

func (*SrLocalsidAddDelReply) GetCrcString() string

func (*SrLocalsidAddDelReply) GetMessageName

func (*SrLocalsidAddDelReply) GetMessageName() string

func (*SrLocalsidAddDelReply) GetMessageType

func (*SrLocalsidAddDelReply) GetMessageType() api.MessageType

type SrLocalsidsDetails

type SrLocalsidsDetails struct {
	Addr                    Srv6Sid
	EndPsp                  uint8
	Behavior                uint16
	FibTable                uint32
	VlanIndex               uint32
	XconnectNhAddr6         []byte `struc:"[16]byte"`
	XconnectNhAddr4         []byte `struc:"[4]byte"`
	XconnectIfaceOrVrfTable uint32
}

SrLocalsidsDetails represents VPP binary API message 'sr_localsids_details'.

func (*SrLocalsidsDetails) GetCrcString

func (*SrLocalsidsDetails) GetCrcString() string

func (*SrLocalsidsDetails) GetMessageName

func (*SrLocalsidsDetails) GetMessageName() string

func (*SrLocalsidsDetails) GetMessageType

func (*SrLocalsidsDetails) GetMessageType() api.MessageType

type SrLocalsidsDump

type SrLocalsidsDump struct{}

SrLocalsidsDump represents VPP binary API message 'sr_localsids_dump'.

func (*SrLocalsidsDump) GetCrcString

func (*SrLocalsidsDump) GetCrcString() string

func (*SrLocalsidsDump) GetMessageName

func (*SrLocalsidsDump) GetMessageName() string

func (*SrLocalsidsDump) GetMessageType

func (*SrLocalsidsDump) GetMessageType() api.MessageType

type SrPoliciesDetails

type SrPoliciesDetails struct {
	Bsid        Srv6Sid
	Type        uint8
	IsEncap     uint8
	FibTable    uint32
	NumSidLists uint8 `struc:"sizeof=SidLists"`
	SidLists    []Srv6SidList
}

SrPoliciesDetails represents VPP binary API message 'sr_policies_details'.

func (*SrPoliciesDetails) GetCrcString

func (*SrPoliciesDetails) GetCrcString() string

func (*SrPoliciesDetails) GetMessageName

func (*SrPoliciesDetails) GetMessageName() string

func (*SrPoliciesDetails) GetMessageType

func (*SrPoliciesDetails) GetMessageType() api.MessageType

type SrPoliciesDump

type SrPoliciesDump struct{}

SrPoliciesDump represents VPP binary API message 'sr_policies_dump'.

func (*SrPoliciesDump) GetCrcString

func (*SrPoliciesDump) GetCrcString() string

func (*SrPoliciesDump) GetMessageName

func (*SrPoliciesDump) GetMessageName() string

func (*SrPoliciesDump) GetMessageType

func (*SrPoliciesDump) GetMessageType() api.MessageType

type SrPolicyAdd

type SrPolicyAdd struct {
	BsidAddr []byte `struc:"[16]byte"`
	Weight   uint32
	IsEncap  uint8
	Type     uint8
	FibTable uint32
	Sids     Srv6SidList
}

SrPolicyAdd represents VPP binary API message 'sr_policy_add'.

func (*SrPolicyAdd) GetCrcString

func (*SrPolicyAdd) GetCrcString() string

func (*SrPolicyAdd) GetMessageName

func (*SrPolicyAdd) GetMessageName() string

func (*SrPolicyAdd) GetMessageType

func (*SrPolicyAdd) GetMessageType() api.MessageType

type SrPolicyAddReply

type SrPolicyAddReply struct {
	Retval int32
}

SrPolicyAddReply represents VPP binary API message 'sr_policy_add_reply'.

func (*SrPolicyAddReply) GetCrcString

func (*SrPolicyAddReply) GetCrcString() string

func (*SrPolicyAddReply) GetMessageName

func (*SrPolicyAddReply) GetMessageName() string

func (*SrPolicyAddReply) GetMessageType

func (*SrPolicyAddReply) GetMessageType() api.MessageType

type SrPolicyDel

type SrPolicyDel struct {
	BsidAddr      Srv6Sid
	SrPolicyIndex uint32
}

SrPolicyDel represents VPP binary API message 'sr_policy_del'.

func (*SrPolicyDel) GetCrcString

func (*SrPolicyDel) GetCrcString() string

func (*SrPolicyDel) GetMessageName

func (*SrPolicyDel) GetMessageName() string

func (*SrPolicyDel) GetMessageType

func (*SrPolicyDel) GetMessageType() api.MessageType

type SrPolicyDelReply

type SrPolicyDelReply struct {
	Retval int32
}

SrPolicyDelReply represents VPP binary API message 'sr_policy_del_reply'.

func (*SrPolicyDelReply) GetCrcString

func (*SrPolicyDelReply) GetCrcString() string

func (*SrPolicyDelReply) GetMessageName

func (*SrPolicyDelReply) GetMessageName() string

func (*SrPolicyDelReply) GetMessageType

func (*SrPolicyDelReply) GetMessageType() api.MessageType

type SrPolicyMod

type SrPolicyMod struct {
	BsidAddr      []byte `struc:"[16]byte"`
	SrPolicyIndex uint32
	FibTable      uint32
	Operation     uint8
	SlIndex       uint32
	Weight        uint32
	Sids          Srv6SidList
}

SrPolicyMod represents VPP binary API message 'sr_policy_mod'.

func (*SrPolicyMod) GetCrcString

func (*SrPolicyMod) GetCrcString() string

func (*SrPolicyMod) GetMessageName

func (*SrPolicyMod) GetMessageName() string

func (*SrPolicyMod) GetMessageType

func (*SrPolicyMod) GetMessageType() api.MessageType

type SrPolicyModReply

type SrPolicyModReply struct {
	Retval int32
}

SrPolicyModReply represents VPP binary API message 'sr_policy_mod_reply'.

func (*SrPolicyModReply) GetCrcString

func (*SrPolicyModReply) GetCrcString() string

func (*SrPolicyModReply) GetMessageName

func (*SrPolicyModReply) GetMessageName() string

func (*SrPolicyModReply) GetMessageType

func (*SrPolicyModReply) GetMessageType() api.MessageType

type SrSetEncapSource

type SrSetEncapSource struct {
	EncapsSource []byte `struc:"[16]byte"`
}

SrSetEncapSource represents VPP binary API message 'sr_set_encap_source'.

func (*SrSetEncapSource) GetCrcString

func (*SrSetEncapSource) GetCrcString() string

func (*SrSetEncapSource) GetMessageName

func (*SrSetEncapSource) GetMessageName() string

func (*SrSetEncapSource) GetMessageType

func (*SrSetEncapSource) GetMessageType() api.MessageType

type SrSetEncapSourceReply

type SrSetEncapSourceReply struct {
	Retval int32
}

SrSetEncapSourceReply represents VPP binary API message 'sr_set_encap_source_reply'.

func (*SrSetEncapSourceReply) GetCrcString

func (*SrSetEncapSourceReply) GetCrcString() string

func (*SrSetEncapSourceReply) GetMessageName

func (*SrSetEncapSourceReply) GetMessageName() string

func (*SrSetEncapSourceReply) GetMessageType

func (*SrSetEncapSourceReply) GetMessageType() api.MessageType

type SrSteeringAddDel

type SrSteeringAddDel struct {
	IsDel         uint8
	BsidAddr      []byte `struc:"[16]byte"`
	SrPolicyIndex uint32
	TableID       uint32
	PrefixAddr    []byte `struc:"[16]byte"`
	MaskWidth     uint32
	SwIfIndex     uint32
	TrafficType   uint8
}

SrSteeringAddDel represents VPP binary API message 'sr_steering_add_del'.

func (*SrSteeringAddDel) GetCrcString

func (*SrSteeringAddDel) GetCrcString() string

func (*SrSteeringAddDel) GetMessageName

func (*SrSteeringAddDel) GetMessageName() string

func (*SrSteeringAddDel) GetMessageType

func (*SrSteeringAddDel) GetMessageType() api.MessageType

type SrSteeringAddDelReply

type SrSteeringAddDelReply struct {
	Retval int32
}

SrSteeringAddDelReply represents VPP binary API message 'sr_steering_add_del_reply'.

func (*SrSteeringAddDelReply) GetCrcString

func (*SrSteeringAddDelReply) GetCrcString() string

func (*SrSteeringAddDelReply) GetMessageName

func (*SrSteeringAddDelReply) GetMessageName() string

func (*SrSteeringAddDelReply) GetMessageType

func (*SrSteeringAddDelReply) GetMessageType() api.MessageType

type SrSteeringPolDetails

type SrSteeringPolDetails struct {
	TrafficType uint8
	FibTable    uint32
	PrefixAddr  []byte `struc:"[16]byte"`
	MaskWidth   uint32
	SwIfIndex   uint32
	Bsid        Srv6Sid
}

SrSteeringPolDetails represents VPP binary API message 'sr_steering_pol_details'.

func (*SrSteeringPolDetails) GetCrcString

func (*SrSteeringPolDetails) GetCrcString() string

func (*SrSteeringPolDetails) GetMessageName

func (*SrSteeringPolDetails) GetMessageName() string

func (*SrSteeringPolDetails) GetMessageType

func (*SrSteeringPolDetails) GetMessageType() api.MessageType

type SrSteeringPolDump

type SrSteeringPolDump struct{}

SrSteeringPolDump represents VPP binary API message 'sr_steering_pol_dump'.

func (*SrSteeringPolDump) GetCrcString

func (*SrSteeringPolDump) GetCrcString() string

func (*SrSteeringPolDump) GetMessageName

func (*SrSteeringPolDump) GetMessageName() string

func (*SrSteeringPolDump) GetMessageType

func (*SrSteeringPolDump) GetMessageType() api.MessageType

type Srv6Sid

type Srv6Sid struct {
	Addr []byte `struc:"[16]byte"`
}

Srv6Sid represents VPP binary API type 'srv6_sid'.

func (*Srv6Sid) GetTypeName

func (*Srv6Sid) GetTypeName() string

type Srv6SidList

type Srv6SidList struct {
	NumSids uint8 `struc:"sizeof=Sids"`
	Weight  uint32
	Sids    []Srv6Sid
}

Srv6SidList represents VPP binary API type 'srv6_sid_list'.

func (*Srv6SidList) GetTypeName

func (*Srv6SidList) GetTypeName() string

Jump to

Keyboard shortcuts

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