@Service public class VbngManager extends Object implements VbngService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.host.HostService |
hostService |
protected org.onosproject.net.intent.IntentService |
intentService |
protected VbngConfigurationService |
vbngConfigurationService |
| Constructor and Description |
|---|
VbngManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
org.onlab.packet.IpAddress |
createVbng(org.onlab.packet.IpAddress privateIpAddress,
org.onlab.packet.MacAddress hostMacAddress,
String hostName)
Creates a virtual BNG.
|
void |
deactivate() |
org.onlab.packet.IpAddress |
deleteVbng(org.onlab.packet.IpAddress privateIpAddress)
Deletes a virtual BNG.
|
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.host.HostService hostService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.intent.IntentService intentService
@Reference(cardinality=MANDATORY_UNARY) protected VbngConfigurationService vbngConfigurationService
@Activate public void activate()
@Deactivate public void deactivate()
public org.onlab.packet.IpAddress createVbng(org.onlab.packet.IpAddress privateIpAddress,
org.onlab.packet.MacAddress hostMacAddress,
String hostName)
VbngServiceIt firstly finds out an available local public IP address. Then, it sets up paths between the host configured with private IP and next hop. Finally it returns the public IP address.
createVbng in interface VbngServiceprivateIpAddress - the private IP addresshostMacAddress - the MAC address for the IP addresshostName - the host name for the IP addresspublic org.onlab.packet.IpAddress deleteVbng(org.onlab.packet.IpAddress privateIpAddress)
VbngServicedeleteVbng in interface VbngServiceprivateIpAddress - a private IP address