net.floodlightcontroller.virtualnetwork
Interface IVirtualNetworkService

All Superinterfaces:
IFloodlightService
All Known Implementing Classes:
VirtualNetworkFilter

public interface IVirtualNetworkService
extends IFloodlightService


Method Summary
 void addHost(MACAddress mac, java.lang.String network, java.lang.String port)
          Adds a host to a virtual network.
 void createNetwork(java.lang.String guid, java.lang.String network, java.lang.Integer gateway)
          Creates a new virtual network.
 void deleteHost(MACAddress mac, java.lang.String port)
          Deletes a host from a virtual network.
 void deleteNetwork(java.lang.String guid)
          Deletes a virtual network.
 java.util.Collection<VirtualNetwork> listNetworks()
          Return list of all virtual networks.
 

Method Detail

createNetwork

void createNetwork(java.lang.String guid,
                   java.lang.String network,
                   java.lang.Integer gateway)
Creates a new virtual network. This can also be called to modify a virtual network. To update a network you specify the GUID and the fields you want to update.

Parameters:
network - The network name. Must be unique.
guid - The ID of the network. Must be unique.
gateway - The IP address of the network gateway, null if none.

deleteNetwork

void deleteNetwork(java.lang.String guid)
Deletes a virtual network.

Parameters:
guid - The ID (not name) of virtual network to delete.

addHost

void addHost(MACAddress mac,
             java.lang.String network,
             java.lang.String port)
Adds a host to a virtual network. If a mapping already exists the new one will override the old mapping.

Parameters:
mac - The MAC address of the host to add.
network - The network to add the host to.
port - The logical port name to attach the host to. Must be unique.

deleteHost

void deleteHost(MACAddress mac,
                java.lang.String port)
Deletes a host from a virtual network. Either the MAC or Port must be specified.

Parameters:
mac - The MAC address to delete.
port - The logical port the host is attached to.

listNetworks

java.util.Collection<VirtualNetwork> listNetworks()
Return list of all virtual networks.

Returns:
Collection