use of org.opendaylight.netvirt.neutronvpn.api.l2gw.L2GatewayDevice in project netvirt by opendaylight.
the class L2GatewayListener method addL2Device.
private synchronized void addL2Device(Devices l2Device, L2gateway input) {
String l2DeviceName = l2Device.getDeviceName();
L2GatewayDevice l2GwDevice = l2GatewayCache.addOrGet(l2DeviceName);
l2GwDevice.addL2GatewayId(input.getUuid());
if (l2GwDevice.getHwvtepNodeId() == null) {
LOG.info("L2GW provisioning skipped for device {}", l2DeviceName);
} else {
LOG.info("Provisioning l2gw for device {}", l2DeviceName);
l2gwService.provisionItmAndL2gwConnection(l2GwDevice, l2DeviceName, l2GwDevice.getHwvtepNodeId(), l2GwDevice.getTunnelIp());
}
}
Aggregations