On Mar 11, 2014, at 3:57 PM, Himanshu Shah <himanshu1...@live.com> wrote:

> Hello all,
> 
> 1 - I am interested in bringing links/ports up and down from the controller 
> on the fly. 
>      Bringing the port down works well using of.OFPPC_PORT_DOWN however, I 
> don't know how can one bring the port backup.

Un-set the port down bit by leaving its value as 0 in the config, but setting 
the mask to 1.

> 2 - what is the switch_impl.py used for? Is the idea to create SwitchImpl 
> objects on connectionup, and use these objects in controlling the switches in 
> mininet?

First, there has not been such a thing for a while and your POX is probably 
rather out of date.  The code that was SwitchImpl is now in the datapaths 
package and has been fairly dramatically altered.

And no.  SwitchImpl (and the stuff that replaces it) isn't generally meant to 
be part of a controller.  It's an actual OpenFlow switch (like the reference 
OpenFlow switch or Open vSwitch but slower).  This is both slightly clearer and 
the code is more immediately usable in newer versions of POX.

-- Murphy

Reply via email to