String hwvtepNodeId, IpAddress tunnelIpAddr) {
elanClusterUtils.runOnlyInOwnerNode(hwvtepNodeId, "Handling Physical Switch add create itm tunnels ",
() -> {
+ LOG.info("Creating itm tunnel for {}", tunnelIpAddr);
ElanL2GatewayUtils.createItmTunnels(dataBroker, itmRpcService, hwvtepNodeId, psName, tunnelIpAddr);
return Collections.emptyList();
});
List<L2gatewayConnection> l2GwConns = L2GatewayConnectionUtils.getAssociatedL2GwConnections(
dataBroker, l2GwDevice.getL2GatewayIds());
LOG.debug("L2GatewayConnections associated for {} physical switch", psName);
+ if (l2GwConns == null || l2GwConns.isEmpty()) {
+ LOG.info("No connections are provisioned for {} {} {}", l2GwDevice, psName, hwvtepNodeId);
+ }
for (L2gatewayConnection l2GwConn : l2GwConns) {
LOG.trace("L2GatewayConnection {} changes executed on physical switch {}",
l2GwConn.getL2gatewayId(), psName);