vpp_abf

package
v3.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

ModuleName is the name of the module used for models.

Variables

View Source
var File_ligato_vpp_abf_abf_proto protoreflect.FileDescriptor
View Source
var (
	ModelABF = models.Register(&ABF{}, models.Spec{
		Module:  ModuleName,
		Version: "v2",
		Type:    "abf",
	}, models.WithNameTemplate("{{.Index}}"))
)

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 ABF in selected vpp instance.

func ParseToInterfaceKey

func ParseToInterfaceKey(key string) (abf, iface string, isABFToInterface bool)

ParseABFToInterfaceKey parses ABF-to-interface key

func ToInterfaceKey

func ToInterfaceKey(abf uint32, iface string) string

ToABFInterfaceKey returns key for ABF-to-interface

Types

type ABF

type ABF struct {
	Index              uint32                   `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`                   // ABF index (unique identifier)
	AclName            string                   `protobuf:"bytes,2,opt,name=acl_name,json=aclName,proto3" json:"acl_name,omitempty"` // Name of the associated access list
	AttachedInterfaces []*ABF_AttachedInterface `protobuf:"bytes,3,rep,name=attached_interfaces,json=attachedInterfaces,proto3" json:"attached_interfaces,omitempty"`
	ForwardingPaths    []*ABF_ForwardingPath    `protobuf:"bytes,4,rep,name=forwarding_paths,json=forwardingPaths,proto3" json:"forwarding_paths,omitempty"`
	// contains filtered or unexported fields
}

ABF defines ACL based forwarding.

func (*ABF) Descriptor deprecated

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

Deprecated: Use ABF.ProtoReflect.Descriptor instead.

func (*ABF) GetAclName

func (x *ABF) GetAclName() string

func (*ABF) GetAttachedInterfaces

func (x *ABF) GetAttachedInterfaces() []*ABF_AttachedInterface

func (*ABF) GetForwardingPaths

func (x *ABF) GetForwardingPaths() []*ABF_ForwardingPath

func (*ABF) GetIndex

func (x *ABF) GetIndex() uint32

func (*ABF) ProtoMessage

func (*ABF) ProtoMessage()

func (*ABF) ProtoReflect added in v3.2.0

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

func (*ABF) Reset

func (x *ABF) Reset()

func (*ABF) String

func (x *ABF) String() string

type ABF_AttachedInterface

type ABF_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"`
	IsIpv6         bool   `protobuf:"varint,3,opt,name=is_ipv6,json=isIpv6,proto3" json:"is_ipv6,omitempty"`
	// contains filtered or unexported fields
}

List of interfaces attached to the ABF

func (*ABF_AttachedInterface) Descriptor deprecated

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

Deprecated: Use ABF_AttachedInterface.ProtoReflect.Descriptor instead.

func (*ABF_AttachedInterface) GetInputInterface

func (x *ABF_AttachedInterface) GetInputInterface() string

func (*ABF_AttachedInterface) GetIsIpv6

func (x *ABF_AttachedInterface) GetIsIpv6() bool

func (*ABF_AttachedInterface) GetPriority

func (x *ABF_AttachedInterface) GetPriority() uint32

func (*ABF_AttachedInterface) ProtoMessage

func (*ABF_AttachedInterface) ProtoMessage()

func (*ABF_AttachedInterface) ProtoReflect added in v3.2.0

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

func (*ABF_AttachedInterface) Reset

func (x *ABF_AttachedInterface) Reset()

func (*ABF_AttachedInterface) String

func (x *ABF_AttachedInterface) String() string

type ABF_ForwardingPath

type ABF_ForwardingPath struct {
	NextHopIp     string `protobuf:"bytes,1,opt,name=next_hop_ip,json=nextHopIp,proto3" json:"next_hop_ip,omitempty"`
	InterfaceName string `protobuf:"bytes,2,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"`
	Weight        uint32 `protobuf:"varint,3,opt,name=weight,proto3" json:"weight,omitempty"`
	Preference    uint32 `protobuf:"varint,4,opt,name=preference,proto3" json:"preference,omitempty"`
	Dvr           bool   `protobuf:"varint,5,opt,name=dvr,proto3" json:"dvr,omitempty"`
	// contains filtered or unexported fields
}

List of forwarding paths added to the ABF policy (via)

func (*ABF_ForwardingPath) Descriptor deprecated

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

Deprecated: Use ABF_ForwardingPath.ProtoReflect.Descriptor instead.

func (*ABF_ForwardingPath) GetDvr

func (x *ABF_ForwardingPath) GetDvr() bool

func (*ABF_ForwardingPath) GetInterfaceName

func (x *ABF_ForwardingPath) GetInterfaceName() string

func (*ABF_ForwardingPath) GetNextHopIp

func (x *ABF_ForwardingPath) GetNextHopIp() string

func (*ABF_ForwardingPath) GetPreference

func (x *ABF_ForwardingPath) GetPreference() uint32

func (*ABF_ForwardingPath) GetWeight

func (x *ABF_ForwardingPath) GetWeight() uint32

func (*ABF_ForwardingPath) ProtoMessage

func (*ABF_ForwardingPath) ProtoMessage()

func (*ABF_ForwardingPath) ProtoReflect added in v3.2.0

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

func (*ABF_ForwardingPath) Reset

func (x *ABF_ForwardingPath) Reset()

func (*ABF_ForwardingPath) String

func (x *ABF_ForwardingPath) String() string

Jump to

Keyboard shortcuts

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