Matteo Scandolo | a229eca | 2017-08-08 13:05:28 -0700 | [diff] [blame] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 17 | """ |
| 18 | Prototype test cases related to operation under load |
| 19 | |
| 20 | It is recommended that these definitions be kept in their own |
| 21 | namespace as different groups of tests will likely define |
| 22 | similar identifiers. |
| 23 | |
Rich Lane | 477f481 | 2012-10-04 22:49:00 -0700 | [diff] [blame] | 24 | The switch is actively attempting to contact the controller at the address |
| 25 | indicated in config. |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 26 | |
| 27 | In general these test cases make some assumption about the external |
| 28 | configuration of the switch under test. For now, the assumption is |
| 29 | that the first two OF ports are connected by a loopback cable. |
| 30 | """ |
| 31 | |
| 32 | import copy |
Rich Lane | d9ef7c3 | 2012-12-31 11:00:30 -0800 | [diff] [blame] | 33 | import random |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 34 | import logging |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 35 | import unittest |
| 36 | |
Rich Lane | 477f481 | 2012-10-04 22:49:00 -0700 | [diff] [blame] | 37 | from oftest import config |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 38 | import oftest.controller as controller |
Rich Lane | d7b0ffa | 2013-03-08 15:53:42 -0800 | [diff] [blame] | 39 | import ofp |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 40 | import oftest.dataplane as dataplane |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 41 | import oftest.parse as parse |
Rich Lane | b90a1c4 | 2012-10-05 09:16:05 -0700 | [diff] [blame] | 42 | import oftest.base_tests as base_tests |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 43 | import time |
| 44 | |
Rich Lane | da3b5ad | 2012-10-03 09:05:32 -0700 | [diff] [blame] | 45 | from oftest.testutils import * |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 46 | |
Rich Lane | 0a4f637 | 2013-01-02 14:40:22 -0800 | [diff] [blame] | 47 | @nonstandard |
Rich Lane | b90a1c4 | 2012-10-05 09:16:05 -0700 | [diff] [blame] | 48 | class LoadBarrier(base_tests.SimpleProtocol): |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 49 | """ |
| 50 | Test barrier under load with loopback |
| 51 | |
| 52 | This test assumes there is a pair of ports on the switch with |
| 53 | a loopback cable connected and that spanning tree is disabled. |
| 54 | A flow is installed to cause a storm of packet-in messages |
| 55 | when a packet is sent to the loopbacked interface. After causing |
| 56 | this storm, a barrier request is sent. |
| 57 | |
| 58 | The test succeeds if the barrier response is received. Otherwise |
| 59 | the test fails. |
| 60 | """ |
Rich Lane | d1d9c28 | 2012-10-04 22:07:10 -0700 | [diff] [blame] | 61 | |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 62 | def runTest(self): |
| 63 | # Set up flow to send from port 1 to port 2 and copy to CPU |
| 64 | # Test parameter gives LB port base (assumes consecutive) |
Rich Lane | 2014f9b | 2012-10-05 15:29:40 -0700 | [diff] [blame] | 65 | lb_port = test_param_get('lb_port', default=1) |
| 66 | barrier_count = test_param_get('barrier_count', |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 67 | default=10) |
| 68 | |
| 69 | # Set controller to filter packet ins |
| 70 | self.controller.filter_packet_in = True |
| 71 | self.controller.pkt_in_filter_limit = 10 |
| 72 | |
| 73 | pkt = simple_tcp_packet() |
Ed Swierk | 99a74de | 2012-08-22 06:40:54 -0700 | [diff] [blame] | 74 | match = packet_to_flow_match(self, pkt) |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 75 | match.wildcards &= ~ofp.OFPFW_IN_PORT |
| 76 | match.in_port = lb_port |
Rich Lane | 9d3cc6b | 2013-03-08 16:33:08 -0800 | [diff] [blame] | 77 | act = ofp.action.output() |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 78 | act.port = lb_port + 1 |
| 79 | |
Rich Lane | ba3f0e2 | 2013-03-11 16:43:57 -0700 | [diff] [blame] | 80 | request = ofp.message.flow_add() |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 81 | request.match = match |
| 82 | request.hard_timeout = 2 * barrier_count |
| 83 | |
| 84 | request.buffer_id = 0xffffffff |
Rich Lane | c495d9e | 2013-03-08 17:43:36 -0800 | [diff] [blame] | 85 | request.actions.append(act) |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 86 | |
Rich Lane | 9d3cc6b | 2013-03-08 16:33:08 -0800 | [diff] [blame] | 87 | act = ofp.action.output() |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 88 | act.port = ofp.OFPP_CONTROLLER |
Rich Lane | c495d9e | 2013-03-08 17:43:36 -0800 | [diff] [blame] | 89 | request.actions.append(act) |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 90 | |
Rich Lane | 5c3151c | 2013-01-03 17:15:41 -0800 | [diff] [blame] | 91 | self.controller.message_send(request) |
Rich Lane | 3a261d5 | 2013-01-03 17:45:08 -0800 | [diff] [blame] | 92 | do_barrier(self.controller) |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 93 | |
| 94 | # Create packet out and send to port lb_port + 1 |
Rich Lane | 28fa927 | 2013-03-08 16:00:25 -0800 | [diff] [blame] | 95 | msg = ofp.message.packet_out() |
Rich Lane | afcf467 | 2012-11-14 13:19:27 -0800 | [diff] [blame] | 96 | msg.in_port = lb_port |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 97 | msg.data = str(pkt) |
Rich Lane | ea8c472 | 2013-04-04 15:30:20 -0700 | [diff] [blame] | 98 | msg.buffer_id = 0xffffffff |
Rich Lane | 9d3cc6b | 2013-03-08 16:33:08 -0800 | [diff] [blame] | 99 | act = ofp.action.output() |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 100 | act.port = lb_port + 1 |
Rich Lane | c495d9e | 2013-03-08 17:43:36 -0800 | [diff] [blame] | 101 | msg.actions.append(act) |
Rich Lane | 9a00381 | 2012-10-04 17:17:59 -0700 | [diff] [blame] | 102 | logging.info("Sleeping before starting storm") |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 103 | time.sleep(1) # Root causing issue with fast disconnects |
Rich Lane | 9a00381 | 2012-10-04 17:17:59 -0700 | [diff] [blame] | 104 | logging.info("Sending packet out to %d" % (lb_port + 1)) |
Rich Lane | 5c3151c | 2013-01-03 17:15:41 -0800 | [diff] [blame] | 105 | self.controller.message_send(msg) |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 106 | |
| 107 | for idx in range(0, barrier_count): |
Rich Lane | 3a261d5 | 2013-01-03 17:45:08 -0800 | [diff] [blame] | 108 | do_barrier(self.controller) |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 109 | # To do: Add some interesting functionality here |
Rich Lane | 9a00381 | 2012-10-04 17:17:59 -0700 | [diff] [blame] | 110 | logging.info("Barrier %d completed" % idx) |
Dan Talayco | 942f530 | 2012-04-12 22:32:34 -0700 | [diff] [blame] | 111 | |
| 112 | # Clear the flow table when done |
Rich Lane | 9a00381 | 2012-10-04 17:17:59 -0700 | [diff] [blame] | 113 | logging.debug("Deleting all flows from switch") |
Rich Lane | 32bf948 | 2013-01-03 17:26:30 -0800 | [diff] [blame] | 114 | delete_all_flows(self.controller) |
Dan Talayco | d083285 | 2012-10-10 09:49:53 -0700 | [diff] [blame] | 115 | |
| 116 | class PacketInLoad(base_tests.SimpleDataPlane): |
| 117 | """ |
| 118 | Generate lots of packet-in messages |
| 119 | |
| 120 | Test packet-in function by sending lots of packets to the dataplane. |
| 121 | This test tracks the number of pkt-ins received but does not enforce |
| 122 | any requirements about the number received. |
| 123 | """ |
| 124 | def runTest(self): |
| 125 | # Construct packet to send to dataplane |
| 126 | # Send packet to dataplane, once to each port |
| 127 | # Poll controller with expect message type packet in |
| 128 | |
Rich Lane | 32bf948 | 2013-01-03 17:26:30 -0800 | [diff] [blame] | 129 | delete_all_flows(self.controller) |
Rich Lane | 3a261d5 | 2013-01-03 17:45:08 -0800 | [diff] [blame] | 130 | do_barrier(self.controller) |
Dan Talayco | d083285 | 2012-10-10 09:49:53 -0700 | [diff] [blame] | 131 | out_count = 0 |
| 132 | in_count = 0 |
| 133 | |
| 134 | of_ports = config["port_map"].keys() |
| 135 | for of_port in of_ports: |
| 136 | for pkt, pt in [ |
| 137 | (simple_tcp_packet(), "simple TCP packet"), |
| 138 | (simple_tcp_packet(dl_vlan_enable=True,pktlen=108), |
| 139 | "simple tagged TCP packet"), |
| 140 | (simple_eth_packet(), "simple Ethernet packet"), |
| 141 | (simple_eth_packet(pktlen=40), "tiny Ethernet packet")]: |
| 142 | |
| 143 | logging.info("PKT IN test with %s, port %s" % (pt, of_port)) |
| 144 | for count in range(100): |
| 145 | out_count += 1 |
| 146 | self.dataplane.send(of_port, str(pkt)) |
Dan Talayco | d083285 | 2012-10-10 09:49:53 -0700 | [diff] [blame] | 147 | while True: |
Ed Swierk | a9e12ab | 2013-01-16 07:35:25 -0800 | [diff] [blame] | 148 | (response, raw) = self.controller.poll(ofp.OFPT_PACKET_IN) |
Dan Talayco | d083285 | 2012-10-10 09:49:53 -0700 | [diff] [blame] | 149 | if not response: |
| 150 | break |
| 151 | in_count += 1 |
| 152 | logging.info("PacketInLoad Sent %d. Got %d." % (out_count, in_count)) |
| 153 | |
| 154 | |
| 155 | |
| 156 | class PacketOutLoad(base_tests.SimpleDataPlane): |
| 157 | """ |
| 158 | Generate lots of packet-out messages |
| 159 | |
| 160 | Test packet-out function by sending lots of packet-out msgs |
| 161 | to the switch. This test tracks the number of packets received in |
| 162 | the dataplane, but does not enforce any requirements about the |
| 163 | number received. |
| 164 | """ |
| 165 | def runTest(self): |
| 166 | # Construct packet to send to dataplane |
| 167 | # Send packet to dataplane |
| 168 | # Poll controller with expect message type packet in |
| 169 | |
Rich Lane | 32bf948 | 2013-01-03 17:26:30 -0800 | [diff] [blame] | 170 | delete_all_flows(self.controller) |
Dan Talayco | d083285 | 2012-10-10 09:49:53 -0700 | [diff] [blame] | 171 | |
| 172 | # These will get put into function |
| 173 | of_ports = config["port_map"].keys() |
| 174 | of_ports.sort() |
| 175 | out_count = 0 |
| 176 | in_count = 0 |
| 177 | xid = 100 |
| 178 | for dp_port in of_ports: |
| 179 | for outpkt, opt in [ |
| 180 | (simple_tcp_packet(), "simple TCP packet"), |
| 181 | (simple_eth_packet(), "simple Ethernet packet"), |
| 182 | (simple_eth_packet(pktlen=40), "tiny Ethernet packet")]: |
| 183 | |
| 184 | logging.info("PKT OUT test with %s, port %s" % (opt, dp_port)) |
Rich Lane | 28fa927 | 2013-03-08 16:00:25 -0800 | [diff] [blame] | 185 | msg = ofp.message.packet_out() |
Rich Lane | afcf467 | 2012-11-14 13:19:27 -0800 | [diff] [blame] | 186 | msg.in_port = ofp.OFPP_NONE |
Dan Talayco | d083285 | 2012-10-10 09:49:53 -0700 | [diff] [blame] | 187 | msg.data = str(outpkt) |
Rich Lane | 9d3cc6b | 2013-03-08 16:33:08 -0800 | [diff] [blame] | 188 | act = ofp.action.output() |
Dan Talayco | d083285 | 2012-10-10 09:49:53 -0700 | [diff] [blame] | 189 | act.port = dp_port |
Rich Lane | c495d9e | 2013-03-08 17:43:36 -0800 | [diff] [blame] | 190 | msg.actions.append(act) |
Rich Lane | ea8c472 | 2013-04-04 15:30:20 -0700 | [diff] [blame] | 191 | msg.buffer_id = 0xffffffff |
Dan Talayco | d083285 | 2012-10-10 09:49:53 -0700 | [diff] [blame] | 192 | |
| 193 | logging.info("PacketOutLoad to: " + str(dp_port)) |
| 194 | for count in range(100): |
| 195 | msg.xid = xid |
| 196 | xid += 1 |
Rich Lane | 5c3151c | 2013-01-03 17:15:41 -0800 | [diff] [blame] | 197 | self.controller.message_send(msg) |
Dan Talayco | d083285 | 2012-10-10 09:49:53 -0700 | [diff] [blame] | 198 | out_count += 1 |
| 199 | |
| 200 | exp_pkt_arg = None |
| 201 | exp_port = None |
Dan Talayco | d083285 | 2012-10-10 09:49:53 -0700 | [diff] [blame] | 202 | while True: |
Ed Swierk | a9e12ab | 2013-01-16 07:35:25 -0800 | [diff] [blame] | 203 | (of_port, pkt, pkt_time) = self.dataplane.poll() |
Dan Talayco | d083285 | 2012-10-10 09:49:53 -0700 | [diff] [blame] | 204 | if pkt is None: |
| 205 | break |
| 206 | in_count += 1 |
| 207 | logging.info("PacketOutLoad Sent %d. Got %d." % (out_count, in_count)) |
Ed Swierk | e6fca64 | 2012-11-30 12:00:54 -0800 | [diff] [blame] | 208 | |
| 209 | class FlowModLoad(base_tests.SimpleProtocol): |
| 210 | |
| 211 | def checkBarrier(self): |
Rich Lane | 28fa927 | 2013-03-08 16:00:25 -0800 | [diff] [blame] | 212 | msg, pkt = self.controller.transact(ofp.message.barrier_request(), timeout=60) |
Ed Swierk | e6fca64 | 2012-11-30 12:00:54 -0800 | [diff] [blame] | 213 | self.assertNotEqual(msg, None, "Barrier failed") |
| 214 | while self.controller.packets: |
| 215 | msg = self.controller.packets.pop(0)[0] |
Rich Lane | f9f6b51 | 2013-03-11 22:35:28 -0700 | [diff] [blame] | 216 | self.assertNotEqual(msg.type, ofp.OFPT_ERROR, "Error received") |
Ed Swierk | e6fca64 | 2012-11-30 12:00:54 -0800 | [diff] [blame] | 217 | |
| 218 | def runTest(self): |
Rich Lane | 28fa927 | 2013-03-08 16:00:25 -0800 | [diff] [blame] | 219 | msg, pkt = self.controller.transact(ofp.message.table_stats_request()) |
Rich Lane | 30ca70c | 2012-12-31 16:53:55 -0800 | [diff] [blame] | 220 | |
| 221 | # Some switches report an extremely high max_entries that would cause |
| 222 | # us to run out of memory attempting to create all the flow-mods. |
Rich Lane | 5fd6faf | 2013-03-11 13:30:20 -0700 | [diff] [blame] | 223 | num_flows = min(msg.entries[0].max_entries, 32678) |
Rich Lane | 30ca70c | 2012-12-31 16:53:55 -0800 | [diff] [blame] | 224 | |
| 225 | logging.info("Creating %d flow-mods messages", num_flows) |
Ed Swierk | e6fca64 | 2012-11-30 12:00:54 -0800 | [diff] [blame] | 226 | |
| 227 | requests = [] |
| 228 | for i in range(num_flows): |
Rich Lane | 0237baf | 2013-03-11 22:34:59 -0700 | [diff] [blame] | 229 | match = ofp.match() |
Ed Swierk | e6fca64 | 2012-11-30 12:00:54 -0800 | [diff] [blame] | 230 | match.wildcards = ofp.OFPFW_ALL & ~ofp.OFPFW_DL_VLAN & ~ofp.OFPFW_DL_DST |
Rich Lane | d0478ff | 2013-03-11 12:46:58 -0700 | [diff] [blame] | 231 | match.vlan_vid = ofp.OFP_VLAN_NONE |
| 232 | match.eth_dst = [0, 1, 2, 3, i / 256, i % 256] |
Rich Lane | 9d3cc6b | 2013-03-08 16:33:08 -0800 | [diff] [blame] | 233 | act = ofp.action.output() |
Ed Swierk | e6fca64 | 2012-11-30 12:00:54 -0800 | [diff] [blame] | 234 | act.port = ofp.OFPP_CONTROLLER |
Rich Lane | ba3f0e2 | 2013-03-11 16:43:57 -0700 | [diff] [blame] | 235 | request = ofp.message.flow_add() |
Ed Swierk | e6fca64 | 2012-11-30 12:00:54 -0800 | [diff] [blame] | 236 | request.buffer_id = 0xffffffff |
| 237 | request.priority = num_flows - i |
| 238 | request.out_port = ofp.OFPP_NONE |
| 239 | request.match = match |
Rich Lane | c495d9e | 2013-03-08 17:43:36 -0800 | [diff] [blame] | 240 | request.actions.append(act) |
Ed Swierk | e6fca64 | 2012-11-30 12:00:54 -0800 | [diff] [blame] | 241 | requests.append(request) |
| 242 | |
Rich Lane | 82c35e8 | 2012-12-31 10:59:36 -0800 | [diff] [blame] | 243 | for i in range(3): |
Ed Swierk | e6fca64 | 2012-11-30 12:00:54 -0800 | [diff] [blame] | 244 | logging.info("Iteration %d: delete all flows" % i) |
Rich Lane | 32bf948 | 2013-01-03 17:26:30 -0800 | [diff] [blame] | 245 | delete_all_flows(self.controller) |
Ed Swierk | e6fca64 | 2012-11-30 12:00:54 -0800 | [diff] [blame] | 246 | self.checkBarrier() |
| 247 | |
| 248 | logging.info("Iteration %d: add %s flows" % (i, num_flows)) |
Rich Lane | d9ef7c3 | 2012-12-31 11:00:30 -0800 | [diff] [blame] | 249 | random.shuffle(requests) |
Ed Swierk | e6fca64 | 2012-11-30 12:00:54 -0800 | [diff] [blame] | 250 | for request in requests: |
| 251 | self.assertNotEqual(self.controller.message_send(request), -1, |
| 252 | "Error installing flow mod") |
| 253 | self.checkBarrier() |
Rich Lane | 9c49160 | 2013-04-15 16:00:46 -0700 | [diff] [blame] | 254 | |
| 255 | class FlowRemovedLoad(base_tests.SimpleDataPlane): |
| 256 | """ |
| 257 | Generate lots of flow-removed messages |
| 258 | |
| 259 | We keep track of the number of flow-removed messages we get but do not |
| 260 | assert on it. The goal of this test is just to make sure the controller |
| 261 | stays connected. |
| 262 | """ |
| 263 | |
| 264 | def checkBarrier(self): |
| 265 | msg, pkt = self.controller.transact(ofp.message.barrier_request(), timeout=60) |
| 266 | self.assertNotEqual(msg, None, "Barrier failed") |
| 267 | while self.controller.packets: |
| 268 | msg = self.controller.packets.pop(0)[0] |
| 269 | self.assertNotEqual(msg.type, ofp.OFPT_ERROR, "Error received") |
| 270 | |
| 271 | def runTest(self): |
| 272 | delete_all_flows(self.controller) |
| 273 | self.checkBarrier() |
| 274 | msg, _ = self.controller.transact(ofp.message.table_stats_request()) |
| 275 | |
| 276 | # Some switches report an extremely high max_entries that would cause |
| 277 | # us to run out of memory attempting to create all the flow-mods. |
| 278 | num_flows = min(msg.entries[0].max_entries, 32678) |
| 279 | |
| 280 | logging.info("Creating %d flow-mods messages", num_flows) |
| 281 | |
| 282 | requests = [] |
| 283 | for i in range(num_flows): |
| 284 | match = ofp.match() |
| 285 | match.wildcards = ofp.OFPFW_ALL & ~ofp.OFPFW_DL_VLAN & ~ofp.OFPFW_DL_DST |
| 286 | match.vlan_vid = ofp.OFP_VLAN_NONE |
| 287 | match.eth_dst = [0, 1, 2, 3, i / 256, i % 256] |
| 288 | act = ofp.action.output() |
| 289 | act.port = ofp.OFPP_CONTROLLER |
| 290 | request = ofp.message.flow_add() |
| 291 | request.buffer_id = 0xffffffff |
| 292 | request.priority = num_flows - i |
| 293 | request.out_port = ofp.OFPP_NONE |
| 294 | request.flags = ofp.OFPFF_SEND_FLOW_REM |
| 295 | request.match = match |
| 296 | request.actions.append(act) |
| 297 | requests.append(request) |
| 298 | |
| 299 | logging.info("Adding %d flows", num_flows) |
| 300 | random.shuffle(requests) |
| 301 | for request in requests: |
| 302 | self.controller.message_send(request) |
| 303 | self.checkBarrier() |
| 304 | |
| 305 | # Trigger a flood of flow-removed messages |
Tony van der Peet | 80c5b20 | 2013-11-20 11:47:48 +1300 | [diff] [blame] | 306 | delete_all_flows(self.controller, send_barrier=False) |
Rich Lane | 9c49160 | 2013-04-15 16:00:46 -0700 | [diff] [blame] | 307 | |
| 308 | count = 0 |
| 309 | while True: |
| 310 | (response, raw) = self.controller.poll(ofp.OFPT_FLOW_REMOVED) |
| 311 | if not response: |
| 312 | break |
| 313 | count += 1 |
| 314 | |
| 315 | # Make sure the switch is still connected |
| 316 | self.checkBarrier() |
| 317 | |
| 318 | logging.info("FlowRemovedLoad got %d/%d flow_removed messages." % (count, num_flows)) |