vpp_abf

package
v2.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 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.abfs"

ModuleName is the name of the module used for models.

Variables

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"`
	AclName              string                   `protobuf:"bytes,2,opt,name=acl_name,json=aclName,proto3" json:"acl_name,omitempty"`
	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"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

ACL based forwarding

func (*ABF) Descriptor

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

func (*ABF) GetAclName

func (m *ABF) GetAclName() string

func (*ABF) GetAttachedInterfaces

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

func (*ABF) GetForwardingPaths

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

func (*ABF) GetIndex

func (m *ABF) GetIndex() uint32

func (*ABF) ProtoMessage

func (*ABF) ProtoMessage()

func (*ABF) Reset

func (m *ABF) Reset()

func (*ABF) String

func (m *ABF) String() string

func (*ABF) XXX_DiscardUnknown

func (m *ABF) XXX_DiscardUnknown()

func (*ABF) XXX_Marshal

func (m *ABF) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ABF) XXX_Merge

func (m *ABF) XXX_Merge(src proto.Message)

func (*ABF) XXX_MessageName

func (*ABF) XXX_MessageName() string

func (*ABF) XXX_Size

func (m *ABF) XXX_Size() int

func (*ABF) XXX_Unmarshal

func (m *ABF) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

List of interfaces attached to the ABF

func (*ABF_AttachedInterface) Descriptor

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

func (*ABF_AttachedInterface) GetInputInterface

func (m *ABF_AttachedInterface) GetInputInterface() string

func (*ABF_AttachedInterface) GetIsIpv6

func (m *ABF_AttachedInterface) GetIsIpv6() bool

func (*ABF_AttachedInterface) GetPriority

func (m *ABF_AttachedInterface) GetPriority() uint32

func (*ABF_AttachedInterface) ProtoMessage

func (*ABF_AttachedInterface) ProtoMessage()

func (*ABF_AttachedInterface) Reset

func (m *ABF_AttachedInterface) Reset()

func (*ABF_AttachedInterface) String

func (m *ABF_AttachedInterface) String() string

func (*ABF_AttachedInterface) XXX_DiscardUnknown

func (m *ABF_AttachedInterface) XXX_DiscardUnknown()

func (*ABF_AttachedInterface) XXX_Marshal

func (m *ABF_AttachedInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ABF_AttachedInterface) XXX_Merge

func (m *ABF_AttachedInterface) XXX_Merge(src proto.Message)

func (*ABF_AttachedInterface) XXX_MessageName

func (*ABF_AttachedInterface) XXX_MessageName() string

func (*ABF_AttachedInterface) XXX_Size

func (m *ABF_AttachedInterface) XXX_Size() int

func (*ABF_AttachedInterface) XXX_Unmarshal

func (m *ABF_AttachedInterface) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*ABF_ForwardingPath) Descriptor

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

func (*ABF_ForwardingPath) GetDvr

func (m *ABF_ForwardingPath) GetDvr() bool

func (*ABF_ForwardingPath) GetInterfaceName

func (m *ABF_ForwardingPath) GetInterfaceName() string

func (*ABF_ForwardingPath) GetNextHopIp

func (m *ABF_ForwardingPath) GetNextHopIp() string

func (*ABF_ForwardingPath) GetPreference

func (m *ABF_ForwardingPath) GetPreference() uint32

func (*ABF_ForwardingPath) GetWeight

func (m *ABF_ForwardingPath) GetWeight() uint32

func (*ABF_ForwardingPath) ProtoMessage

func (*ABF_ForwardingPath) ProtoMessage()

func (*ABF_ForwardingPath) Reset

func (m *ABF_ForwardingPath) Reset()

func (*ABF_ForwardingPath) String

func (m *ABF_ForwardingPath) String() string

func (*ABF_ForwardingPath) XXX_DiscardUnknown

func (m *ABF_ForwardingPath) XXX_DiscardUnknown()

func (*ABF_ForwardingPath) XXX_Marshal

func (m *ABF_ForwardingPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ABF_ForwardingPath) XXX_Merge

func (m *ABF_ForwardingPath) XXX_Merge(src proto.Message)

func (*ABF_ForwardingPath) XXX_MessageName

func (*ABF_ForwardingPath) XXX_MessageName() string

func (*ABF_ForwardingPath) XXX_Size

func (m *ABF_ForwardingPath) XXX_Size() int

func (*ABF_ForwardingPath) XXX_Unmarshal

func (m *ABF_ForwardingPath) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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