Documentation ¶
Overview ¶
Package onoslite contains implementation of a ultra-light controller that simulates ONOS interactions with the network environment
Package onoslite contains implementation of a ultra-light controller that simulates ONOS interactions with the network environment
Index ¶
- func RunLiteONOSWithTopology(t *testing.T, topologyPath string, deviceCount int, linkCount int, ...)
- type Device
- type DevicePointer
- type Host
- type Link
- type LiteONOS
- type Port
- type TestSuite
- func (s *TestSuite) SetupTestSuite(c *input.Context) error
- func (s *TestSuite) TestLiteONOSWithAccessFabric(t *testing.T)
- func (s *TestSuite) TestLiteONOSWithFixedFabric(t *testing.T)
- func (s *TestSuite) TestLiteONOSWithMaxTopo(t *testing.T)
- func (s *TestSuite) TestLiteONOSWithPlainLargeFabric(t *testing.T)
- func (s *TestSuite) TestLiteONOSWithPlainMaxFabric(t *testing.T)
- func (s *TestSuite) TestLiteONOSWithPlainMidFabric(t *testing.T)
- func (s *TestSuite) TestLiteONOSWithPodFabric(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunLiteONOSWithTopology ¶
func RunLiteONOSWithTopology(t *testing.T, topologyPath string, deviceCount int, linkCount int, hostCount int, portsPerDevice basic.DevicePortCount, nicsPerHost basic.HostNICCount, delay time.Duration)
RunLiteONOSWithTopology loads simulator with the specified topology, creates lite ONOS controller and points it at the simulated topology validating that the network environment gets properly discovered.
Types ¶
type Device ¶
type Device struct { ID string Pointer *DevicePointer Ports map[string]*Port // contains filtered or unexported fields }
Device is a simple representation of a device discovered and controlled by the ONOS lite
type DevicePointer ¶
DevicePointer is a structure holding information required to prime device discovery
type LiteONOS ¶
type LiteONOS struct { DevicePointers []*DevicePointer Devices map[string]*Device Links map[string]*Link Hosts map[string]*Host // contains filtered or unexported fields }
LiteONOS is an ultra-light controller to test fabric-sim
func (*LiteONOS) Start ¶
func (o *LiteONOS) Start(pointers []*DevicePointer) error
Start starts the controller and primes its device discovery with the specified list of device pointers
type TestSuite ¶
type TestSuite struct {
// contains filtered or unexported fields
}
TestSuite is the basic test suite
func (*TestSuite) SetupTestSuite ¶
SetupTestSuite sets up the fabric simulator basic test suite
func (*TestSuite) TestLiteONOSWithAccessFabric ¶
TestLiteONOSWithAccessFabric tests access fabric with ONOS lite
func (*TestSuite) TestLiteONOSWithFixedFabric ¶
TestLiteONOSWithFixedFabric tests fixed fabric with ONOS lite
func (*TestSuite) TestLiteONOSWithMaxTopo ¶
TestLiteONOSWithMaxTopo tests max topo with ONOS lite
func (*TestSuite) TestLiteONOSWithPlainLargeFabric ¶
TestLiteONOSWithPlainLargeFabric tests mid fabric with ONOS lite
func (*TestSuite) TestLiteONOSWithPlainMaxFabric ¶
TestLiteONOSWithPlainMaxFabric tests max fabric with ONOS lite
func (*TestSuite) TestLiteONOSWithPlainMidFabric ¶
TestLiteONOSWithPlainMidFabric tests mid fabric with ONOS lite
func (*TestSuite) TestLiteONOSWithPodFabric ¶
TestLiteONOSWithPodFabric tests pod fabric with ONOS lite