@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 |
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 ipAddress,
String transportZone) |
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
deleteOnCommit() |
void |
deleteVtep(BigInteger dpnId,
String ipAddress,
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 ipAddress,
String transportZone) |
void |
showBridges(Map<BigInteger,org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeRef> dpnIdBridgeRefMap) |
void |
showCache(String cacheName) |
void |
showState(Collection<StateTunnelList> tunnelLists,
boolean tunnelMonitorEnabled) |
List<String> |
showTeps(boolean monitorEnabled,
int monitorInterval) |
void |
start() |
@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 ipAddress, String transportZone) throws TepException
TepExceptionpublic TransportZone getTransportZone(String transportZoneName)
transportZoneName - the tzonepublic TransportZones getAllTransportZones()
public boolean checkTepPerTzPerDpn(String tzone, BigInteger dpnId)
public void buildTeps()
public List<String> showTeps(boolean monitorEnabled, int monitorInterval) throws TepException
TepExceptionpublic void showCache(String cacheName)
public void deleteVtep(BigInteger dpnId, String ipAddress, String transportZone) throws TepException
TepExceptionpublic <T extends org.opendaylight.yangtools.yang.binding.DataObject> void deleteOnCommit()
public void showState(Collection<StateTunnelList> tunnelLists, boolean tunnelMonitorEnabled) throws TepException
TepExceptionpublic void showBridges(Map<BigInteger,org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeRef> dpnIdBridgeRefMap)
public boolean isInCache(BigInteger dpnId, String ipAddress, String transportZone) throws TepException
TepExceptionpublic 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
TepExceptionCopyright © 2020 OpenDaylight. All rights reserved.