@Service(value=VsgInstanceHandler.class) public final class VsgInstanceHandler extends AbstractInstanceHandler implements InstanceHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.flow.FlowRuleService |
flowRuleService |
protected InstanceService |
instanceService |
protected CordVtnNodeManager |
nodeManager |
protected CordVtnPipeline |
pipeline |
appId, configListener, configRegistry, coreService, hostListener, hostService, log, mastershipService, serviceType, xosClient| Constructor and Description |
|---|
VsgInstanceHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
protected void |
deactivate() |
void |
instanceDetected(Instance instance)
Handles newly detected instance.
|
void |
instanceRemoved(Instance instance)
Handles removed instance.
|
void |
updateVsgInstances(org.onosproject.net.HostId vsgVmId,
String stag,
Map<org.onlab.packet.IpAddress,org.onlab.packet.MacAddress> vsgInstances)
Updates set of vSGs in a given vSG VM.
|
getInstances, getVtnPort, getVtnService, readConfiguration@Reference(cardinality=MANDATORY_UNARY) protected CordVtnPipeline pipeline
@Reference(cardinality=MANDATORY_UNARY) protected CordVtnNodeManager nodeManager
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.flow.FlowRuleService flowRuleService
@Reference(cardinality=MANDATORY_UNARY) protected InstanceService instanceService
@Activate protected void activate()
activate in class AbstractInstanceHandler@Deactivate protected void deactivate()
deactivate in class AbstractInstanceHandlerpublic void instanceDetected(Instance instance)
InstanceHandlerinstanceDetected in interface InstanceHandlerinstance - instancepublic void instanceRemoved(Instance instance)
InstanceHandlerinstanceRemoved in interface InstanceHandlerinstance - instancepublic void updateVsgInstances(org.onosproject.net.HostId vsgVmId,
String stag,
Map<org.onlab.packet.IpAddress,org.onlab.packet.MacAddress> vsgInstances)
vsgVmId - vsg vm host idstag - stagvsgInstances - full set of vsg wan ip and mac address pairs in this vsg vmCopyright © 2016. All rights reserved.