Class L2GatewayConnectionUtils
- java.lang.Object
-
- org.opendaylight.netvirt.elan.l2gw.utils.L2GatewayConnectionUtils
-
- All Implemented Interfaces:
java.lang.AutoCloseable
@Singleton public class L2GatewayConnectionUtils extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description L2GatewayConnectionUtils(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, ElanClusterUtils elanClusterUtils, ElanL2GatewayUtils elanL2GatewayUtils, org.opendaylight.infrautils.jobcoordinator.JobCoordinator jobCoordinator, ElanL2GatewayMulticastUtils elanL2GatewayMulticastUtils, L2GatewayCache l2GatewayCache, HAOpClusteredListener haOpClusteredListener, ElanInstanceCache elanInstanceCache, org.opendaylight.genius.utils.hwvtep.HwvtepNodeHACache hwvtepNodeHACache, ElanRefUtil elanRefUtil, L2GatewayServiceRecoveryHandler l2GatewayServiceRecoveryHandler, org.opendaylight.serviceutils.srm.ServiceRecoveryRegistry serviceRecoveryRegistry)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description L2GatewayDevice
addL2DeviceToElanL2GwCache(java.lang.String elanName, L2GatewayDevice l2GatewayDevice, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid l2GwConnId, org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.attributes.Devices l2Device)
void
addL2GatewayConnection(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input)
void
addL2GatewayConnection(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input, @Nullable java.lang.String l2GwDeviceName, @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateways.attributes.l2gateways.L2gateway l2Gateway)
void
addL2GatewayConnection(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input, java.lang.String l2GwDeviceName)
void
close()
void
deleteL2GatewayConnection(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input)
static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection>
getAllL2gatewayConnections(org.opendaylight.mdsal.binding.api.DataBroker broker)
static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection>
getAssociatedL2GwConnections(org.opendaylight.mdsal.binding.api.DataBroker broker, java.util.Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> l2GatewayIds)
Gets the associated l2 gw connections.static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateways.attributes.l2gateways.L2gateway>
getL2gatewayList(org.opendaylight.mdsal.binding.api.DataBroker broker)
static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection>
getL2GwConnectionsByElanName(org.opendaylight.mdsal.binding.api.DataBroker broker, java.lang.String elanName)
Gets the associated l2 gw connections.java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection>
getL2GwConnectionsByL2GatewayId(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid l2GatewayId)
Gets the associated l2 gw connections.static @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateways.attributes.l2gateways.L2gateway
getNeutronL2gateway(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid l2GatewayId)
static boolean
isGatewayAssociatedToL2Device(L2GatewayDevice l2GwDevice)
protected static boolean
isLastL2GwConnBeingDeleted(@NonNull L2GatewayDevice l2GwDevice)
-
-
-
Constructor Detail
-
L2GatewayConnectionUtils
@Inject public L2GatewayConnectionUtils(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, ElanClusterUtils elanClusterUtils, ElanL2GatewayUtils elanL2GatewayUtils, org.opendaylight.infrautils.jobcoordinator.JobCoordinator jobCoordinator, ElanL2GatewayMulticastUtils elanL2GatewayMulticastUtils, L2GatewayCache l2GatewayCache, HAOpClusteredListener haOpClusteredListener, ElanInstanceCache elanInstanceCache, org.opendaylight.genius.utils.hwvtep.HwvtepNodeHACache hwvtepNodeHACache, ElanRefUtil elanRefUtil, L2GatewayServiceRecoveryHandler l2GatewayServiceRecoveryHandler, org.opendaylight.serviceutils.srm.ServiceRecoveryRegistry serviceRecoveryRegistry)
-
-
Method Detail
-
close
@PreDestroy public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
isGatewayAssociatedToL2Device
public static boolean isGatewayAssociatedToL2Device(L2GatewayDevice l2GwDevice)
-
getNeutronL2gateway
public static @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateways.attributes.l2gateways.L2gateway getNeutronL2gateway(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid l2GatewayId)
-
getL2gatewayList
public static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateways.attributes.l2gateways.L2gateway> getL2gatewayList(org.opendaylight.mdsal.binding.api.DataBroker broker)
-
getAllL2gatewayConnections
public static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection> getAllL2gatewayConnections(org.opendaylight.mdsal.binding.api.DataBroker broker)
-
getAssociatedL2GwConnections
public static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection> getAssociatedL2GwConnections(org.opendaylight.mdsal.binding.api.DataBroker broker, java.util.Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> l2GatewayIds)
Gets the associated l2 gw connections.- Parameters:
broker
- the brokerl2GatewayIds
- the l2 gateway ids- Returns:
- the associated l2 gw connections
-
getL2GwConnectionsByElanName
public static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection> getL2GwConnectionsByElanName(org.opendaylight.mdsal.binding.api.DataBroker broker, java.lang.String elanName)
Gets the associated l2 gw connections.- Parameters:
broker
- the brokerelanName
- the elan Name- Returns:
- the associated l2 gw connection with elan
-
addL2GatewayConnection
public void addL2GatewayConnection(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input)
-
addL2GatewayConnection
public void addL2GatewayConnection(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input, java.lang.String l2GwDeviceName)
-
addL2GatewayConnection
public void addL2GatewayConnection(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input, @Nullable java.lang.String l2GwDeviceName, @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateways.attributes.l2gateways.L2gateway l2Gateway)
-
deleteL2GatewayConnection
public void deleteL2GatewayConnection(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input)
-
addL2DeviceToElanL2GwCache
public L2GatewayDevice addL2DeviceToElanL2GwCache(java.lang.String elanName, L2GatewayDevice l2GatewayDevice, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid l2GwConnId, org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.attributes.Devices l2Device)
-
isLastL2GwConnBeingDeleted
protected static boolean isLastL2GwConnBeingDeleted(@NonNull L2GatewayDevice l2GwDevice)
-
getL2GwConnectionsByL2GatewayId
public java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection> getL2GwConnectionsByL2GatewayId(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid l2GatewayId)
Gets the associated l2 gw connections.- Parameters:
l2GatewayId
- the l2 gateway id- Returns:
- the associated l2 gw connections
-
-