@Singleton public class L2GatewayConnectionUtils extends Object implements AutoCloseable
Constructor and Description |
---|
L2GatewayConnectionUtils(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
ElanClusterUtils elanClusterUtils,
ElanL2GatewayUtils elanL2GatewayUtils,
org.opendaylight.infrautils.jobcoordinator.JobCoordinator jobCoordinator,
ElanL2GatewayMulticastUtils elanL2GatewayMulticastUtils,
L2GatewayCache l2GatewayCache,
HAOpClusteredListener haOpClusteredListener,
ElanInstanceCache elanInstanceCache) |
Modifier and Type | Method and Description |
---|---|
L2GatewayDevice |
addL2DeviceToElanL2GwCache(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,
String l2GwDeviceName) |
void |
addL2GatewayConnection(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input,
String l2GwDeviceName,
org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateways.attributes.l2gateways.L2gateway l2Gateway) |
void |
close() |
void |
deleteL2GatewayConnection(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input) |
static List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection> |
getAllL2gatewayConnections(org.opendaylight.controller.md.sal.binding.api.DataBroker broker) |
static List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection> |
getAssociatedL2GwConnections(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
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 List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateways.attributes.l2gateways.L2gateway> |
getL2gatewayList(org.opendaylight.controller.md.sal.binding.api.DataBroker broker) |
static List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection> |
getL2GwConnectionsByElanName(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
String elanName)
Gets the associated l2 gw connections.
|
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 org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateways.attributes.l2gateways.L2gateway |
getNeutronL2gateway(org.opendaylight.controller.md.sal.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(L2GatewayDevice l2GwDevice) |
@Inject public L2GatewayConnectionUtils(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, ElanClusterUtils elanClusterUtils, ElanL2GatewayUtils elanL2GatewayUtils, org.opendaylight.infrautils.jobcoordinator.JobCoordinator jobCoordinator, ElanL2GatewayMulticastUtils elanL2GatewayMulticastUtils, L2GatewayCache l2GatewayCache, HAOpClusteredListener haOpClusteredListener, ElanInstanceCache elanInstanceCache)
@PreDestroy public void close()
close
in interface AutoCloseable
public static boolean isGatewayAssociatedToL2Device(L2GatewayDevice l2GwDevice)
public static org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateways.attributes.l2gateways.L2gateway getNeutronL2gateway(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid l2GatewayId)
@Nonnull public static List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateways.attributes.l2gateways.L2gateway> getL2gatewayList(org.opendaylight.controller.md.sal.binding.api.DataBroker broker)
@Nonnull public static List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection> getAllL2gatewayConnections(org.opendaylight.controller.md.sal.binding.api.DataBroker broker)
@Nonnull public static List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection> getAssociatedL2GwConnections(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> l2GatewayIds)
broker
- the brokerl2GatewayIds
- the l2 gateway ids@Nonnull public static List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection> getL2GwConnectionsByElanName(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, String elanName)
broker
- the brokerelanName
- the elan Namepublic void addL2GatewayConnection(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input)
public void addL2GatewayConnection(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input, String l2GwDeviceName)
public void addL2GatewayConnection(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input, String l2GwDeviceName, org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateways.attributes.l2gateways.L2gateway l2Gateway)
public void deleteL2GatewayConnection(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input)
public L2GatewayDevice addL2DeviceToElanL2GwCache(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)
protected static boolean isLastL2GwConnBeingDeleted(@Nonnull L2GatewayDevice l2GwDevice)
public 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)
l2GatewayId
- the l2 gateway idCopyright © 2019 OpenDaylight. All rights reserved.