Class L2GatewayConnectionUtils

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    @Singleton
    public class L2GatewayConnectionUtils
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • close

        @PreDestroy
        public void close()
        Specified by:
        close in interface java.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 broker
        l2GatewayIds - 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 broker
        elanName - 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