@Service public class VtnRscManager extends org.onosproject.event.AbstractListenerManager<VtnRscEvent,VtnRscListener> implements VtnRscService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.service.LogicalClockService |
clockService |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.device.DeviceService |
deviceService |
protected FloatingIpService |
floatingIpService |
protected FlowClassifierService |
flowClassifierService |
protected org.onosproject.net.host.HostService |
hostService |
protected PortChainService |
portChainService |
protected PortPairGroupService |
portPairGroupService |
protected PortPairService |
portPairService |
protected RouterInterfaceService |
routerInterfaceService |
protected RouterService |
routerService |
protected org.onosproject.store.service.StorageService |
storageService |
protected SubnetService |
subnetService |
protected TenantNetworkService |
tenantNetworkService |
protected VirtualPortService |
virtualPortService |
| Constructor and Description |
|---|
VtnRscManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addDeviceIdOfOvsMap(VirtualPortId virtualPortId,
TenantId tenantId,
org.onosproject.net.DeviceId deviceId)
Adds specify Device identifier to Service Function Forward OvsMap
or Classifier OvsMap.
|
void |
deactivate() |
Iterator<org.onosproject.net.Device> |
getClassifierOfTenant(TenantId tenantId)
Returns Classifier Ovs list of the specific tenant.
|
org.onlab.packet.MacAddress |
getGatewayMac(org.onosproject.net.HostId hostId)
Returns gateway mac address of the specific host.
|
SegmentationId |
getL3vni(TenantId tenantId)
Returns the SegmentationId of tenant.
|
SegmentationId |
getL3vni(TenantRouter tenantRouter)
Returns the SegmentationId of tenantRouter.
|
Iterator<org.onosproject.net.Device> |
getSffOfTenant(TenantId tenantId)
Returns Service function forwarders Ovs list of the specific tenant.
|
org.onosproject.net.DeviceId |
getSfToSffMaping(VirtualPortId portId)
Returns device identifier mapping to the specific port.
|
boolean |
isServiceFunction(VirtualPortId portId)
Checks if a specific port is a service function.
|
void |
removeDeviceIdOfOvsMap(org.onosproject.net.Host host,
TenantId tenantId,
org.onosproject.net.DeviceId deviceId)
Removes specify Device identifier from Service Function Forward OvsMap
or Classifier OvsMap.
|
addListener, bindEventDispatcher, post, removeListener, unbindEventDispatcher@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.LogicalClockService clockService
@Reference(cardinality=MANDATORY_UNARY) protected RouterService routerService
@Reference(cardinality=MANDATORY_UNARY) protected FloatingIpService floatingIpService
@Reference(cardinality=MANDATORY_UNARY) protected RouterInterfaceService routerInterfaceService
@Reference(cardinality=MANDATORY_UNARY) protected VirtualPortService virtualPortService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.host.HostService hostService
@Reference(cardinality=MANDATORY_UNARY) protected SubnetService subnetService
@Reference(cardinality=MANDATORY_UNARY) protected TenantNetworkService tenantNetworkService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@Reference(cardinality=MANDATORY_UNARY) protected PortPairService portPairService
@Reference(cardinality=MANDATORY_UNARY) protected PortPairGroupService portPairGroupService
@Reference(cardinality=MANDATORY_UNARY) protected FlowClassifierService flowClassifierService
@Reference(cardinality=MANDATORY_UNARY) protected PortChainService portChainService
@Activate public void activate()
@Deactivate public void deactivate()
public SegmentationId getL3vni(TenantId tenantId)
VtnRscServicegetL3vni in interface VtnRscServicetenantId - tenant identifierpublic SegmentationId getL3vni(TenantRouter tenantRouter)
VtnRscServicegetL3vni in interface VtnRscServicetenantRouter - TenantRouterpublic Iterator<org.onosproject.net.Device> getClassifierOfTenant(TenantId tenantId)
VtnRscServicegetClassifierOfTenant in interface VtnRscServicetenantId - tenant identifierpublic Iterator<org.onosproject.net.Device> getSffOfTenant(TenantId tenantId)
VtnRscServicegetSffOfTenant in interface VtnRscServicetenantId - tenant identifierpublic org.onlab.packet.MacAddress getGatewayMac(org.onosproject.net.HostId hostId)
VtnRscServicegetGatewayMac in interface VtnRscServicehostId - host identifierpublic boolean isServiceFunction(VirtualPortId portId)
VtnRscServiceisServiceFunction in interface VtnRscServiceportId - port identifierpublic org.onosproject.net.DeviceId getSfToSffMaping(VirtualPortId portId)
VtnRscServicegetSfToSffMaping in interface VtnRscServiceportId - port identifierpublic void addDeviceIdOfOvsMap(VirtualPortId virtualPortId, TenantId tenantId, org.onosproject.net.DeviceId deviceId)
VtnRscServiceaddDeviceIdOfOvsMap in interface VtnRscServicevirtualPortId - the VirtualPort identifiertenantId - the tenant identifierdeviceId - the device identifierpublic void removeDeviceIdOfOvsMap(org.onosproject.net.Host host,
TenantId tenantId,
org.onosproject.net.DeviceId deviceId)
VtnRscServiceremoveDeviceIdOfOvsMap in interface VtnRscServicehost - HosttenantId - the tenant identifierdeviceId - the device identifier