vpp_l2

package
v3.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 18

Documentation

Index

Constants

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

ModuleName is the module name used for models.

Variables

View Source
var (
	FIBEntry_Action_name = map[int32]string{
		0: "FORWARD",
		1: "DROP",
	}
	FIBEntry_Action_value = map[string]int32{
		"FORWARD": 0,
		"DROP":    1,
	}
)

Enum value maps for FIBEntry_Action.

View Source
var (
	ModelBridgeDomain = models.Register(&BridgeDomain{}, models.Spec{
		Module:  ModuleName,
		Type:    "bridge-domain",
		Version: "v2",
	})

	ModelFIBEntry = models.Register(&FIBEntry{}, models.Spec{
		Module:  ModuleName,
		Type:    "fib",
		Version: "v2",
	}, models.WithNameTemplate("{{.BridgeDomain}}/mac/{{.PhysAddress}}"))

	ModelXConnectPair = models.Register(&XConnectPair{}, models.Spec{
		Module:  ModuleName,
		Type:    "xconnect",
		Version: "v2",
	}, models.WithNameTemplate("{{.ReceiveInterface}}"))
)
View Source
var File_ligato_vpp_l2_bridge_domain_proto protoreflect.FileDescriptor
View Source
var File_ligato_vpp_l2_fib_proto protoreflect.FileDescriptor
View Source
var File_ligato_vpp_l2_xconnect_proto protoreflect.FileDescriptor

Functions

func BDInterfaceKey

func BDInterfaceKey(bdName string, iface string) string

BDInterfaceKey returns the key used to represent binding between the given interface and the bridge domain.

func BridgeDomainKey

func BridgeDomainKey(bdName string) string

BridgeDomainKey returns the key used in NB DB to store the configuration of the given bridge domain.

func FIBKey

func FIBKey(bdName string, fibMac string) string

FIBKey returns the key used in NB DB to store the configuration of the given L2 FIB entry.

func ParseBDInterfaceKey

func ParseBDInterfaceKey(key string) (bdName string, iface string, isBDIfaceKey bool)

ParseBDInterfaceKey parses key representing binding between interface and a bridge domain.

func XConnectKey

func XConnectKey(rxIface string) string

XConnectKey returns the key used in NB DB to store the configuration of the given xConnect (identified by RX interface).

Types

type BridgeDomain

type BridgeDomain struct {
	Name                string                              `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                                                              // bridge domain name (can be any string)
	Flood               bool                                `protobuf:"varint,2,opt,name=flood,proto3" json:"flood,omitempty"`                                                           // enable/disable broadcast/multicast flooding in the BD
	UnknownUnicastFlood bool                                `protobuf:"varint,3,opt,name=unknown_unicast_flood,json=unknownUnicastFlood,proto3" json:"unknown_unicast_flood,omitempty"`  // enable/disable unknown unicast flood in the BD
	Forward             bool                                `protobuf:"varint,4,opt,name=forward,proto3" json:"forward,omitempty"`                                                       // enable/disable forwarding on all interfaces in the BD
	Learn               bool                                `protobuf:"varint,5,opt,name=learn,proto3" json:"learn,omitempty"`                                                           // enable/disable learning on all interfaces in the BD
	ArpTermination      bool                                `protobuf:"varint,6,opt,name=arp_termination,json=arpTermination,proto3" json:"arp_termination,omitempty"`                   // enable/disable ARP termination in the BD
	MacAge              uint32                              `protobuf:"varint,7,opt,name=mac_age,json=macAge,proto3" json:"mac_age,omitempty"`                                           // MAC aging time in min, 0 for disabled aging
	Interfaces          []*BridgeDomain_Interface           `protobuf:"bytes,100,rep,name=interfaces,proto3" json:"interfaces,omitempty"`                                                // list of interfaces
	ArpTerminationTable []*BridgeDomain_ArpTerminationEntry `protobuf:"bytes,102,rep,name=arp_termination_table,json=arpTerminationTable,proto3" json:"arp_termination_table,omitempty"` // list of ARP termination entries
	// contains filtered or unexported fields
}

func (*BridgeDomain) Descriptor deprecated

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

Deprecated: Use BridgeDomain.ProtoReflect.Descriptor instead.

func (*BridgeDomain) GetArpTermination

func (x *BridgeDomain) GetArpTermination() bool

func (*BridgeDomain) GetArpTerminationTable

func (x *BridgeDomain) GetArpTerminationTable() []*BridgeDomain_ArpTerminationEntry

func (*BridgeDomain) GetFlood

func (x *BridgeDomain) GetFlood() bool

func (*BridgeDomain) GetForward

func (x *BridgeDomain) GetForward() bool

func (*BridgeDomain) GetInterfaces

func (x *BridgeDomain) GetInterfaces() []*BridgeDomain_Interface

func (*BridgeDomain) GetLearn

func (x *BridgeDomain) GetLearn() bool

func (*BridgeDomain) GetMacAge

func (x *BridgeDomain) GetMacAge() uint32

func (*BridgeDomain) GetName

func (x *BridgeDomain) GetName() string

func (*BridgeDomain) GetUnknownUnicastFlood

func (x *BridgeDomain) GetUnknownUnicastFlood() bool

func (*BridgeDomain) ProtoMessage

func (*BridgeDomain) ProtoMessage()

func (*BridgeDomain) ProtoReflect added in v3.2.0

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

func (*BridgeDomain) Reset

func (x *BridgeDomain) Reset()

func (*BridgeDomain) String

func (x *BridgeDomain) String() string

type BridgeDomain_ArpTerminationEntry

type BridgeDomain_ArpTerminationEntry struct {
	IpAddress   string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`       // IP address
	PhysAddress string `protobuf:"bytes,2,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"` // MAC address matching to the IP
	// contains filtered or unexported fields
}

func (*BridgeDomain_ArpTerminationEntry) Descriptor deprecated

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

Deprecated: Use BridgeDomain_ArpTerminationEntry.ProtoReflect.Descriptor instead.

func (*BridgeDomain_ArpTerminationEntry) GetIpAddress

func (x *BridgeDomain_ArpTerminationEntry) GetIpAddress() string

func (*BridgeDomain_ArpTerminationEntry) GetPhysAddress

func (x *BridgeDomain_ArpTerminationEntry) GetPhysAddress() string

func (*BridgeDomain_ArpTerminationEntry) ProtoMessage

func (*BridgeDomain_ArpTerminationEntry) ProtoMessage()

func (*BridgeDomain_ArpTerminationEntry) ProtoReflect added in v3.2.0

func (*BridgeDomain_ArpTerminationEntry) Reset

func (*BridgeDomain_ArpTerminationEntry) String

type BridgeDomain_Interface

type BridgeDomain_Interface struct {
	Name                    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // interface name belonging to this bridge domain
	BridgedVirtualInterface bool   ``                                                              // true if this is a BVI interface
	/* 133-byte string literal not displayed */
	SplitHorizonGroup uint32 `protobuf:"varint,3,opt,name=split_horizon_group,json=splitHorizonGroup,proto3" json:"split_horizon_group,omitempty"` // VXLANs in the same BD need the same non-zero SHG
	// contains filtered or unexported fields
}

func (*BridgeDomain_Interface) Descriptor deprecated

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

Deprecated: Use BridgeDomain_Interface.ProtoReflect.Descriptor instead.

func (*BridgeDomain_Interface) GetBridgedVirtualInterface

func (x *BridgeDomain_Interface) GetBridgedVirtualInterface() bool

func (*BridgeDomain_Interface) GetName

func (x *BridgeDomain_Interface) GetName() string

func (*BridgeDomain_Interface) GetSplitHorizonGroup

func (x *BridgeDomain_Interface) GetSplitHorizonGroup() uint32

func (*BridgeDomain_Interface) ProtoMessage

func (*BridgeDomain_Interface) ProtoMessage()

func (*BridgeDomain_Interface) ProtoReflect added in v3.2.0

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

func (*BridgeDomain_Interface) Reset

func (x *BridgeDomain_Interface) Reset()

func (*BridgeDomain_Interface) String

func (x *BridgeDomain_Interface) String() string

type FIBEntry

type FIBEntry struct {
	PhysAddress             string          `protobuf:"bytes,1,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"`                   // unique destination MAC address
	BridgeDomain            string          `protobuf:"bytes,2,opt,name=bridge_domain,json=bridgeDomain,proto3" json:"bridge_domain,omitempty"`                // name of bridge domain this FIB table entry belongs to
	Action                  FIBEntry_Action `protobuf:"varint,3,opt,name=action,proto3,enum=ligato.vpp.l2.FIBEntry_Action" json:"action,omitempty"`            // action to tke on matching frames
	OutgoingInterface       string          `protobuf:"bytes,4,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` // outgoing interface for matching frames
	StaticConfig            bool            `protobuf:"varint,5,opt,name=static_config,json=staticConfig,proto3" json:"static_config,omitempty"`               // true if this is a statically configured FIB entry
	BridgedVirtualInterface bool            ``                                                                                                                 // the MAC address is a bridge virtual interface MAC
	/* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*FIBEntry) Descriptor deprecated

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

Deprecated: Use FIBEntry.ProtoReflect.Descriptor instead.

func (*FIBEntry) GetAction

func (x *FIBEntry) GetAction() FIBEntry_Action

func (*FIBEntry) GetBridgeDomain

func (x *FIBEntry) GetBridgeDomain() string

func (*FIBEntry) GetBridgedVirtualInterface

func (x *FIBEntry) GetBridgedVirtualInterface() bool

func (*FIBEntry) GetOutgoingInterface

func (x *FIBEntry) GetOutgoingInterface() string

func (*FIBEntry) GetPhysAddress

func (x *FIBEntry) GetPhysAddress() string

func (*FIBEntry) GetStaticConfig

func (x *FIBEntry) GetStaticConfig() bool

func (*FIBEntry) ProtoMessage

func (*FIBEntry) ProtoMessage()

func (*FIBEntry) ProtoReflect added in v3.2.0

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

func (*FIBEntry) Reset

func (x *FIBEntry) Reset()

func (*FIBEntry) String

func (x *FIBEntry) String() string

type FIBEntry_Action

type FIBEntry_Action int32
const (
	FIBEntry_FORWARD FIBEntry_Action = 0 // forward the matching frame
	FIBEntry_DROP    FIBEntry_Action = 1 // drop the matching frame
)

func (FIBEntry_Action) Descriptor added in v3.2.0

func (FIBEntry_Action) Enum added in v3.2.0

func (x FIBEntry_Action) Enum() *FIBEntry_Action

func (FIBEntry_Action) EnumDescriptor deprecated

func (FIBEntry_Action) EnumDescriptor() ([]byte, []int)

Deprecated: Use FIBEntry_Action.Descriptor instead.

func (FIBEntry_Action) Number added in v3.2.0

func (FIBEntry_Action) String

func (x FIBEntry_Action) String() string

func (FIBEntry_Action) Type added in v3.2.0

type XConnectPair

type XConnectPair struct {
	ReceiveInterface  string `protobuf:"bytes,1,opt,name=receive_interface,json=receiveInterface,proto3" json:"receive_interface,omitempty"`
	TransmitInterface string `protobuf:"bytes,2,opt,name=transmit_interface,json=transmitInterface,proto3" json:"transmit_interface,omitempty"`
	// contains filtered or unexported fields
}

func (*XConnectPair) Descriptor deprecated

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

Deprecated: Use XConnectPair.ProtoReflect.Descriptor instead.

func (*XConnectPair) GetReceiveInterface

func (x *XConnectPair) GetReceiveInterface() string

func (*XConnectPair) GetTransmitInterface

func (x *XConnectPair) GetTransmitInterface() string

func (*XConnectPair) ProtoMessage

func (*XConnectPair) ProtoMessage()

func (*XConnectPair) ProtoReflect added in v3.2.0

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

func (*XConnectPair) Reset

func (x *XConnectPair) Reset()

func (*XConnectPair) String

func (x *XConnectPair) String() string

Jump to

Keyboard shortcuts

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