@Service public class VbngConfigurationManager extends Object implements VbngConfigurationService
| Constructor and Description |
|---|
VbngConfigurationManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
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.
|
org.onlab.packet.MacAddress |
getPublicFacingMac()
Gets the MAC address configured for all the public IP addresses.
|
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 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 VbngConfigurationServiceCopyright © 2015. All rights reserved.