vpp_abx

package
v0.0.0-...-ae01f8c Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InvalidKeyPart is used in key for parts which are invalid
	InvalidKeyPart = "<invalid>"
)
View Source
const ModuleName = "vpp.abx"

ModuleName is the name of the module used for models.

Variables

View Source
var File_abx_abx_proto protoreflect.FileDescriptor

Functions

func Key

func Key(index uint32) string

Key returns the prefix used in the ETCD to store VPP ACL-based forwarding config of a particular ABX in selected vpp instance.

func ParseToInterfaceKey

func ParseToInterfaceKey(key string) (abx, iface string, isABXToInterface bool)

ParseABXToInterfaceKey parses ABX-to-interface key

func ToInterfaceKey

func ToInterfaceKey(abx uint32, iface string) string

ToABXInterfaceKey returns key for ABX-to-interface

Types

type ABX

type ABX struct {

	// ABX index (unique identifier)
	Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// Name of the associated access list
	AclName string `protobuf:"bytes,2,opt,name=acl_name,json=aclName,proto3" json:"acl_name,omitempty"`
	// Name of outgoing interface
	OutputInterface string `protobuf:"bytes,3,opt,name=output_interface,json=outputInterface,proto3" json:"output_interface,omitempty"`
	// Rewrite destination mac address
	DstMac             string                   `protobuf:"bytes,4,opt,name=dst_mac,json=dstMac,proto3" json:"dst_mac,omitempty"`
	AttachedInterfaces []*ABX_AttachedInterface `protobuf:"bytes,5,rep,name=attached_interfaces,json=attachedInterfaces,proto3" json:"attached_interfaces,omitempty"`
	// contains filtered or unexported fields
}

ACL based xconnect

func (*ABX) Descriptor deprecated

func (*ABX) Descriptor() ([]byte, []int)

Deprecated: Use ABX.ProtoReflect.Descriptor instead.

func (*ABX) GetAclName

func (x *ABX) GetAclName() string

func (*ABX) GetAttachedInterfaces

func (x *ABX) GetAttachedInterfaces() []*ABX_AttachedInterface

func (*ABX) GetDstMac

func (x *ABX) GetDstMac() string

func (*ABX) GetIndex

func (x *ABX) GetIndex() uint32

func (*ABX) GetOutputInterface

func (x *ABX) GetOutputInterface() string

func (*ABX) ProtoMessage

func (*ABX) ProtoMessage()

func (*ABX) ProtoReflect

func (x *ABX) ProtoReflect() protoreflect.Message

func (*ABX) Reset

func (x *ABX) Reset()

func (*ABX) String

func (x *ABX) String() string

type ABX_AttachedInterface

type ABX_AttachedInterface struct {
	InputInterface string `protobuf:"bytes,1,opt,name=input_interface,json=inputInterface,proto3" json:"input_interface,omitempty"`
	Priority       uint32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"`
	// contains filtered or unexported fields
}

List of interfaces attached to the ABX

func (*ABX_AttachedInterface) Descriptor deprecated

func (*ABX_AttachedInterface) Descriptor() ([]byte, []int)

Deprecated: Use ABX_AttachedInterface.ProtoReflect.Descriptor instead.

func (*ABX_AttachedInterface) GetInputInterface

func (x *ABX_AttachedInterface) GetInputInterface() string

func (*ABX_AttachedInterface) GetPriority

func (x *ABX_AttachedInterface) GetPriority() uint32

func (*ABX_AttachedInterface) ProtoMessage

func (*ABX_AttachedInterface) ProtoMessage()

func (*ABX_AttachedInterface) ProtoReflect

func (x *ABX_AttachedInterface) ProtoReflect() protoreflect.Message

func (*ABX_AttachedInterface) Reset

func (x *ABX_AttachedInterface) Reset()

func (*ABX_AttachedInterface) String

func (x *ABX_AttachedInterface) String() string

Jump to

Keyboard shortcuts

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