Optional<DpnInterfaces> existingElanDpnInterfaces = elanUtils.read(broker,
LogicalDatastoreType.OPERATIONAL, elanDpnInterfaces);
if (!existingElanDpnInterfaces.isPresent()) {
isFirstInterfaceInDpn = true;
dpnInterfaces = createElanInterfacesList(elanInstanceName, interfaceName, dpId, tx);
<BUG>if (ElanUtils.isVxlan(elanInstance)) {
setExternalTunnelTable(dpId, elanInstance);</BUG>
}
elanL2GatewayUtils.installElanL2gwDevicesLocalMacsInDpn(dpId, elanInstance, interfaceName);
} else {

Optional<DpnInterfaces> existingElanDpnInterfaces = elanUtils.read(broker,
LogicalDatastoreType.OPERATIONAL, elanDpnInterfaces);
if (!existingElanDpnInterfaces.isPresent()) {
isFirstInterfaceInDpn = true;
dpnInterfaces = createElanInterfacesList(elanInstanceName, interfaceName, dpId, tx);
if ((ElanUtils.isVxlan(elanInstance) || (ElanUtils.isVxlanSegment(elanInstance)))) {
setExternalTunnelTable(dpId, elanInstance);
}
elanL2GatewayUtils.installElanL2gwDevicesLocalMacsInDpn(dpId, elanInstance, interfaceName);
} else {
