vpp_l2

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 6 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.l2"

ModuleName is the module name used for models.

Variables

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 FIBEntry_Action_name = map[int32]string{
	0: "FORWARD",
	1: "DROP",
}
View Source
var FIBEntry_Action_value = map[string]int32{
	"FORWARD": 0,
	"DROP":    1,
}

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"`
	Flood                bool                                `protobuf:"varint,2,opt,name=flood,proto3" json:"flood,omitempty"`
	UnknownUnicastFlood  bool                                `protobuf:"varint,3,opt,name=unknown_unicast_flood,json=unknownUnicastFlood,proto3" json:"unknown_unicast_flood,omitempty"`
	Forward              bool                                `protobuf:"varint,4,opt,name=forward,proto3" json:"forward,omitempty"`
	Learn                bool                                `protobuf:"varint,5,opt,name=learn,proto3" json:"learn,omitempty"`
	ArpTermination       bool                                `protobuf:"varint,6,opt,name=arp_termination,json=arpTermination,proto3" json:"arp_termination,omitempty"`
	MacAge               uint32                              `protobuf:"varint,7,opt,name=mac_age,json=macAge,proto3" json:"mac_age,omitempty"`
	Interfaces           []*BridgeDomain_Interface           `protobuf:"bytes,100,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
	ArpTerminationTable  []*BridgeDomain_ArpTerminationEntry `protobuf:"bytes,102,rep,name=arp_termination_table,json=arpTerminationTable,proto3" json:"arp_termination_table,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

func (*BridgeDomain) Descriptor

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

func (*BridgeDomain) GetArpTermination

func (m *BridgeDomain) GetArpTermination() bool

func (*BridgeDomain) GetArpTerminationTable

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

func (*BridgeDomain) GetFlood

func (m *BridgeDomain) GetFlood() bool

func (*BridgeDomain) GetForward

func (m *BridgeDomain) GetForward() bool

func (*BridgeDomain) GetInterfaces

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

func (*BridgeDomain) GetLearn

func (m *BridgeDomain) GetLearn() bool

func (*BridgeDomain) GetMacAge

func (m *BridgeDomain) GetMacAge() uint32

func (*BridgeDomain) GetName

func (m *BridgeDomain) GetName() string

func (*BridgeDomain) GetUnknownUnicastFlood

func (m *BridgeDomain) GetUnknownUnicastFlood() bool

func (*BridgeDomain) ProtoMessage

func (*BridgeDomain) ProtoMessage()

func (*BridgeDomain) Reset

func (m *BridgeDomain) Reset()

func (*BridgeDomain) String

func (m *BridgeDomain) String() string

func (*BridgeDomain) XXX_DiscardUnknown

func (m *BridgeDomain) XXX_DiscardUnknown()

func (*BridgeDomain) XXX_Marshal

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

func (*BridgeDomain) XXX_Merge

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

func (*BridgeDomain) XXX_MessageName

func (*BridgeDomain) XXX_MessageName() string

func (*BridgeDomain) XXX_Size

func (m *BridgeDomain) XXX_Size() int

func (*BridgeDomain) XXX_Unmarshal

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

type BridgeDomain_ArpTerminationEntry

type BridgeDomain_ArpTerminationEntry struct {
	IpAddress            string   `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	PhysAddress          string   `protobuf:"bytes,2,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BridgeDomain_ArpTerminationEntry) Descriptor

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

func (*BridgeDomain_ArpTerminationEntry) GetIpAddress

func (m *BridgeDomain_ArpTerminationEntry) GetIpAddress() string

func (*BridgeDomain_ArpTerminationEntry) GetPhysAddress

func (m *BridgeDomain_ArpTerminationEntry) GetPhysAddress() string

func (*BridgeDomain_ArpTerminationEntry) ProtoMessage

func (*BridgeDomain_ArpTerminationEntry) ProtoMessage()

func (*BridgeDomain_ArpTerminationEntry) Reset

func (*BridgeDomain_ArpTerminationEntry) String

func (*BridgeDomain_ArpTerminationEntry) XXX_DiscardUnknown

func (m *BridgeDomain_ArpTerminationEntry) XXX_DiscardUnknown()

func (*BridgeDomain_ArpTerminationEntry) XXX_Marshal

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

func (*BridgeDomain_ArpTerminationEntry) XXX_Merge

func (*BridgeDomain_ArpTerminationEntry) XXX_MessageName

func (*BridgeDomain_ArpTerminationEntry) XXX_MessageName() string

func (*BridgeDomain_ArpTerminationEntry) XXX_Size

func (m *BridgeDomain_ArpTerminationEntry) XXX_Size() int

func (*BridgeDomain_ArpTerminationEntry) XXX_Unmarshal

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

type BridgeDomain_Interface

type BridgeDomain_Interface struct {
	Name                    string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	BridgedVirtualInterface bool     `` /* 133-byte string literal not displayed */
	SplitHorizonGroup       uint32   `protobuf:"varint,3,opt,name=split_horizon_group,json=splitHorizonGroup,proto3" json:"split_horizon_group,omitempty"`
	XXX_NoUnkeyedLiteral    struct{} `json:"-"`
	XXX_unrecognized        []byte   `json:"-"`
	XXX_sizecache           int32    `json:"-"`
}

func (*BridgeDomain_Interface) Descriptor

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

func (*BridgeDomain_Interface) GetBridgedVirtualInterface

func (m *BridgeDomain_Interface) GetBridgedVirtualInterface() bool

func (*BridgeDomain_Interface) GetName

func (m *BridgeDomain_Interface) GetName() string

func (*BridgeDomain_Interface) GetSplitHorizonGroup

func (m *BridgeDomain_Interface) GetSplitHorizonGroup() uint32

func (*BridgeDomain_Interface) ProtoMessage

func (*BridgeDomain_Interface) ProtoMessage()

func (*BridgeDomain_Interface) Reset

func (m *BridgeDomain_Interface) Reset()

func (*BridgeDomain_Interface) String

func (m *BridgeDomain_Interface) String() string

func (*BridgeDomain_Interface) XXX_DiscardUnknown

func (m *BridgeDomain_Interface) XXX_DiscardUnknown()

func (*BridgeDomain_Interface) XXX_Marshal

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

func (*BridgeDomain_Interface) XXX_Merge

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

func (*BridgeDomain_Interface) XXX_MessageName

func (*BridgeDomain_Interface) XXX_MessageName() string

func (*BridgeDomain_Interface) XXX_Size

func (m *BridgeDomain_Interface) XXX_Size() int

func (*BridgeDomain_Interface) XXX_Unmarshal

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

type FIBEntry

type FIBEntry struct {
	PhysAddress             string          `protobuf:"bytes,1,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"`
	BridgeDomain            string          `protobuf:"bytes,2,opt,name=bridge_domain,json=bridgeDomain,proto3" json:"bridge_domain,omitempty"`
	Action                  FIBEntry_Action `protobuf:"varint,3,opt,name=action,proto3,enum=vpp.l2.FIBEntry_Action" json:"action,omitempty"`
	OutgoingInterface       string          `protobuf:"bytes,4,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"`
	StaticConfig            bool            `protobuf:"varint,5,opt,name=static_config,json=staticConfig,proto3" json:"static_config,omitempty"`
	BridgedVirtualInterface bool            `` /* 133-byte string literal not displayed */
	XXX_NoUnkeyedLiteral    struct{}        `json:"-"`
	XXX_unrecognized        []byte          `json:"-"`
	XXX_sizecache           int32           `json:"-"`
}

func (*FIBEntry) Descriptor

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

func (*FIBEntry) GetAction

func (m *FIBEntry) GetAction() FIBEntry_Action

func (*FIBEntry) GetBridgeDomain

func (m *FIBEntry) GetBridgeDomain() string

func (*FIBEntry) GetBridgedVirtualInterface

func (m *FIBEntry) GetBridgedVirtualInterface() bool

func (*FIBEntry) GetOutgoingInterface

func (m *FIBEntry) GetOutgoingInterface() string

func (*FIBEntry) GetPhysAddress

func (m *FIBEntry) GetPhysAddress() string

func (*FIBEntry) GetStaticConfig

func (m *FIBEntry) GetStaticConfig() bool

func (*FIBEntry) ProtoMessage

func (*FIBEntry) ProtoMessage()

func (*FIBEntry) Reset

func (m *FIBEntry) Reset()

func (*FIBEntry) String

func (m *FIBEntry) String() string

func (*FIBEntry) XXX_DiscardUnknown

func (m *FIBEntry) XXX_DiscardUnknown()

func (*FIBEntry) XXX_Marshal

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

func (*FIBEntry) XXX_Merge

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

func (*FIBEntry) XXX_MessageName

func (*FIBEntry) XXX_MessageName() string

func (*FIBEntry) XXX_Size

func (m *FIBEntry) XXX_Size() int

func (*FIBEntry) XXX_Unmarshal

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

type FIBEntry_Action

type FIBEntry_Action int32
const (
	FIBEntry_FORWARD FIBEntry_Action = 0
	FIBEntry_DROP    FIBEntry_Action = 1
)

func (FIBEntry_Action) EnumDescriptor

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

func (FIBEntry_Action) String

func (x FIBEntry_Action) String() string

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

func (*XConnectPair) Descriptor

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

func (*XConnectPair) GetReceiveInterface

func (m *XConnectPair) GetReceiveInterface() string

func (*XConnectPair) GetTransmitInterface

func (m *XConnectPair) GetTransmitInterface() string

func (*XConnectPair) ProtoMessage

func (*XConnectPair) ProtoMessage()

func (*XConnectPair) Reset

func (m *XConnectPair) Reset()

func (*XConnectPair) String

func (m *XConnectPair) String() string

func (*XConnectPair) XXX_DiscardUnknown

func (m *XConnectPair) XXX_DiscardUnknown()

func (*XConnectPair) XXX_Marshal

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

func (*XConnectPair) XXX_Merge

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

func (*XConnectPair) XXX_MessageName

func (*XConnectPair) XXX_MessageName() string

func (*XConnectPair) XXX_Size

func (m *XConnectPair) XXX_Size() int

func (*XConnectPair) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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