from functools import partial
+pytestmark = [pytest.mark.isisd, pytest.mark.ospfd, pytest.mark.ripd]
+
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from lib import topotest
#####################################################
-@pytest.mark.isis
-@pytest.mark.ospf
-@pytest.mark.rip
def setup_module(module):
global topo, net
global fatal_error
# Required to instantiate the topology builder class.
from mininet.topo import Topo
+pytestmark = [pytest.mark.bfdd]
class BFDTopo(Topo):
"Test topology builder"
switch.add_link(tgen.gears["r2"])
switch.add_link(tgen.gears["r3"])
-@pytest.mark.bfd
def setup_module(mod):
"Sets up the pytest environment"
tgen = Topogen(BFDTopo, mod.__name__)
# Required to instantiate the topology builder class.
from mininet.topo import Topo
+pytestmark = [pytest.mark.bfdd, pytest.mark.isisd]
class TemplateTopo(Topo):
"Test topology builder"
switch.add_link(tgen.gears["rt4"], nodeif="eth-rt5")
switch.add_link(tgen.gears["rt5"], nodeif="eth-rt4")
-@pytest.mark.bfd
-@pytest.mark.isis
+
def setup_module(mod):
"Sets up the pytest environment"
tgen = Topogen(TemplateTopo, mod.__name__)
# Required to instantiate the topology builder class.
from mininet.topo import Topo
+pytestmark = [pytest.mark.bfdd, pytest.mark.isisd]
class BFDProfTopo(Topo):
"Test topology builder"
switch.add_link(tgen.gears["r1"])
switch.add_link(tgen.gears["r6"])
-@pytest.mark.bfd
-@pytest.mark.isis
+
def setup_module(mod):
"Sets up the pytest environment"
tgen = Topogen(BFDProfTopo, mod.__name__)
# Required to instantiate the topology builder class.
from mininet.topo import Topo
+pytestmark = [pytest.mark.bfdd]
class BFDTopo(Topo):
"Test topology builder"
switch.add_link(tgen.gears["r2"])
switch.add_link(tgen.gears["r4"])
-@pytest.mark.bfd
+
def setup_module(mod):
"Sets up the pytest environment"
tgen = Topogen(BFDTopo, mod.__name__)
# Required to instantiate the topology builder class.
from mininet.topo import Topo
+pytestmark = [pytest.mark.bfdd]
class BFDTopo(Topo):
"Test topology builder"
switch.add_link(tgen.gears["r2"])
switch.add_link(tgen.gears["r4"])
-@pytest.mark.bfd
+
def setup_module(mod):
"Sets up the pytest environment"
tgen = Topogen(BFDTopo, mod.__name__)
# Required to instantiate the topology builder class.
from mininet.topo import Topo
+pytestmark = [pytest.mark.bfdd]
class BFDTopo(Topo):
"Test topology builder"
switch.add_link(tgen.gears["r2"])
switch.add_link(tgen.gears["r4"])
-@pytest.mark.bfd
+
def setup_module(mod):
"Sets up the pytest environment"
tgen = Topogen(BFDTopo, mod.__name__)
import platform
from functools import partial
-pytestmark = pytest.mark.pimd
+pytestmark = [pytest.mark.pimd]
# Save the Current Working Directory to find configuration files.
CWD = os.path.dirname(os.path.realpath(__file__))
import pytest
import json
+pytestmark = [pytest.mark.eigrpd]
+
# Save the Current Working Directory to find configuration files.
CWD = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(CWD, "../"))
##
#####################################################
-@pytest.mark.eigrp
+
def setup_module(module):
"Setup topology"
tgen = Topogen(NetworkTopo, module.__name__)
import json
from functools import partial
-pytestmark = pytest.mark.pimd
+pytestmark = [pytest.mark.pimd]
# Save the Current Working Directory to find configuration files.
CWD = os.path.dirname(os.path.realpath(__file__))
# Required to instantiate the topology builder class.
from mininet.topo import Topo
+pytestmark = [pytest.mark.isisd]
+
# Global multi-dimensional dictionary containing all expected outputs
outputs = {}
f_in.close()
f_out.close()
-@pytest.mark.isis
def setup_module(mod):
"Sets up the pytest environment"
tgen = Topogen(TemplateTopo, mod.__name__)
# Required to instantiate the topology builder class.
from mininet.topo import Topo
+pytestmark = [pytest.mark.isisd]
+
# Global multi-dimensional dictionary containing all expected outputs
outputs = {}
f_in.close()
f_out.close()
-@pytest.mark.isis
def setup_module(mod):
"Sets up the pytest environment"
tgen = Topogen(TemplateTopo, mod.__name__)
# Required to instantiate the topology builder class.
from mininet.topo import Topo
+pytestmark = [pytest.mark.isisd]
+
class TemplateTopo(Topo):
"Test topology builder"
def build(self, *_args, **_opts):
switch.add_link(tgen.gears['rt6'], nodeif="eth-dst")
switch.add_link(tgen.gears['dst'], nodeif="eth-rt6")
-@pytest.mark.isis
def setup_module(mod):
"Sets up the pytest environment"
# Required to instantiate the topology builder class.
from mininet.topo import Topo
+pytestmark = [pytest.mark.isisd]
class TemplateTopo(Topo):
"Test topology builder"
switch.add_link(tgen.gears["rt5"], nodeif="eth-rt6")
switch.add_link(tgen.gears["rt6"], nodeif="eth-rt5")
-@pytest.mark.isis
+
def setup_module(mod):
"Sets up the pytest environment"
tgen = Topogen(TemplateTopo, mod.__name__)
# Required to instantiate the topology builder class.
from mininet.topo import Topo
+pytestmark = [pytest.mark.isisd]
+
# Global multi-dimensional dictionary containing all expected outputs
outputs = {}
f_in.close()
f_out.close()
-@pytest.mark.isis
def setup_module(mod):
"Sets up the pytest environment"
tgen = Topogen(TemplateTopo, mod.__name__)
from mininet.topo import Topo
+pytestmark = [pytest.mark.isisd]
class ISISTopo1(Topo):
"Simple two layer ISIS vrf topology"
sw.add_link(tgen.gears["r4"])
sw.add_link(tgen.gears["r5"])
-@pytest.mark.isis
+
def setup_module(mod):
"Sets up the pytest environment"
tgen = Topogen(ISISTopo1, mod.__name__)
from mininet.topo import Topo
+pytestmark = [pytest.mark.isisd]
class ISISTopo1(Topo):
"Simple two layer ISIS topology"
sw.add_link(tgen.gears["r4"])
sw.add_link(tgen.gears["r5"])
-@pytest.mark.isis
+
def setup_module(mod):
"Sets up the pytest environment"
tgen = Topogen(ISISTopo1, mod.__name__)
fatal_error = ""
+pytestmark = [pytest.mark.ldpd]
+
#####################################################
##
## Network Topology Definition
##
#####################################################
-@pytest.mark.ldp
+
def setup_module(module):
global topo, net
global fatal_error
# Required to instantiate the topology builder class.
from mininet.topo import Topo
+pytestmark = [pytest.mark.ldpd, pytest.mark.ospfd]
class TemplateTopo(Topo):
"Test topology builder"
switch.add_link(tgen.gears["r2"])
switch.add_link(tgen.gears["r3"])
-@pytest.mark.ldp
-@pytest.mark.ospf
+
def setup_module(mod):
"Sets up the pytest environment"
tgen = Topogen(TemplateTopo, mod.__name__)
# Required to instantiate the topology builder class.
from mininet.topo import Topo
+pytestmark = [pytest.mark.pbrd]
+
#####################################################
##
## Network Topology Definition
##
#####################################################
-@pytest.mark.pbr
def setup_module(module):
"Setup topology"
tgen = Topogen(NetworkTopo, module.__name__)
from mininet.topo import Topo
+pytestmark = [pytest.mark.pimd]
class PIMTopo(Topo):
def build(self, *_args, **_opts):
fatal_error = ""
+pytestmark = [pytest.mark.ripd]
#####################################################
##
##
#####################################################
-@pytest.mark.rip
+
def setup_module(module):
global topo, net
fatal_error = ""
+pytestmark = [pytest.mark.ripd]
#####################################################
##
##
#####################################################
-@pytest.mark.rip
+
def setup_module(module):
global topo, net