Documentation ¶
Index ¶
- Constants
- Variables
- func Key(index uint32) string
- func ParseToInterfaceKey(key string) (abf, iface string, isABFToInterface bool)
- func ToInterfaceKey(abf uint32, iface string) string
- type ABF
- func (*ABF) Descriptor() ([]byte, []int)deprecated
- func (x *ABF) GetAclName() string
- func (x *ABF) GetAttachedInterfaces() []*ABF_AttachedInterface
- func (x *ABF) GetForwardingPaths() []*ABF_ForwardingPath
- func (x *ABF) GetIndex() uint32
- func (*ABF) ProtoMessage()
- func (x *ABF) ProtoReflect() protoreflect.Message
- func (x *ABF) Reset()
- func (x *ABF) String() string
- type ABF_AttachedInterface
- func (*ABF_AttachedInterface) Descriptor() ([]byte, []int)deprecated
- func (x *ABF_AttachedInterface) GetInputInterface() string
- func (x *ABF_AttachedInterface) GetIsIpv6() bool
- func (x *ABF_AttachedInterface) GetPriority() uint32
- func (*ABF_AttachedInterface) ProtoMessage()
- func (x *ABF_AttachedInterface) ProtoReflect() protoreflect.Message
- func (x *ABF_AttachedInterface) Reset()
- func (x *ABF_AttachedInterface) String() string
- type ABF_ForwardingPath
- func (*ABF_ForwardingPath) Descriptor() ([]byte, []int)deprecated
- func (x *ABF_ForwardingPath) GetDvr() bool
- func (x *ABF_ForwardingPath) GetInterfaceName() string
- func (x *ABF_ForwardingPath) GetNextHopIp() string
- func (x *ABF_ForwardingPath) GetPreference() uint32
- func (x *ABF_ForwardingPath) GetWeight() uint32
- func (*ABF_ForwardingPath) ProtoMessage()
- func (x *ABF_ForwardingPath) ProtoReflect() protoreflect.Message
- func (x *ABF_ForwardingPath) Reset()
- func (x *ABF_ForwardingPath) String() string
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 ¶
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 ¶
ParseABFToInterfaceKey parses ABF-to-interface key
func ToInterfaceKey ¶
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) GetAclName ¶
func (*ABF) GetAttachedInterfaces ¶
func (x *ABF) GetAttachedInterfaces() []*ABF_AttachedInterface
func (*ABF) GetForwardingPaths ¶
func (x *ABF) GetForwardingPaths() []*ABF_ForwardingPath
func (*ABF) ProtoMessage ¶
func (*ABF) ProtoMessage()
func (*ABF) ProtoReflect ¶ added in v3.2.0
func (x *ABF) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.