@Service public class VbngConfigurationManager extends Object implements VbngConfigurationService
| Constructor and Description |
|---|
VbngConfigurationManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
boolean |
assignSpecifiedPublicIp(org.onlab.packet.IpAddress publicIpAddress,
org.onlab.packet.IpAddress privateIpAddress)
Tries to assign a given public IP address to a private IP address.
|
void |
deactivate() |
org.onlab.packet.IpAddress |
getAssignedPublicIpAddress(org.onlab.packet.IpAddress privateIpAddress)
Gets the public IP address already assigned for a private IP address.
|
org.onlab.packet.IpAddress |
getAvailablePublicIpAddress(org.onlab.packet.IpAddress privateIpAddress)
Gets an available public IP address from local public IP prefixes.
|
Map<org.onlab.packet.IpAddress,org.onlab.packet.IpAddress> |
getIpAddressMappings()
Gets all the mapping entries from private IP address to public IP
address.
|
org.onlab.packet.IpAddress |
getNextHopIpAddress()
Gets the IP address configured for the next hop.
|
Map<String,org.onosproject.net.ConnectPoint> |
getNodeToPort()
Gets the host to port map.
|
org.onlab.packet.MacAddress |
getPublicFacingMac()
Gets the MAC address configured for all the public IP addresses.
|
org.onlab.packet.IpAddress |
getXosIpAddress()
Gets the IP address configured for XOS server.
|
int |
getXosRestPort()
Gets the REST communication port configured for XOS server.
|
boolean |
isAssignedPublicIpAddress(org.onlab.packet.IpAddress ipAddress)
Evaluates whether an IP address is an assigned public IP address.
|
void |
readConfiguration()
Instructs the configuration reader to read the configuration from the
file.
|
org.onlab.packet.IpAddress |
recycleAssignedPublicIpAddress(org.onlab.packet.IpAddress privateIpAddress)
Recycles the public IP address assigned for a private IP address, and
at the same time deletes the mapping entry from this private IP address
to the public IP address.
|
@Activate public void activate()
@Deactivate public void deactivate()
public void readConfiguration()
public org.onlab.packet.IpAddress getNextHopIpAddress()
VbngConfigurationServicegetNextHopIpAddress in interface VbngConfigurationServicepublic org.onlab.packet.MacAddress getPublicFacingMac()
VbngConfigurationServicegetPublicFacingMac in interface VbngConfigurationServicepublic org.onlab.packet.IpAddress getXosIpAddress()
VbngConfigurationServicegetXosIpAddress in interface VbngConfigurationServicepublic int getXosRestPort()
VbngConfigurationServicegetXosRestPort in interface VbngConfigurationServicepublic Map<String,org.onosproject.net.ConnectPoint> getNodeToPort()
VbngConfigurationServicegetNodeToPort in interface VbngConfigurationServicepublic org.onlab.packet.IpAddress getAvailablePublicIpAddress(org.onlab.packet.IpAddress privateIpAddress)
VbngConfigurationServicegetAvailablePublicIpAddress in interface VbngConfigurationServiceprivateIpAddress - a private IP addresspublic org.onlab.packet.IpAddress getAssignedPublicIpAddress(org.onlab.packet.IpAddress privateIpAddress)
VbngConfigurationServicegetAssignedPublicIpAddress in interface VbngConfigurationServiceprivateIpAddress - a private IP addresspublic boolean isAssignedPublicIpAddress(org.onlab.packet.IpAddress ipAddress)
VbngConfigurationServiceisAssignedPublicIpAddress in interface VbngConfigurationServiceipAddress - the IP address to evaluatepublic org.onlab.packet.IpAddress recycleAssignedPublicIpAddress(org.onlab.packet.IpAddress privateIpAddress)
VbngConfigurationServicerecycleAssignedPublicIpAddress in interface VbngConfigurationServiceprivateIpAddress - a private IP addresspublic Map<org.onlab.packet.IpAddress,org.onlab.packet.IpAddress> getIpAddressMappings()
VbngConfigurationServicegetIpAddressMappings in interface VbngConfigurationServicepublic boolean assignSpecifiedPublicIp(org.onlab.packet.IpAddress publicIpAddress,
org.onlab.packet.IpAddress privateIpAddress)
VbngConfigurationServiceassignSpecifiedPublicIp in interface VbngConfigurationServicepublicIpAddress - the public IP address try to assignprivateIpAddress - a private IP address