Revision 54932125 mininet/test/test_nets.py
mininet/test/test_nets.py | ||
---|---|---|
4 | 4 |
Test creation and all-pairs ping for each included mininet topo type.""" |
5 | 5 |
|
6 | 6 |
import unittest |
7 |
from functools import partial |
|
7 | 8 |
|
8 | 9 |
from mininet.net import Mininet |
9 | 10 |
from mininet.node import Host, Controller |
10 |
from mininet.node import UserSwitch, OVSKernelSwitch, IVSSwitch
|
|
11 |
from mininet.node import UserSwitch, OVSSwitch, IVSSwitch |
|
11 | 12 |
from mininet.topo import SingleSwitchTopo, LinearTopo |
12 | 13 |
from mininet.log import setLogLevel |
13 | 14 |
from mininet.util import quietRun |
... | ... | |
32 | 33 |
|
33 | 34 |
class testSingleSwitchOVSKernel( testSingleSwitchCommon, unittest.TestCase ): |
34 | 35 |
"Test ping with single switch topology (OVS kernel switch)." |
35 |
switchClass = OVSKernelSwitch
|
|
36 |
switchClass = OVSSwitch |
|
36 | 37 |
|
38 |
class testSingleSwitchOVSUser( testSingleSwitchCommon, unittest.TestCase ): |
|
39 |
"Test ping with single switch topology (OVS user switch)." |
|
40 |
switchClass = partial( OVSSwitch, datapath='user' ) |
|
37 | 41 |
|
38 | 42 |
@unittest.skipUnless( quietRun( 'which ivs-ctl' ), 'IVS is not installed' ) |
39 | 43 |
class testSingleSwitchIVS( testSingleSwitchCommon, unittest.TestCase ): |
... | ... | |
61 | 65 |
|
62 | 66 |
class testLinearOVSKernel( testLinearCommon, unittest.TestCase ): |
63 | 67 |
"Test all-pairs ping with LinearNet (OVS kernel switch)." |
64 |
switchClass = OVSKernelSwitch |
|
68 |
switchClass = OVSSwitch |
|
69 |
|
|
70 |
class testLinearOVSUser( testLinearCommon, unittest.TestCase ): |
|
71 |
"Test all-pairs ping with LinearNet (OVS user switch)." |
|
72 |
switchClass = partial( OVSSwitch, datapath='user' ) |
|
65 | 73 |
|
66 | 74 |
@unittest.skipUnless( quietRun( 'which ivs-ctl' ), 'IVS is not installed' ) |
67 | 75 |
class testLinearIVS( testLinearCommon, unittest.TestCase ): |
Also available in: Unified diff