Class L2gwServiceProvider

  • All Implemented Interfaces:
    org.opendaylight.infrautils.inject.Lifecycle, IL2gwService

    @Singleton
    public class L2gwServiceProvider
    extends org.opendaylight.infrautils.inject.AbstractLifecycle
    implements IL2gwService
    Created by eaksahu on 3/15/2017.
    • Constructor Summary

      Constructors 
      Constructor Description
      L2gwServiceProvider​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, ElanClusterUtils elanClusterUtils, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmRpcService, L2GatewayConnectionUtils l2GatewayConnectionUtils)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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, java.lang.String l2GwDeviceName, org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateways.attributes.l2gateways.L2gateway l2Gateway)  
      java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection> getAssociatedL2GwConnections​(java.util.Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> l2GatewayIds)  
      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)  
      void provisionItmAndL2gwConnection​(L2GatewayDevice l2GwDevice, java.lang.String psName, java.lang.String hwvtepNodeId, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress tunnelIpAddr)  
      protected void start()  
      protected void stop()  
      • Methods inherited from class org.opendaylight.infrautils.inject.AbstractLifecycle

        checkIsRunning, destroy, init, isRunning
      • Methods inherited from class java.lang.Object

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

      • L2gwServiceProvider

        @Inject
        public L2gwServiceProvider​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                   ElanClusterUtils elanClusterUtils,
                                   org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmRpcService,
                                   L2GatewayConnectionUtils l2GatewayConnectionUtils)
    • Method Detail

      • provisionItmAndL2gwConnection

        public void provisionItmAndL2gwConnection​(L2GatewayDevice l2GwDevice,
                                                  java.lang.String psName,
                                                  java.lang.String hwvtepNodeId,
                                                  org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress tunnelIpAddr)
        Specified by:
        provisionItmAndL2gwConnection in interface IL2gwService
      • 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)
        Specified by:
        getL2GwConnectionsByL2GatewayId in interface IL2gwService
      • addL2GatewayConnection

        public void addL2GatewayConnection​(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input)
        Specified by:
        addL2GatewayConnection in interface IL2gwService
      • addL2GatewayConnection

        public void addL2GatewayConnection​(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection input,
                                           java.lang.String l2GwDeviceName,
                                           org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateways.attributes.l2gateways.L2gateway l2Gateway)
        Specified by:
        addL2GatewayConnection in interface IL2gwService
      • getAssociatedL2GwConnections

        public java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection> getAssociatedL2GwConnections​(java.util.Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> l2GatewayIds)
        Specified by:
        getAssociatedL2GwConnections in interface IL2gwService
      • start

        protected void start()
        Specified by:
        start in class org.opendaylight.infrautils.inject.AbstractLifecycle
      • stop

        protected void stop()
        Specified by:
        stop in class org.opendaylight.infrautils.inject.AbstractLifecycle