Yes, I apologize for the mistake... I had a too quick look to one of the
last capture. Checking better the captures and the standard...
The datapath_id is included only in the OFPT_FEATURES_REPLY packet sent
from the switch to the controller during the handshake.
When you received a packet (e.g. OFPT_PACKET_IN) at the controller, the
controller is able to recognize from which switch the packet is
arriving, but the method to retrieve the datapath_id depends on your
controller.
I'm using ryu controller, where I can retrieve the datapath_id with the
following commands...
@set_ev_cls(stplib.EventPacketIn, MAIN_DISPATCHER)
def _packet_in_handler(self, ev):
msg = ev.msg
datapath_id = msg.datapath
.
.
.
Il 01/06/2016 06:54, Ben Pfaff ha scritto:
On Tue, May 31, 2016 at 05:04:24PM +0200, Alessio Giorgetti wrote:
In any case... each switch sends its datapath id to the controller in every
transmitted openflow packet...
This is incorrect.
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss