[nox-dev] Error feedback from adding flows

2010-12-10 Thread Derek Cormier
Hello, I'm looking for a way to see if adding a flow failed. In the OpenFlow protocol, it says an ofp_error_msg message is returned. Is there any event I can register for to catch this? I would also like to catch an error of type OFPET_FLOW_MOD_FAILED. I'm using a python component. Thanks!

[nox-dev] send_openflow to different dpid question

2010-12-10 Thread Aaron Rosen
Hello, When I get a specific kind of packet I want to send that packet to a specific dpid and port and also send it to the dpid and port that the packet was intended for. If I do: # send packet to end host # note self.PortMaping[dpid, mac_to_str(packet.dst)] returns the port number the

Re: [nox-dev] send_openflow to different dpid question

2010-12-10 Thread Ali Al-Shabibi
Hi Aaron, self.dpid_of_duplication is not the dpid the packet arrived on, therefore therefore bufid is meaningless to self.dpid_of_duplication. You should send self.dpid_of_duplication the actual packet you want to packet_out. Hope this helps, -- Ali Al-Shabibi On 10 déc. 2010, at 18:57,

Re: [nox-dev] send_openflow to different dpid question

2010-12-10 Thread Aaron Rosen
Hi Ali, Looking at the comments for send_openflow, if buffer_id is -1 then, it should send the packet. Though, maybe I'm still doing this incorrectly? actions = [[openflow.OFPAT_OUTPUT, [0, 11]]] self.send_openflow(self.dpid_of_duplication, -1, buf,

Re: [nox-dev] send_openflow to different dpid question

2010-12-10 Thread James Murphy McCauley
Have you installed a rule to send the entire packet (the type that you want to duplicate) to the controller? If not, it may well be truncated. So you may only be sending the truncated version out on the second dpid. Depending on how you're checking to see if this is working, this may just look

Re: [nox-dev] send_openflow to different dpid question

2010-12-10 Thread Ali Al-Shabibi
James is right, you should check with tcpdump. By looking at the send_openflow code, you can see, if buffer_id != None: self.send_openflow_buffer(dp_id, buffer_id, actions, inport) Switch the buffer_id for None and it should work, the comment is incorrect. On Dec 10, 2010, at

Re: [nox-dev] send_openflow to different dpid question

2010-12-10 Thread Aaron Rosen
Thanks guys, that worked. Aaron On Fri, Dec 10, 2010 at 2:45 PM, Ali Al-Shabibi ali.al-shab...@cern.chwrote: James is right, you should check with tcpdump. By looking at the send_openflow code, you can see, if buffer_id != None: self.send_openflow_buffer(dp_id, buffer_id,

[nox-dev] how to show the topology

2010-12-10 Thread 谢峰
Hi all, I want to show the topology of network in the console. So maybe I should find where the data (such as datapathid and port) are stored and which structure are they. Is anyone can help me. thanks very much. regards fengxie ___ nox-dev mailing

Re: [nox-dev] how to show the topology

2010-12-10 Thread Abhishek Majumdar
If its only the topology, you might use vms-draw.py yournetwork.xml file. Hope this helps. Thanks Abhishek Majumdar On 12/10/2010 08:37 PM, 谢峰 wrote: Hi all, I want to show the topology of network in the console. So maybe I should find where the data (such as datapathid and port) are