Re: [pox-dev] Modifying existing flows on a switch periodically

2013-12-15 Thread Murphy McCauley
On Dec 14, 2013, at 1:56 PM, Sadia Bashir 11msccssbas...@seecs.edu.pk wrote: Hi, I want to modify queue_id in installed flows on a switch periodically by sending a flow_mod message from controller(i.e., controller-to-switch message) I tried it using this way on pox-controller: def

[pox-dev] l2_multi explanation

2013-12-15 Thread Amer
Hello, I would like to ask you if there is a document that help me to understand l2_multi code. Best regards, Amer

Re: [pox-dev] Modifying existing flows on a switch periodically

2013-12-15 Thread Sadia Bashir
Thank you Junaid Khalid and Murphy! I just got this from pox.openflow.libopenflow_o1 ofp_flow_mod_command_rev_map = { 'OFPFC_ADD' : 0, 'OFPFC_MODIFY': 1, 'OFPFC_MODIFY_STRICT' : 2, 'OFPFC_DELETE': 3, 'OFPFC_DELETE_STRICT' : 4, } I am not getting clear how do

Re: [pox-dev] l2_multi explanation

2013-12-15 Thread Murphy McCauley
There isn't. In short, it's like this: The discovery component raises LinkEvents when links change. l2_multi keeps an adjacency map. The value of adjacency[sw1][sw2] is the port which connects sw1 to sw2. This is updated by the l2_multi class, which watches LinkEvents. LinkEvents also

Re: [pox-dev] Modifying existing flows on a switch periodically

2013-12-15 Thread Murphy McCauley
Set your flow-mod's .command attribute to OFPFC_MODIFY (or OFPFC_MODIFY_STRICT). If you've imported libopenflow as of (the POX convention), it's something like: fm = of.ofp_flow_mod() ... fm.command = of.OFPFC_MODIFY_STRICT ... connection.send(fm) -- Murphy On Dec 15, 2013, at 10:16 PM,

Re: [pox-dev] Modifying existing flows on a switch periodically

2013-12-15 Thread Sadia Bashir
Thank you Murphy, It gave me a fair idea to precede. On Mon, Dec 16, 2013 at 11:29 AM, Murphy McCauley murphy.mccau...@gmail.com wrote: Set your flow-mod's .command attribute to OFPFC_MODIFY (or OFPFC_MODIFY_STRICT). If you've imported libopenflow as of (the POX convention), it's something