blob: 934402131ab9ac317343ce3846240ba4de9a8d5e [file] [log] [blame]
Andreas Pantelopoulos90f0b102018-02-01 13:21:45 -08001
2class SRRouting:
3 def __init__( self ):
4 self.default = ''
5
6 def CASE1( self, main ):
7 """
Andreas Pantelopoulosb7904ce2018-02-07 16:24:49 -08008 Ping between all ipv4 hosts in the topology.
Andreas Pantelopoulos90f0b102018-02-01 13:21:45 -08009 """
10
11 from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
12
13 SRRoutingTest.runTest( main,
You Wang79577812018-02-27 16:39:50 -080014 test_idx=1,
15 onosNodes=3,
16 dhcp=1,
You Wang91befd72018-02-28 16:41:23 -080017 routers=1,
You Wang79577812018-02-27 16:39:50 -080018 ipv4=1,
19 ipv6=0,
Andreas Pantelopoulos9173d442018-03-01 17:07:37 -080020 countFlowsGroups=False,
You Wang79577812018-02-27 16:39:50 -080021 description="Ping between all ipv4 hosts in the topology")
Andreas Pantelopoulosf6ed5012018-02-08 21:26:01 -080022
23 def CASE2( self, main ):
24 """
25 Ping between all ipv6 hosts in the topology.
26 """
27
28 from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
29
30 SRRoutingTest.runTest( main,
You Wang79577812018-02-27 16:39:50 -080031 test_idx=2,
32 onosNodes=3,
33 dhcp=1,
You Wang91befd72018-02-28 16:41:23 -080034 routers=1,
You Wang79577812018-02-27 16:39:50 -080035 ipv4=0,
36 ipv6=1,
Andreas Pantelopoulos9173d442018-03-01 17:07:37 -080037 countFlowsGroups=False,
You Wang79577812018-02-27 16:39:50 -080038 description="Ping between all ipv6 hosts in the topology")
Andreas Pantelopoulosf6ed5012018-02-08 21:26:01 -080039
You Wang79577812018-02-27 16:39:50 -080040 def CASE3( self, main ):
41 """
42 Ping between all ipv4 and ipv6 hosts in the topology.
43 """
Andreas Pantelopoulos90f0b102018-02-01 13:21:45 -080044
You Wang79577812018-02-27 16:39:50 -080045 from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
46
47 SRRoutingTest.runTest( main,
48 test_idx=3,
49 onosNodes=3,
50 dhcp=1,
You Wang91befd72018-02-28 16:41:23 -080051 routers=1,
You Wang79577812018-02-27 16:39:50 -080052 ipv4=1,
53 ipv6=1,
Andreas Pantelopoulos9173d442018-03-01 17:07:37 -080054 countFlowsGroups=False,
You Wang79577812018-02-27 16:39:50 -080055 description="Ping between all ipv4 and ipv6 hosts in the topology")
You Wangba231e72018-03-01 13:18:21 -080056
57 def CASE4( self, main ):
58 """
59 Ping between all ipv4 hosts in the topology and check connectivity to external ipv4 hosts
60 """
61
62 from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
63
64 SRRoutingTest.runTest( main,
65 test_idx=4,
66 onosNodes=3,
67 dhcp=1,
68 routers=1,
69 ipv4=1,
70 ipv6=0,
71 description="Ping between all ipv4 hosts in the topology and check connectivity to external hosts",
Andreas Pantelopoulos2eae3242018-03-06 13:47:20 -080072 checkExternalHost=True,
73 countFlowsGroups=False)
You Wangba231e72018-03-01 13:18:21 -080074
75 def CASE5( self, main ):
76 """
77 Ping between all ipv6 hosts in the topology and check connectivity to external ipv6 hosts
78 """
79
80 from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
81
82 SRRoutingTest.runTest( main,
83 test_idx=5,
84 onosNodes=3,
85 dhcp=1,
86 routers=1,
87 ipv4=0,
88 ipv6=1,
89 description="Ping between all ipv6 hosts in the topology and check connectivity to external hosts",
Andreas Pantelopoulos2eae3242018-03-06 13:47:20 -080090 checkExternalHost=True,
91 countFlowsGroups=False)
You Wangba231e72018-03-01 13:18:21 -080092
93 def CASE6( self, main ):
94 """
95 Ping between all ipv4 and ipv6 hosts in the topology and check connectivity to external ipv4 and ipv6 hosts
96 """
97
98 from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
99
100 SRRoutingTest.runTest( main,
101 test_idx=6,
102 onosNodes=3,
103 dhcp=1,
104 routers=1,
105 ipv4=1,
106 ipv6=1,
107 description="Ping between all ipv4 and ipv6 hosts in the topology and check connectivity to external hosts",
Andreas Pantelopoulos2eae3242018-03-06 13:47:20 -0800108 checkExternalHost=True,
109 countFlowsGroups=False)
110
111 def CASE7( self, main ):
112 """
113 Ping between ipv4 hosts and an external host that is not configured in
114 external router config, but reachable through the use of route-add
115 command.
116 """
117
118 from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
119
120 SRRoutingTest.runTest( main,
121 test_idx=7,
122 onosNodes=3,
123 dhcp=1,
124 routers=1,
125 ipv4=1,
126 ipv6=0,
127 description="Ping between from ipv4 hosts to external host configured with route-add command.",
128 checkExternalHost=False,
129 countFlowsGroups=False,
130 staticRouteConfigure=True)
131
132 def CASE8( self, main ):
133 """
134 Ping between ipv6 hosts and an external host that is not configured in
135 external router config, but reachable through the use of route-add
136 command.
137 """
138
139 from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
140
141 SRRoutingTest.runTest( main,
142 test_idx=8,
143 onosNodes=3,
144 dhcp=1,
145 routers=1,
146 ipv4=0,
147 ipv6=1,
148 description="Ping between from ipv6 hosts to external host configured with route-add command.",
149 checkExternalHost=False,
150 countFlowsGroups=False,
151 staticRouteConfigure=True)
152
153 def CASE9( self, main ):
154 """
155 Ping between ipv4 and pv6 hosts and external hosts that is not configured in
156 external router config, but reachable through the use of route-add
157 command.
158 """
159
160 from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest
161
162 SRRoutingTest.runTest( main,
163 test_idx=9,
164 onosNodes=3,
165 dhcp=1,
166 routers=1,
167 ipv4=1,
168 ipv6=1,
169 description="Ping between from ipv4 and ipv6 hosts to external hosts configured with route-add command.",
170 checkExternalHost=False,
171 countFlowsGroups=False,
172 staticRouteConfigure=True)