@Singleton public class TepCommandHelper extends Object
Constructor and Description |
---|
TepCommandHelper(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
ItmConfig itmConfig,
UnprocessedTunnelsStateCache unprocessedTunnelsStateCache) |
Modifier and Type | Method and Description |
---|---|
void |
buildTeps() |
boolean |
checkExistingSubnet(Map<SubnetObject,List<Vteps>> subVtepMapTemp,
SubnetObject subObCli) |
boolean |
checkTepPerTzPerDpn(String tzone,
BigInteger dpnId) |
void |
close() |
void |
configureTunnelMonitorInterval(int interval) |
void |
configureTunnelMonitorParams(boolean monitorEnabled,
String monitorProtocol) |
void |
configureTunnelType(String transportZoneName,
String tunnelType) |
void |
createLocalCache(BigInteger dpnId,
String portName,
Integer vlanId,
String ipAddress,
String subnetMask,
String gatewayIp,
String transportZone) |
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
deleteOnCommit() |
void |
deleteVtep(BigInteger dpnId,
String portName,
Integer vlanId,
String ipAddress,
String subnetMask,
String gatewayIp,
String transportZone) |
TransportZones |
getAllTransportZones()
Gets all transport zones.
|
TransportZone |
getTransportZone(String transportZoneName)
Gets the transport zone.
|
void |
handleError(String errorMessage) |
boolean |
isInCache(BigInteger dpnId,
String portName,
Integer vlanId,
String ipAddress,
String subnetMask,
String gatewayIp,
String transportZone) |
boolean |
isInMemoryCacheNameValid(String name) |
void |
showCache(String cacheName) |
void |
showState(Collection<StateTunnelList> tunnelLists,
boolean tunnelMonitorEnabled) |
List<String> |
showTeps(boolean monitorEnabled,
int monitorInterval) |
void |
start() |
void |
validateForDuplicates(Vteps inputVtep,
String transportZone)
Validate for duplicates.
|
@Inject public TepCommandHelper(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, ItmConfig itmConfig, UnprocessedTunnelsStateCache unprocessedTunnelsStateCache)
@PostConstruct public void start() throws ExecutionException, InterruptedException
@PreDestroy public void close()
public void createLocalCache(BigInteger dpnId, String portName, Integer vlanId, String ipAddress, String subnetMask, String gatewayIp, String transportZone) throws TepException
TepException
public void validateForDuplicates(Vteps inputVtep, String transportZone)
inputVtep
- the input vteptransportZone
- the transport zonepublic TransportZone getTransportZone(String transportZoneName)
transportZoneName
- the tzonepublic TransportZones getAllTransportZones()
public boolean checkExistingSubnet(Map<SubnetObject,List<Vteps>> subVtepMapTemp, SubnetObject subObCli)
public boolean checkTepPerTzPerDpn(String tzone, BigInteger dpnId)
public void buildTeps()
public List<String> showTeps(boolean monitorEnabled, int monitorInterval) throws TepException
TepException
public void showCache(String cacheName)
public boolean isInMemoryCacheNameValid(String name)
public void deleteVtep(BigInteger dpnId, String portName, Integer vlanId, String ipAddress, String subnetMask, String gatewayIp, String transportZone) throws TepException
TepException
public <T extends org.opendaylight.yangtools.yang.binding.DataObject> void deleteOnCommit()
public void showState(Collection<StateTunnelList> tunnelLists, boolean tunnelMonitorEnabled) throws TepException
TepException
public boolean isInCache(BigInteger dpnId, String portName, Integer vlanId, String ipAddress, String subnetMask, String gatewayIp, String transportZone) throws TepException
TepException
public void configureTunnelType(String transportZoneName, String tunnelType) throws ExecutionException, InterruptedException
public void configureTunnelMonitorParams(boolean monitorEnabled, String monitorProtocol)
public void configureTunnelMonitorInterval(int interval)
public void handleError(String errorMessage) throws TepException
TepException
Copyright © 2019 OpenDaylight. All rights reserved.