June 2017
Intermediate to advanced
446 pages
10h 10m
English
In order to respond to the ARP requests, we need to do the following:
In initial part of the PacketIn function, most of the code is identical to the switch function, which corresponds to decoding the OpenFlow event as well as the packet itself. For our purposes, we do not need ofproto and parser for OpenFlow events, but for consistency, we are leaving them in:
@set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)def _packet_in_handler(self, ev): msg = ev.msg datapath = msg.datapath ofproto = datapath.ofproto parser ...
Read now
Unlock full access