<html><head></head><body bgcolor="#FFFFFF">There is a hub example in the pox/samples folder that shows a full example for this.<div>"Sent on the move."</div><hr/><div><b>From: </b> Sam Russell <sam.h.russell@gmail.com>
</div><div><b>Sender: </b> pox-dev-bounces@lists.noxrepo.org</div><div><b>Date: </b>Fri, 14 Sep 2012 21:36:49 +1200</div><div><b>To: </b>Stefano Esposito<stefano.esposito87@gmail.com></div><div><b>Cc: </b>pox-dev@lists.noxrepo.org<pox-dev@lists.noxrepo.org></div><div><b>Subject: </b>Re: [pox-dev] PortMod message</div><div><br/></div><div>No PC with me so can't check in practise, but check page 25/26 of the spec - the initial handshake message is supposed to send an array of ofp_phy_port which gives you all this info. Run the OpenFlow dissector in wireshark and look at the features request packet - this should have the list in the response<br>
<br>Sent from my iPhone</div><div><br>On Sep 14, 2012, at 9:17 PM, Stefano Esposito <<a href="mailto:stefano.esposito87@gmail.com">stefano.esposito87@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite">
<div>
<div dir="ltr">
<div style="FONT-FAMILY:'Calibri';COLOR:#000000;FONT-SIZE:12pt">
<div>Hi,</div>
<div> </div>
<div> I’m trying to send a portmod message to a specific
switch to set the OFPPC_NO_FLOOD flag on a specific port. I’m doing this on
startup, so I can decide to which switch I’m sending the message using
connection.dpid. Now, I send the message with this code:</div>
<div> </div>
<div> msg = of.ofp_port_mod()</div>
<div> msg.port_no = 1</div>
<div> msg.config = of.OFPPC_NO_FLOOD</div>
<div> connection.send(msg)</div>
<div> </div>
<div>but the switch reply to this message with an error complaining about the hw
address mismatch. Reading the openflow specs I understand that the hw address
has to be sent as a sanity check with the port mod message and that I could get
the right from a port status message but how can I have the switch send me a
port status message on a port of my choice and not as an event notification? Or
is there another way to get the hw address?</div>
<div> </div>
<div>Thanks,</div>
<div>Stefano.</div></div></div>
</div></blockquote></body></html>