public class SnmpDeviceProvider
extends org.onosproject.net.provider.AbstractProvider
implements org.onosproject.net.device.DeviceProvider
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.core.ApplicationId |
appId |
protected org.onosproject.net.config.NetworkConfigListener |
cfgLister |
protected SnmpController |
controller |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.device.DeviceService |
deviceService |
protected org.onosproject.net.device.DeviceStore |
deviceStore |
protected org.onosproject.net.config.ConfigFactory |
factory |
protected org.onosproject.net.config.NetworkConfigRegistry |
netCfgService |
protected org.onosproject.net.device.DeviceProviderRegistry |
providerRegistry |
protected org.onosproject.net.device.DeviceProviderService |
providerService |
| Constructor and Description |
|---|
SnmpDeviceProvider()
Creates a provider with the supplier identifier.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.osgi.service.component.ComponentContext context) |
void |
changePortState(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber,
boolean enable) |
void |
deactivate(org.osgi.service.component.ComponentContext context) |
boolean |
isReachable(org.onosproject.net.DeviceId deviceId) |
void |
modified(org.osgi.service.component.ComponentContext context) |
void |
roleChanged(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.MastershipRole newRole) |
void |
triggerProbe(org.onosproject.net.DeviceId deviceId) |
@Reference(cardinality=MANDATORY_UNARY) protected SnmpController controller
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceProviderRegistry providerRegistry
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceStore deviceStore
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.config.NetworkConfigRegistry netCfgService
protected org.onosproject.net.device.DeviceProviderService providerService
protected org.onosproject.core.ApplicationId appId
protected final org.onosproject.net.config.NetworkConfigListener cfgLister
protected final org.onosproject.net.config.ConfigFactory factory
public SnmpDeviceProvider()
@Activate public void activate(org.osgi.service.component.ComponentContext context)
@Deactivate public void deactivate(org.osgi.service.component.ComponentContext context)
@Modified public void modified(org.osgi.service.component.ComponentContext context)
public void triggerProbe(org.onosproject.net.DeviceId deviceId)
triggerProbe in interface org.onosproject.net.device.DeviceProviderpublic void roleChanged(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.MastershipRole newRole)
roleChanged in interface org.onosproject.net.device.DeviceProviderpublic boolean isReachable(org.onosproject.net.DeviceId deviceId)
isReachable in interface org.onosproject.net.device.DeviceProviderpublic void changePortState(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber,
boolean enable)
changePortState in interface org.onosproject.net.device.DeviceProvider