@Singleton public class ItmProvider extends Object implements AutoCloseable, IITMProvider
| Constructor and Description |
|---|
ItmProvider(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
IdManagerService idManagerService,
InterfaceStateListener interfaceStateListener,
ItmManagerRpcService itmManagerRpcService,
ItmTunnelEventListener itmTunnelEventListener,
TepCommandHelper tepCommandHelper,
TunnelMonitorChangeListener tunnelMonitorChangeListener,
TunnelMonitorIntervalListener tunnelMonitorIntervalListener,
TransportZoneListener transportZoneListener,
VtepConfigSchemaListener vtepConfigSchemaListener,
OvsdbNodeListener ovsdbNodeListener,
TunnelMonitoringConfig tunnelMonitoringConfig,
org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService,
DpnTepStateCache dpnTepStateCache,
ItmDiagStatusProvider itmDiagStatusProvider,
TunnelStateCache tunnelStateCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExternalEndpoint(Class<? extends TunnelTypeBase> tunnelType,
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress dcgwIP) |
void |
addVtepConfigSchema(VtepConfigSchema vtepConfigSchema)
Adds the vtep config schema.
|
void |
close() |
void |
commitTeps() |
void |
configureTunnelMonitorInterval(int interval) |
void |
configureTunnelMonitorParams(boolean monitorEnabled,
String monitorProtocol) |
void |
configureTunnelType(String transportZone,
String tunnelType) |
void |
createLocalCache(BigInteger dpnId,
String portName,
Integer vlanId,
String ipAddress,
String subnetMask,
String gatewayIp,
String transportZone,
org.apache.felix.service.command.CommandSession session) |
void |
deleteAllVtepSchemas()
Delete all vtep schemas.
|
void |
deleteVtep(BigInteger dpnId,
String portName,
Integer vlanId,
String ipAddress,
String subnetMask,
String gatewayIp,
String transportZone,
org.apache.felix.service.command.CommandSession session) |
List<VtepConfigSchema> |
getAllVtepConfigSchemas()
Gets the all vtep config schemas.
|
org.opendaylight.controller.md.sal.binding.api.DataBroker |
getDataBroker() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface |
getInterface(String tunnelName) |
com.google.common.base.Optional<StateTunnelList> |
getTunnelState(String interfaceName) |
VtepConfigSchema |
getVtepConfigSchema(String schemaName)
Gets the vtep config schema.
|
void |
remExternalEndpoint(Class<? extends TunnelTypeBase> tunnelType,
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress dcgwIP) |
void |
showCache(String cacheName) |
void |
showState(Collection<StateTunnelList> tunnels,
org.apache.felix.service.command.CommandSession session) |
void |
showTeps(org.apache.felix.service.command.CommandSession session) |
void |
start() |
void |
updateVtepSchema(String schemaName,
List<BigInteger> lstDpnsForAdd,
List<BigInteger> lstDpnsForDelete)
Update VTEP schema.
|
boolean |
validateIP(String ip) |
@Inject
public ItmProvider(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
IdManagerService idManagerService,
InterfaceStateListener interfaceStateListener,
ItmManagerRpcService itmManagerRpcService,
ItmTunnelEventListener itmTunnelEventListener,
TepCommandHelper tepCommandHelper,
TunnelMonitorChangeListener tunnelMonitorChangeListener,
TunnelMonitorIntervalListener tunnelMonitorIntervalListener,
TransportZoneListener transportZoneListener,
VtepConfigSchemaListener vtepConfigSchemaListener,
OvsdbNodeListener ovsdbNodeListener,
TunnelMonitoringConfig tunnelMonitoringConfig,
org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService,
DpnTepStateCache dpnTepStateCache,
ItmDiagStatusProvider itmDiagStatusProvider,
TunnelStateCache tunnelStateCache)
@PostConstruct public void start()
@PreDestroy public void close()
close in interface AutoCloseablepublic org.opendaylight.controller.md.sal.binding.api.DataBroker getDataBroker()
getDataBroker in interface IITMProviderpublic void addExternalEndpoint(Class<? extends TunnelTypeBase> tunnelType, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress dcgwIP)
addExternalEndpoint in interface IITMProviderpublic void remExternalEndpoint(Class<? extends TunnelTypeBase> tunnelType, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress dcgwIP)
remExternalEndpoint in interface IITMProviderpublic void createLocalCache(BigInteger dpnId, String portName, Integer vlanId, String ipAddress, String subnetMask, String gatewayIp, String transportZone, org.apache.felix.service.command.CommandSession session)
createLocalCache in interface IITMProviderpublic void commitTeps()
commitTeps in interface IITMProviderpublic void showTeps(org.apache.felix.service.command.CommandSession session)
showTeps in interface IITMProviderpublic void showState(Collection<StateTunnelList> tunnels, org.apache.felix.service.command.CommandSession session)
showState in interface IITMProviderpublic void showCache(String cacheName)
showCache in interface IITMProviderpublic void deleteVtep(BigInteger dpnId, String portName, Integer vlanId, String ipAddress, String subnetMask, String gatewayIp, String transportZone, org.apache.felix.service.command.CommandSession session)
deleteVtep in interface IITMProviderpublic void configureTunnelType(String transportZone, String tunnelType)
configureTunnelType in interface IITMProviderpublic void addVtepConfigSchema(VtepConfigSchema vtepConfigSchema)
IITMProvideraddVtepConfigSchema in interface IITMProvidervtepConfigSchema - the vtep config schemapublic VtepConfigSchema getVtepConfigSchema(String schemaName)
IITMProvidergetVtepConfigSchema in interface IITMProviderschemaName - the schema namepublic List<VtepConfigSchema> getAllVtepConfigSchemas()
IITMProvidergetAllVtepConfigSchemas in interface IITMProviderpublic void updateVtepSchema(String schemaName, List<BigInteger> lstDpnsForAdd, List<BigInteger> lstDpnsForDelete)
IITMProviderupdateVtepSchema in interface IITMProviderschemaName - the schema namelstDpnsForAdd - the lst dpns for addlstDpnsForDelete - the lst dpns for deletepublic void deleteAllVtepSchemas()
IITMProviderdeleteAllVtepSchemas in interface IITMProviderpublic void configureTunnelMonitorParams(boolean monitorEnabled,
String monitorProtocol)
configureTunnelMonitorParams in interface IITMProviderpublic void configureTunnelMonitorInterval(int interval)
configureTunnelMonitorInterval in interface IITMProviderpublic boolean validateIP(String ip)
validateIP in interface IITMProviderpublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterface(String tunnelName)
getInterface in interface IITMProviderpublic com.google.common.base.Optional<StateTunnelList> getTunnelState(String interfaceName) throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
getTunnelState in interface IITMProviderorg.opendaylight.controller.md.sal.common.api.data.ReadFailedExceptionCopyright © 2019 OpenDaylight. All rights reserved.