package org.opendaylight.netvirt.neutronvpn;
+import com.google.common.util.concurrent.ThreadFactoryBuilder;
import java.math.BigInteger;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.TimeUnit;
-
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
import org.opendaylight.netvirt.elanmanager.api.IElanService;
import org.opendaylight.netvirt.vpnmanager.api.ICentralizedSwitchProvider;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import com.google.common.util.concurrent.ThreadFactoryBuilder;
-
public class NeutronSubnetGwMacResolver {
private static final Logger LOG = LoggerFactory.getLogger(NeutronSubnetGwMacResolver.class);
private static final long L3_INSTALL_DELAY_MILLIS = 5000;
this.cswitchProvider = cswitchProvider;
}
+ // TODO Clean up the exception handling
+ @SuppressWarnings("checkstyle:IllegalCatch")
public void start() {
LOG.info("{} start", getClass().getSimpleName());
}, L3_INSTALL_DELAY_MILLIS, TimeUnit.MILLISECONDS);
}
+ private void sendArpRequestsToExtGateways() {
+ LOG.trace("Sending ARP requests to exteral gateways");
+ for (Router router : NeutronvpnUtils.routerMap.values()) {
+ sendArpRequestsToExtGateways(router);
+ }
+ }
+
private void sendArpRequestsToExtGatewayTask(Router router) {
LOG.trace("Send ARP requests to external GW for router {}", router);
Port extPort = getRouterExtGatewayPort(router);
}
- private void sendArpRequestsToExtGateways() {
- LOG.trace("Sending ARP requests to exteral gateways");
- for (Router router : NeutronvpnUtils.routerMap.values()) {
- sendArpRequestsToExtGateways(router);
- }
- }
-
+ // TODO Clean up the exception handling
+ @SuppressWarnings("checkstyle:IllegalCatch")
private void sendArpRequest(IpAddress srcIpAddress, IpAddress dstIpAddress, MacAddress srcMacAddress,
String interfaceName) {
if (srcIpAddress == null || dstIpAddress == null) {