Documentation ¶
Overview ¶
Package l2 is a generated protocol buffer package.
It is generated from these files:
l2.proto
It has these top-level messages:
BridgeDomains FibTableEntries XConnectPairs BridgeDomainState BridgeDomainErrors
Index ¶
- Constants
- Variables
- func BridgeDomainErrorKey(bdLabel string) string
- func BridgeDomainErrorPrefix() string
- func BridgeDomainKey(bdName string) string
- func BridgeDomainKeyPrefix() string
- func BridgeDomainStateKey(ifaceLabel string) string
- func BridgeDomainStateKeyPrefix() string
- func FibKey(bdLabel string, fibMac string) string
- func FibKeyPrefix() string
- func ParseBDNameFromKey(key string) (name string, err error)
- func ParseFibKey(key string) (isFibKey bool, bdName string, fibMac string)
- func XConnectKey(rxIface string) string
- func XConnectKeyPrefix() string
- type BridgeDomainErrors
- type BridgeDomainErrors_BridgeDomain
- type BridgeDomainErrors_BridgeDomain_ErrorData
- type BridgeDomainState
- type BridgeDomainState_BridgeDomain
- func (m *BridgeDomainState_BridgeDomain) GetInterfaces() []*BridgeDomainState_BridgeDomain_Interfaces
- func (m *BridgeDomainState_BridgeDomain) GetL2Params() *BridgeDomainState_BridgeDomain_L2Params
- func (*BridgeDomainState_BridgeDomain) ProtoMessage()
- func (m *BridgeDomainState_BridgeDomain) Reset()
- func (m *BridgeDomainState_BridgeDomain) String() string
- type BridgeDomainState_BridgeDomain_Interfaces
- type BridgeDomainState_BridgeDomain_L2Params
- type BridgeDomains
- type BridgeDomains_BridgeDomain
- func (m *BridgeDomains_BridgeDomain) GetArpTerminationTable() []*BridgeDomains_BridgeDomain_ArpTerminationTable
- func (m *BridgeDomains_BridgeDomain) GetInterfaces() []*BridgeDomains_BridgeDomain_Interfaces
- func (*BridgeDomains_BridgeDomain) ProtoMessage()
- func (m *BridgeDomains_BridgeDomain) Reset()
- func (m *BridgeDomains_BridgeDomain) String() string
- type BridgeDomains_BridgeDomain_ArpTerminationTable
- type BridgeDomains_BridgeDomain_Interfaces
- type FibTableEntries
- type FibTableEntries_FibTableEntry
- type FibTableEntries_FibTableEntry_Action
- type XConnectPairs
- type XConnectPairs_XConnectPair
Constants ¶
const ( // BdPrefix is the relative key prefix for bridge domains BdPrefix = "vpp/config/v1/bd/" // BdStatePrefix is the relative key prefix for bridge domain state BdStatePrefix = "vpp/status/v1/bd/" // BdErrPrefix is the relative key prefix for the bridge domain error BdErrPrefix = "vpp/status/v1/bd/error/" // FIBPrefix is the relative key prefix for FIB table entries. FIBPrefix = "vpp/config/v1/bd/{bd}/fib/" // XconnectPrefix is the relative key prefix for xconnects. XconnectPrefix = "vpp/config/v1/xconnect/" )
Prefixes
Variables ¶
var FibTableEntries_FibTableEntry_Action_name = map[int32]string{
0: "FORWARD",
1: "DROP",
}
var FibTableEntries_FibTableEntry_Action_value = map[string]int32{
"FORWARD": 0,
"DROP": 1,
}
Functions ¶
func BridgeDomainErrorKey ¶
BridgeDomainErrorKey returns the key used in ETCD to store bridge domain errors
func BridgeDomainErrorPrefix ¶
func BridgeDomainErrorPrefix() string
BridgeDomainErrorPrefix returns the prefix used in ETCD to store bridge domain errors
func BridgeDomainKey ¶
BridgeDomainKey returns the prefix used in ETCD to store vpp bridge domain config of particular bridge domain in selected vpp instance
func BridgeDomainKeyPrefix ¶
func BridgeDomainKeyPrefix() string
BridgeDomainKeyPrefix returns the prefix used in ETCD to store vpp bridge domain config
func BridgeDomainStateKey ¶
BridgeDomainStateKey returns the prefix used in ETCD to store vpp bridge domain state data of particular bridge domain in selected vpp instance
func BridgeDomainStateKeyPrefix ¶
func BridgeDomainStateKeyPrefix() string
BridgeDomainStateKeyPrefix returns the prefix used in ETCD to store vpp bridge domain state data
func FibKey ¶
FibKey returns the prefix used in ETCD to store vpp fib table entry config of particular fib in selected vpp instance
func FibKeyPrefix ¶
func FibKeyPrefix() string
FibKeyPrefix returns the prefix used in ETCD to store vpp fib table entry config
func ParseBDNameFromKey ¶
ParseBDNameFromKey returns suffix of the ky
func ParseFibKey ¶
ParseFibKey parses bridge domain label and FIB MAC address from a FIB key.
func XConnectKey ¶
XConnectKey returns the prefix used in ETCD to store vpp xConnect pair config of particular xConnect pair in selected vpp instance
func XConnectKeyPrefix ¶
func XConnectKeyPrefix() string
XConnectKeyPrefix returns the prefix used in ETCD to store vpp xConnect pair config
Types ¶
type BridgeDomainErrors ¶
type BridgeDomainErrors struct {
BridgeDomain []*BridgeDomainErrors_BridgeDomain `protobuf:"bytes,1,rep,name=bridge_domain" json:"bridge_domain,omitempty"`
}
func (*BridgeDomainErrors) GetBridgeDomain ¶
func (m *BridgeDomainErrors) GetBridgeDomain() []*BridgeDomainErrors_BridgeDomain
func (*BridgeDomainErrors) ProtoMessage ¶
func (*BridgeDomainErrors) ProtoMessage()
func (*BridgeDomainErrors) Reset ¶
func (m *BridgeDomainErrors) Reset()
func (*BridgeDomainErrors) String ¶
func (m *BridgeDomainErrors) String() string
type BridgeDomainErrors_BridgeDomain ¶
type BridgeDomainErrors_BridgeDomain struct { BdName string `protobuf:"bytes,1,opt,name=bd_name,proto3" json:"bd_name,omitempty"` ErrorData []*BridgeDomainErrors_BridgeDomain_ErrorData `protobuf:"bytes,2,rep,name=error_data" json:"error_data,omitempty"` }
func (*BridgeDomainErrors_BridgeDomain) GetErrorData ¶
func (m *BridgeDomainErrors_BridgeDomain) GetErrorData() []*BridgeDomainErrors_BridgeDomain_ErrorData
func (*BridgeDomainErrors_BridgeDomain) ProtoMessage ¶
func (*BridgeDomainErrors_BridgeDomain) ProtoMessage()
func (*BridgeDomainErrors_BridgeDomain) Reset ¶
func (m *BridgeDomainErrors_BridgeDomain) Reset()
func (*BridgeDomainErrors_BridgeDomain) String ¶
func (m *BridgeDomainErrors_BridgeDomain) String() string
type BridgeDomainErrors_BridgeDomain_ErrorData ¶
type BridgeDomainErrors_BridgeDomain_ErrorData struct { ChangeType string `protobuf:"bytes,2,opt,name=change_type,proto3" json:"change_type,omitempty"` ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,proto3" json:"error_message,omitempty"` LastChange int64 `protobuf:"varint,4,opt,name=last_change,proto3" json:"last_change,omitempty"` }
func (*BridgeDomainErrors_BridgeDomain_ErrorData) ProtoMessage ¶
func (*BridgeDomainErrors_BridgeDomain_ErrorData) ProtoMessage()
func (*BridgeDomainErrors_BridgeDomain_ErrorData) Reset ¶
func (m *BridgeDomainErrors_BridgeDomain_ErrorData) Reset()
func (*BridgeDomainErrors_BridgeDomain_ErrorData) String ¶
func (m *BridgeDomainErrors_BridgeDomain_ErrorData) String() string
type BridgeDomainState ¶
type BridgeDomainState struct {
BridgeDomains []*BridgeDomainState_BridgeDomain `protobuf:"bytes,100,rep,name=bridge_domains" json:"bridge_domains,omitempty"`
}
func (*BridgeDomainState) GetBridgeDomains ¶
func (m *BridgeDomainState) GetBridgeDomains() []*BridgeDomainState_BridgeDomain
func (*BridgeDomainState) ProtoMessage ¶
func (*BridgeDomainState) ProtoMessage()
func (*BridgeDomainState) Reset ¶
func (m *BridgeDomainState) Reset()
func (*BridgeDomainState) String ¶
func (m *BridgeDomainState) String() string
type BridgeDomainState_BridgeDomain ¶
type BridgeDomainState_BridgeDomain struct { Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` InternalName string `protobuf:"bytes,2,opt,name=internal_name,proto3" json:"internal_name,omitempty"` BviInterface string `protobuf:"bytes,3,opt,name=bvi_interface,proto3" json:"bvi_interface,omitempty"` BviInterfaceIndex uint32 `protobuf:"varint,4,opt,name=bvi_interface_index,proto3" json:"bvi_interface_index,omitempty"` InterfaceCount uint32 `protobuf:"varint,5,opt,name=interface_count,proto3" json:"interface_count,omitempty"` LastChange int64 `protobuf:"varint,6,opt,name=last_change,proto3" json:"last_change,omitempty"` L2Params *BridgeDomainState_BridgeDomain_L2Params `protobuf:"bytes,100,opt,name=l2_params" json:"l2_params,omitempty"` Interfaces []*BridgeDomainState_BridgeDomain_Interfaces `protobuf:"bytes,101,rep,name=interfaces" json:"interfaces,omitempty"` }
func (*BridgeDomainState_BridgeDomain) GetInterfaces ¶
func (m *BridgeDomainState_BridgeDomain) GetInterfaces() []*BridgeDomainState_BridgeDomain_Interfaces
func (*BridgeDomainState_BridgeDomain) GetL2Params ¶
func (m *BridgeDomainState_BridgeDomain) GetL2Params() *BridgeDomainState_BridgeDomain_L2Params
func (*BridgeDomainState_BridgeDomain) ProtoMessage ¶
func (*BridgeDomainState_BridgeDomain) ProtoMessage()
func (*BridgeDomainState_BridgeDomain) Reset ¶
func (m *BridgeDomainState_BridgeDomain) Reset()
func (*BridgeDomainState_BridgeDomain) String ¶
func (m *BridgeDomainState_BridgeDomain) String() string
type BridgeDomainState_BridgeDomain_Interfaces ¶
type BridgeDomainState_BridgeDomain_Interfaces struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` SwIfIndex uint32 `protobuf:"varint,2,opt,name=sw_if_index,proto3" json:"sw_if_index,omitempty"` SplitHorizonGroup uint32 `protobuf:"varint,3,opt,name=split_horizon_group,proto3" json:"split_horizon_group,omitempty"` }
func (*BridgeDomainState_BridgeDomain_Interfaces) ProtoMessage ¶
func (*BridgeDomainState_BridgeDomain_Interfaces) ProtoMessage()
func (*BridgeDomainState_BridgeDomain_Interfaces) Reset ¶
func (m *BridgeDomainState_BridgeDomain_Interfaces) Reset()
func (*BridgeDomainState_BridgeDomain_Interfaces) String ¶
func (m *BridgeDomainState_BridgeDomain_Interfaces) String() string
type BridgeDomainState_BridgeDomain_L2Params ¶
type BridgeDomainState_BridgeDomain_L2Params struct { Flood bool `protobuf:"varint,1,opt,name=flood,proto3" json:"flood,omitempty"` UnknownUnicastFlood bool `protobuf:"varint,2,opt,name=unknown_unicast_flood,proto3" json:"unknown_unicast_flood,omitempty"` Forward bool `protobuf:"varint,3,opt,name=forward,proto3" json:"forward,omitempty"` Learn bool `protobuf:"varint,4,opt,name=learn,proto3" json:"learn,omitempty"` ArpTermination bool `protobuf:"varint,5,opt,name=arp_termination,proto3" json:"arp_termination,omitempty"` MacAge uint32 `protobuf:"varint,6,opt,name=mac_age,proto3" json:"mac_age,omitempty"` }
func (*BridgeDomainState_BridgeDomain_L2Params) ProtoMessage ¶
func (*BridgeDomainState_BridgeDomain_L2Params) ProtoMessage()
func (*BridgeDomainState_BridgeDomain_L2Params) Reset ¶
func (m *BridgeDomainState_BridgeDomain_L2Params) Reset()
func (*BridgeDomainState_BridgeDomain_L2Params) String ¶
func (m *BridgeDomainState_BridgeDomain_L2Params) String() string
type BridgeDomains ¶
type BridgeDomains struct {
BridgeDomains []*BridgeDomains_BridgeDomain `protobuf:"bytes,1,rep,name=bridge_domains" json:"bridge_domains,omitempty"`
}
func (*BridgeDomains) GetBridgeDomains ¶
func (m *BridgeDomains) GetBridgeDomains() []*BridgeDomains_BridgeDomain
func (*BridgeDomains) ProtoMessage ¶
func (*BridgeDomains) ProtoMessage()
func (*BridgeDomains) Reset ¶
func (m *BridgeDomains) Reset()
func (*BridgeDomains) String ¶
func (m *BridgeDomains) String() string
type BridgeDomains_BridgeDomain ¶
type BridgeDomains_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,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,proto3" json:"arp_termination,omitempty"` MacAge uint32 `protobuf:"varint,7,opt,name=mac_age,proto3" json:"mac_age,omitempty"` Interfaces []*BridgeDomains_BridgeDomain_Interfaces `protobuf:"bytes,100,rep,name=interfaces" json:"interfaces,omitempty"` ArpTerminationTable []*BridgeDomains_BridgeDomain_ArpTerminationTable `protobuf:"bytes,102,rep,name=arp_termination_table" json:"arp_termination_table,omitempty"` }
func (*BridgeDomains_BridgeDomain) GetArpTerminationTable ¶
func (m *BridgeDomains_BridgeDomain) GetArpTerminationTable() []*BridgeDomains_BridgeDomain_ArpTerminationTable
func (*BridgeDomains_BridgeDomain) GetInterfaces ¶
func (m *BridgeDomains_BridgeDomain) GetInterfaces() []*BridgeDomains_BridgeDomain_Interfaces
func (*BridgeDomains_BridgeDomain) ProtoMessage ¶
func (*BridgeDomains_BridgeDomain) ProtoMessage()
func (*BridgeDomains_BridgeDomain) Reset ¶
func (m *BridgeDomains_BridgeDomain) Reset()
func (*BridgeDomains_BridgeDomain) String ¶
func (m *BridgeDomains_BridgeDomain) String() string
type BridgeDomains_BridgeDomain_ArpTerminationTable ¶
type BridgeDomains_BridgeDomain_ArpTerminationTable struct { IpAddress string `protobuf:"bytes,1,opt,name=ip_address,proto3" json:"ip_address,omitempty"` PhysAddress string `protobuf:"bytes,2,opt,name=phys_address,proto3" json:"phys_address,omitempty"` }
func (*BridgeDomains_BridgeDomain_ArpTerminationTable) ProtoMessage ¶
func (*BridgeDomains_BridgeDomain_ArpTerminationTable) ProtoMessage()
func (*BridgeDomains_BridgeDomain_ArpTerminationTable) Reset ¶
func (m *BridgeDomains_BridgeDomain_ArpTerminationTable) Reset()
func (*BridgeDomains_BridgeDomain_ArpTerminationTable) String ¶
func (m *BridgeDomains_BridgeDomain_ArpTerminationTable) String() string
type BridgeDomains_BridgeDomain_Interfaces ¶
type BridgeDomains_BridgeDomain_Interfaces struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` BridgedVirtualInterface bool `protobuf:"varint,2,opt,name=bridged_virtual_interface,proto3" json:"bridged_virtual_interface,omitempty"` SplitHorizonGroup uint32 `protobuf:"varint,3,opt,name=split_horizon_group,proto3" json:"split_horizon_group,omitempty"` }
func (*BridgeDomains_BridgeDomain_Interfaces) ProtoMessage ¶
func (*BridgeDomains_BridgeDomain_Interfaces) ProtoMessage()
func (*BridgeDomains_BridgeDomain_Interfaces) Reset ¶
func (m *BridgeDomains_BridgeDomain_Interfaces) Reset()
func (*BridgeDomains_BridgeDomain_Interfaces) String ¶
func (m *BridgeDomains_BridgeDomain_Interfaces) String() string
type FibTableEntries ¶
type FibTableEntries struct {
FibTableEntry []*FibTableEntries_FibTableEntry `protobuf:"bytes,100,rep,name=fib_table_entry" json:"fib_table_entry,omitempty"`
}
func (*FibTableEntries) GetFibTableEntry ¶
func (m *FibTableEntries) GetFibTableEntry() []*FibTableEntries_FibTableEntry
func (*FibTableEntries) ProtoMessage ¶
func (*FibTableEntries) ProtoMessage()
func (*FibTableEntries) Reset ¶
func (m *FibTableEntries) Reset()
func (*FibTableEntries) String ¶
func (m *FibTableEntries) String() string
type FibTableEntries_FibTableEntry ¶
type FibTableEntries_FibTableEntry struct { PhysAddress string `protobuf:"bytes,1,opt,name=phys_address,proto3" json:"phys_address,omitempty"` BridgeDomain string `protobuf:"bytes,2,opt,name=bridge_domain,proto3" json:"bridge_domain,omitempty"` Action FibTableEntries_FibTableEntry_Action `protobuf:"varint,3,opt,name=action,proto3,enum=l2.FibTableEntries_FibTableEntry_Action" json:"action,omitempty"` OutgoingInterface string `protobuf:"bytes,4,opt,name=outgoing_interface,proto3" json:"outgoing_interface,omitempty"` StaticConfig bool `protobuf:"varint,5,opt,name=static_config,proto3" json:"static_config,omitempty"` BridgedVirtualInterface bool `protobuf:"varint,6,opt,name=bridged_virtual_interface,proto3" json:"bridged_virtual_interface,omitempty"` }
func (*FibTableEntries_FibTableEntry) ProtoMessage ¶
func (*FibTableEntries_FibTableEntry) ProtoMessage()
func (*FibTableEntries_FibTableEntry) Reset ¶
func (m *FibTableEntries_FibTableEntry) Reset()
func (*FibTableEntries_FibTableEntry) String ¶
func (m *FibTableEntries_FibTableEntry) String() string
type FibTableEntries_FibTableEntry_Action ¶
type FibTableEntries_FibTableEntry_Action int32
const ( FibTableEntries_FibTableEntry_FORWARD FibTableEntries_FibTableEntry_Action = 0 FibTableEntries_FibTableEntry_DROP FibTableEntries_FibTableEntry_Action = 1 )
func (FibTableEntries_FibTableEntry_Action) String ¶
func (x FibTableEntries_FibTableEntry_Action) String() string
type XConnectPairs ¶
type XConnectPairs struct {
XConnectPairs []*XConnectPairs_XConnectPair `protobuf:"bytes,100,rep,name=x_connect_pairs" json:"x_connect_pairs,omitempty"`
}
func (*XConnectPairs) GetXConnectPairs ¶
func (m *XConnectPairs) GetXConnectPairs() []*XConnectPairs_XConnectPair
func (*XConnectPairs) ProtoMessage ¶
func (*XConnectPairs) ProtoMessage()
func (*XConnectPairs) Reset ¶
func (m *XConnectPairs) Reset()
func (*XConnectPairs) String ¶
func (m *XConnectPairs) String() string
type XConnectPairs_XConnectPair ¶
type XConnectPairs_XConnectPair struct { ReceiveInterface string `protobuf:"bytes,2,opt,name=receive_interface,proto3" json:"receive_interface,omitempty"` TransmitInterface string `protobuf:"bytes,3,opt,name=transmit_interface,proto3" json:"transmit_interface,omitempty"` }
func (*XConnectPairs_XConnectPair) ProtoMessage ¶
func (*XConnectPairs_XConnectPair) ProtoMessage()
func (*XConnectPairs_XConnectPair) Reset ¶
func (m *XConnectPairs_XConnectPair) Reset()
func (*XConnectPairs_XConnectPair) String ¶
func (m *XConnectPairs_XConnectPair) String() string