Hi , I would like to raise an issue with openvswitch while I executed the github openflow 1.0 version script and it didn't find the openflow message (ofp.OFPFF_SEND_FLOW_REM) in openvswitch.
Openvswitch version : openvswitch - 2.3.1 OS version : Ubuntu 14.04 Ttusty Open flow version : 1.0 And the same script passed without adding /deleting in the script with Openflow switch. PFA script details attached . Kindly let me know your inputs on the same. Thanks Jayachandran S +91-8861883300 The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
class FlowExpire(base_tests.SimpleDataPlane): """ Verify flow expire messages are properly generated. Generate a packet Generate and install a matching flow with idle timeout = 1 sec Verify the flow expiration message is received """ def runTest(self): # TODO: set from command-line parameter test_timeout = 60 of_ports = config["port_map"].keys() of_ports.sort() self.assertTrue(len(of_ports) > 1, "Not enough ports for test") delete_all_flows(self.controller) pkt = simple_tcp_packet() match = packet_to_flow_match(self, pkt) match.wildcards &= ~ofp.OFPFW_IN_PORT self.assertTrue(match is not None, "Could not generate flow match from pkt") act = ofp.action.output() of_ports = config["port_map"].keys() of_ports.sort() self.assertTrue(len(of_ports) > 1, "Not enough ports for test") ingress_port = of_ports[0] egress_port = of_ports[1] logging.info("Ingress " + str(ingress_port) + " to egress " + str(egress_port)) match.in_port = ingress_port request = ofp.message.flow_add() request.match = match request.cookie = random.randint(0,9007199254740992) request.buffer_id = 0xffffffff request.idle_timeout = 1 request.flags |= ofp.OFPFF_SEND_FLOW_REM act.port = egress_port request.actions.append(act) logging.info("Inserting flow") self.controller.message_send(request) do_barrier(self.controller) (response, pkt) = self.controller.poll(exp_msg=ofp.OFPT_FLOW_REMOVED, timeout=test_timeout) self.assertTrue(response is not None, 'Did not receive flow removed message ') self.assertEqual(request.cookie, response.cookie, 'Cookies do not match') self.assertEqual(ofp.OFPRR_IDLE_TIMEOUT, response.reason, 'Flow table entry removal reason is not idle_timeout') self.assertEqual(match, response.match, 'Flow table entry does not match')
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss