blob: 934402131ab9ac317343ce3846240ba4de9a8d5e [file] [log] [blame]
class SRRouting:
def __init__( self ):
self.default = ''
def CASE1( self, main ):
"""
Ping between all ipv4 hosts in the topology.
"""
from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
SRRoutingTest.runTest( main,
test_idx=1,
onosNodes=3,
dhcp=1,
routers=1,
ipv4=1,
ipv6=0,
countFlowsGroups=False,
description="Ping between all ipv4 hosts in the topology")
def CASE2( self, main ):
"""
Ping between all ipv6 hosts in the topology.
"""
from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
SRRoutingTest.runTest( main,
test_idx=2,
onosNodes=3,
dhcp=1,
routers=1,
ipv4=0,
ipv6=1,
countFlowsGroups=False,
description="Ping between all ipv6 hosts in the topology")
def CASE3( self, main ):
"""
Ping between all ipv4 and ipv6 hosts in the topology.
"""
from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
SRRoutingTest.runTest( main,
test_idx=3,
onosNodes=3,
dhcp=1,
routers=1,
ipv4=1,
ipv6=1,
countFlowsGroups=False,
description="Ping between all ipv4 and ipv6 hosts in the topology")
def CASE4( self, main ):
"""
Ping between all ipv4 hosts in the topology and check connectivity to external ipv4 hosts
"""
from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
SRRoutingTest.runTest( main,
test_idx=4,
onosNodes=3,
dhcp=1,
routers=1,
ipv4=1,
ipv6=0,
description="Ping between all ipv4 hosts in the topology and check connectivity to external hosts",
checkExternalHost=True,
countFlowsGroups=False)
def CASE5( self, main ):
"""
Ping between all ipv6 hosts in the topology and check connectivity to external ipv6 hosts
"""
from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
SRRoutingTest.runTest( main,
test_idx=5,
onosNodes=3,
dhcp=1,
routers=1,
ipv4=0,
ipv6=1,
description="Ping between all ipv6 hosts in the topology and check connectivity to external hosts",
checkExternalHost=True,
countFlowsGroups=False)
def CASE6( self, main ):
"""
Ping between all ipv4 and ipv6 hosts in the topology and check connectivity to external ipv4 and ipv6 hosts
"""
from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
SRRoutingTest.runTest( main,
test_idx=6,
onosNodes=3,
dhcp=1,
routers=1,
ipv4=1,
ipv6=1,
description="Ping between all ipv4 and ipv6 hosts in the topology and check connectivity to external hosts",
checkExternalHost=True,
countFlowsGroups=False)
def CASE7( self, main ):
"""
Ping between ipv4 hosts and an external host that is not configured in
external router config, but reachable through the use of route-add
command.
"""
from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
SRRoutingTest.runTest( main,
test_idx=7,
onosNodes=3,
dhcp=1,
routers=1,
ipv4=1,
ipv6=0,
description="Ping between from ipv4 hosts to external host configured with route-add command.",
checkExternalHost=False,
countFlowsGroups=False,
staticRouteConfigure=True)
def CASE8( self, main ):
"""
Ping between ipv6 hosts and an external host that is not configured in
external router config, but reachable through the use of route-add
command.
"""
from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
SRRoutingTest.runTest( main,
test_idx=8,
onosNodes=3,
dhcp=1,
routers=1,
ipv4=0,
ipv6=1,
description="Ping between from ipv6 hosts to external host configured with route-add command.",
checkExternalHost=False,
countFlowsGroups=False,
staticRouteConfigure=True)
def CASE9( self, main ):
"""
Ping between ipv4 and pv6 hosts and external hosts that is not configured in
external router config, but reachable through the use of route-add
command.
"""
from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
SRRoutingTest.runTest( main,
test_idx=9,
onosNodes=3,
dhcp=1,
routers=1,
ipv4=1,
ipv6=1,
description="Ping between from ipv4 and ipv6 hosts to external hosts configured with route-add command.",
checkExternalHost=False,
countFlowsGroups=False,
staticRouteConfigure=True)