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

Change app ID for VirtualNetworkFilter.

parent 53570832
No related branches found
No related tags found
No related merge requests found
...@@ -42,9 +42,13 @@ import net.floodlightcontroller.virtualnetwork.IVirtualNetworkService; ...@@ -42,9 +42,13 @@ import net.floodlightcontroller.virtualnetwork.IVirtualNetworkService;
/** /**
* A simple Layer 2 (MAC based) network virtualization module. This module allows * A simple Layer 2 (MAC based) network virtualization module. This module allows
* you to create simple L2 networks (host + gateway) and will drop traffic if * you to create simple L2 networks (host + gateway) and will drop traffic if
* they are not on the same virtual network. This module does not support overlapping * they are not on the same virtual network.
* MAC address or IP address space. It also limits you to one default gateway per *
* virtual network. It also must work in conjunction with the forwarding module. * LIMITATIONS
* - This module does not allow overlapping of IPs or MACs
* - You can only have 1 gateway per virtual network (can be shared)
* - There is filtering of multicast/broadcast traffic
*
* @author alexreimers * @author alexreimers
*/ */
public class VirtualNetworkFilter public class VirtualNetworkFilter
...@@ -52,7 +56,7 @@ public class VirtualNetworkFilter ...@@ -52,7 +56,7 @@ public class VirtualNetworkFilter
protected static Logger log = LoggerFactory.getLogger(VirtualNetworkFilter.class); protected static Logger log = LoggerFactory.getLogger(VirtualNetworkFilter.class);
private final short FLOW_MOD_DEFAULT_IDLE_TIMEOUT = 5; // in seconds private final short FLOW_MOD_DEFAULT_IDLE_TIMEOUT = 5; // in seconds
private final short APP_ID = 10; // TODO - check this private final short APP_ID = 20;
// Our dependencies // Our dependencies
IFloodlightProviderService floodlightProvider; IFloodlightProviderService floodlightProvider;
...@@ -374,6 +378,7 @@ public class VirtualNetworkFilter ...@@ -374,6 +378,7 @@ public class VirtualNetworkFilter
long cookie = AppCookie.makeCookie(APP_ID, 0); long cookie = AppCookie.makeCookie(APP_ID, 0);
fm.setCookie(cookie) fm.setCookie(cookie)
.setIdleTimeout(FLOW_MOD_DEFAULT_IDLE_TIMEOUT) .setIdleTimeout(FLOW_MOD_DEFAULT_IDLE_TIMEOUT)
.setHardTimeout((short) 0)
.setBufferId(OFPacketOut.BUFFER_ID_NONE) .setBufferId(OFPacketOut.BUFFER_ID_NONE)
.setMatch(match) .setMatch(match)
.setActions(actions) .setActions(actions)
......
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