Dear All,

 

When I read component pyswitch.py, 

 

1.       there is code      if inst.st[dpid].has_key(srcaddr)
, I understand that st is kind of a container who holds key dpid. And dpid
should correspond to an array who has elements such as source address and
destination address. 

My question is when did the container st has key dpid added, and where is
the file for defining dpid with its elements like srcaddr?

 

2.       For the packet_in_callback, the handler of event packet_in_event,
there are six parameters dpid, inport, reason, len, bufid, packet.  For the
object packet, it has method parsed and member dst and so on. 

My question is where can I find the file for defining class like packet?

 

3.       In pyswitch.py, in the method forward_l2_packet, there is a
function called extract_flow. Could someone tell me where does it defined?

 

I already searched files core.py openflow.h       Ethernet.py
packet_utils.py                 packet_base.py                pyopenflow.py.
Unfortunately, I haven't find related definition. Maybe I miss them. 

 

Thank you very much for pointing out files where these definition reside.

 

Best regards,

Chen

_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to