Skip to content
Snippets Groups Projects
Commit a847b488 authored by Alex Reimers's avatar Alex Reimers
Browse files

Update VirtualNetworkFilter.

parent e010828c
No related branches found
No related tags found
No related merge requests found
...@@ -341,7 +341,7 @@ public class VirtualNetworkFilter ...@@ -341,7 +341,7 @@ public class VirtualNetworkFilter
OFFlowMod fm = OFFlowMod fm =
(OFFlowMod) floodlightProvider.getOFMessageFactory().getMessage(OFType.FLOW_MOD); (OFFlowMod) floodlightProvider.getOFMessageFactory().getMessage(OFType.FLOW_MOD);
OFMatch match = new OFMatch(); OFMatch match = new OFMatch();
match.loadFromPacket(pi.getPacketData(), pi.getInPort(), sw.getId()); match.loadFromPacket(pi.getPacketData(), pi.getInPort());
List<OFAction> actions = new ArrayList<OFAction>(); // no actions = drop List<OFAction> actions = new ArrayList<OFAction>(); // no actions = drop
long cookie = AppCookie.makeCookie(APP_ID, 0); long cookie = AppCookie.makeCookie(APP_ID, 0);
fm.setCookie(cookie) fm.setCookie(cookie)
......
...@@ -14,7 +14,7 @@ import org.openflow.protocol.OFPacketIn.OFPacketInReason; ...@@ -14,7 +14,7 @@ import org.openflow.protocol.OFPacketIn.OFPacketInReason;
import net.floodlightcontroller.core.FloodlightContext; import net.floodlightcontroller.core.FloodlightContext;
import net.floodlightcontroller.core.IFloodlightProviderService; import net.floodlightcontroller.core.IFloodlightProviderService;
import net.floodlightcontroller.core.IOFMessageListener; import net.floodlightcontroller.core.IOFMessageListener;
import net.floodlightcontroller.core.IOFMessageListener.Command; import net.floodlightcontroller.core.IListener.Command;
import net.floodlightcontroller.core.IOFSwitch; import net.floodlightcontroller.core.IOFSwitch;
import net.floodlightcontroller.core.module.FloodlightModuleContext; import net.floodlightcontroller.core.module.FloodlightModuleContext;
import net.floodlightcontroller.packet.Data; import net.floodlightcontroller.packet.Data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment