Uint64 srcDpId = internalTunnel.getSourceDPN();
Uint64 dstDpId = internalTunnel.getDestinationDPN();
String tunnelType = ItmUtils.convertTunnelTypetoString(internalTunnel.getTransportType());
- if (!isTunnelInterfaceUp(add)) {
+ if (add.getOperState() == TunnelOperStatus.Down) {
LOG.trace("ITM Tunnel State during tep add is DOWN b/w srcDpn: {} and dstDpn: {} for tunnelType: "
+ "{}", srcDpId, dstDpId, tunnelType);
String alarmText = getInternalAlarmText(srcDpId.toString(), dstDpId.toString(), tunnelType);
dstNode = "openflow:" + externalTunnel.getDestinationDevice();
}
String tunnelType = ItmUtils.convertTunnelTypetoString(externalTunnel.getTransportType());
- if (!isTunnelInterfaceUp(add)) {
+ if (add.getOperState() == TunnelOperStatus.Down) {
LOG.trace("ITM Tunnel State during tep add is DOWN b/w srcNode: {} and dstNode: {} for "
+ "tunnelType: {}", srcNode, dstNode, tunnelType);
String alarmText = getExternalAlarmText(srcNode, dstNode, tunnelType);