l2tst

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package l2tst provides tools and input data for unit testing of the l2plugin. What remains to be defined are scenarios.

Index

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

func FIBBuilder(mac string, bdName string, iface string, bvi bool) l2.FibTable_FibEntry

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.

Jump to

Keyboard shortcuts

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