Hi Murphy,
Thanks a lot for the pointer for (1). It worked like a charm. I have a question 
though. 
Q1:
What will be the changes in the port's configuration (I think the port.state 
and port.config changes)?
Consider a topology H1(1) -(1)S1(2) - (2)S2(2) -(1)H2    Values in the brackets 
are port numbers==> port (2)down on S1:        state changes from 0 -> 1        
config changes from 0 -> 1and for port (2) on S2       state changes from 0->1  
     config changes from 0->0
and on bringing the port back up the values change the other way. Is my 
understanding correct?
Thank you,Himanshu Shahwww.cs.stonybrook.edu/~hkshah/(609) 647-2765

Subject: Re: [pox-dev] Bringing Links up and down from the pox controller
From: [email protected]
Date: Tue, 11 Mar 2014 19:43:23 -0700
CC: [email protected]
To: [email protected]


On Mar 11, 2014, at 3:57 PM, Himanshu Shah <[email protected]> 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