[pox-dev] Modifying existing flows on a switch periodically
Murphy McCauley
murphy.mccauley at gmail.com
Sun Dec 15 18:20:36 PST 2013
On Dec 14, 2013, at 1:56 PM, Sadia Bashir <11msccssbashir at 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 _timer_func ():
> for connection in core.openflow._connections.values():
> connection.send(of.ofp_action_nw_tos(port = 1, queue_id = 2))
This isn’t a flow-mod. This is just an action! Construct flow mods for the flows you want to change and include the new action.
> def launch():
> from pox.lib.recoco import Timer
> Timer(4, _timer_func, recurring=True)
>
> Please tell me if there is a way to modify a value in already existing flow entries on the switch.
>
> Thanks in advance for any hint or help.
> --
> sadia
Hope that helps.
— Murphy
More information about the pox-dev
mailing list