Documentation ¶
Overview ¶
Package l2tst provides tools and input data for unit testing of the l2plugin. What remains to be defined are scenarios.
Index ¶
- Variables
- func FIBBuilder(mac string, bdName string, iface string, bvi bool) l2.FibTable_FibEntry
- func SimpleBridgeDomain1XIfaceBuilder(name string, iface1 string, bvi1 bool) l2.BridgeDomains_BridgeDomain
- func SimpleBridgeDomain2XIfaceBuilder(name string, iface1 string, iface2 string, bvi1 bool, bvi2 bool) l2.BridgeDomains_BridgeDomain
- func XconnectBuilder(rIface string, tIface string) l2.XConnectPairs_XConnectPair
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BDMemif100011ToMemif100012 is an example bridge domain configuration. BDMemif100011ToMemif100012 = l2.BridgeDomains_BridgeDomain{ Name: "br2", Flood: false, UnknownUnicastFlood: false, Forward: true, Learn: true, ArpTermination: false, MacAge: 0, Interfaces: []*l2.BridgeDomains_BridgeDomain_Interfaces{ { Name: "memif1", BridgedVirtualInterface: true, }, { Name: "memif4", BridgedVirtualInterface: false, }, }, } // BDAfPacketVeth1VxlanVni5 is an example bridge domain configuration. BDAfPacketVeth1VxlanVni5 = l2.BridgeDomains_BridgeDomain{ Name: "br1", Flood: false, UnknownUnicastFlood: false, Forward: true, Learn: true, ArpTermination: false, MacAge: 0, Interfaces: []*l2.BridgeDomains_BridgeDomain_Interfaces{ { Name: iftst.VxlanVni5.Name, BridgedVirtualInterface: false, }, { Name: iftst.AfPacketVeth1.Name, BridgedVirtualInterface: false, }, }, } // XConMemif100011ToMemif100012 is an example of cross connect configuration. XConMemif100011ToMemif100012 = l2.XConnectPairs_XConnectPair{ ReceiveInterface: iftst.Memif100011Master.Name, TransmitInterface: iftst.Memif100011Master.Name, } )
Functions ¶
func FIBBuilder ¶
FIBBuilder builds FIB table entry.
func SimpleBridgeDomain1XIfaceBuilder ¶
func SimpleBridgeDomain1XIfaceBuilder(name string, iface1 string, bvi1 bool) l2.BridgeDomains_BridgeDomain
SimpleBridgeDomain1XIfaceBuilder creates a simple bridge domain with defined name and one interface.
func SimpleBridgeDomain2XIfaceBuilder ¶
func SimpleBridgeDomain2XIfaceBuilder(name string, iface1 string, iface2 string, bvi1 bool, bvi2 bool) l2.BridgeDomains_BridgeDomain
SimpleBridgeDomain2XIfaceBuilder creates a simple bridge domain with defined name and two interfaces.
func XconnectBuilder ¶
func XconnectBuilder(rIface string, tIface string) l2.XConnectPairs_XConnectPair
XconnectBuilder prepares xConnect interface pair.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.