public interface IVirtualNetworkService extends IFloodlightService
Modifier and Type | Method and Description |
---|---|
void |
addHost(org.projectfloodlight.openflow.types.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,
org.projectfloodlight.openflow.types.IPv4Address gateway)
Creates a new virtual network.
|
void |
deleteHost(org.projectfloodlight.openflow.types.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.
|
void createNetwork(java.lang.String guid, java.lang.String network, org.projectfloodlight.openflow.types.IPv4Address gateway)
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.void deleteNetwork(java.lang.String guid)
guid
- The ID (not name) of virtual network to delete.void addHost(org.projectfloodlight.openflow.types.MacAddress mac, java.lang.String network, java.lang.String port)
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.void deleteHost(org.projectfloodlight.openflow.types.MacAddress mac, java.lang.String port)
mac
- The MAC address to delete.port
- The logical port the host is attached to.java.util.Collection<VirtualNetwork> listNetworks()