Interface SnatServiceListener

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean addCentralizedRouter​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, Routers routers, org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId, org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      Adds flows for centralized switch for the dpnId.
      boolean addCentralizedRouterAllSwitch​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, Routers routers, org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId)
      Adds flows for centralized switch for all dpns having ports on the router subnet.
      boolean addSnat​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, Routers routers, org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId, org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      Adds snat flows for the dpnId.
      boolean addSnatAllSwitch​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, Routers routers, org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId)
      Adds snat flows for all dpns having ports on the router subnet.
      boolean handleRouterUpdate​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, Routers origRouter, Routers updatedRouter)
      Handles changes to external router.
      boolean removeCentralizedRouter​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, Routers routers, org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId, org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      Removes flows for centralized switch for the dpnId.
      boolean removeCentralizedRouterAllSwitch​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, Routers routers, org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId)
      Removes flows for centralized switch for all dpns having ports on the router subnet.
      boolean removeSnat​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, Routers routers, org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId, org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      Removes snat flows for the dpnId.
      boolean removeSnatAllSwitch​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, Routers routers, org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId)
      Removes snat flows for all dpns having ports on the router subnet.
    • Method Detail

      • addSnatAllSwitch

        boolean addSnatAllSwitch​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                                 Routers routers,
                                 org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId)
        Adds snat flows for all dpns having ports on the router subnet.
        Parameters:
        confTx - The transaction to use.
        routers - the router.
        primarySwitchId - the primaryswitchId
        Returns:
        returns success/failure.
      • addSnat

        boolean addSnat​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                        Routers routers,
                        org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId,
                        org.opendaylight.yangtools.yang.common.Uint64 dpnId)
        Adds snat flows for the dpnId.
        Parameters:
        confTx - The transaction to use.
        routers - the router.
        primarySwitchId - the primaryswitchId.
        dpnId - the dpnId for which the flows needs to be added.
        Returns:
        returns success/failure.
      • removeSnatAllSwitch

        boolean removeSnatAllSwitch​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                                    Routers routers,
                                    org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId)
                             throws java.util.concurrent.ExecutionException,
                                    java.lang.InterruptedException
        Removes snat flows for all dpns having ports on the router subnet.
        Parameters:
        confTx - The transaction to use.
        routers - the router.
        primarySwitchId - the primaryswitchId
        Returns:
        returns success/failure.
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • removeSnat

        boolean removeSnat​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                           Routers routers,
                           org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId,
                           org.opendaylight.yangtools.yang.common.Uint64 dpnId)
                    throws java.util.concurrent.ExecutionException,
                           java.lang.InterruptedException
        Removes snat flows for the dpnId.
        Parameters:
        confTx - The transaction to use.
        routers - the router.
        primarySwitchId - the primaryswitchId.
        dpnId - the dpnId for which the flows needs to be removed.
        Returns:
        returns success/failure.
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • addCentralizedRouterAllSwitch

        boolean addCentralizedRouterAllSwitch​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                                              Routers routers,
                                              org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId)
        Adds flows for centralized switch for all dpns having ports on the router subnet.
        Parameters:
        confTx - The transaction to use.
        routers - the router.
        primarySwitchId - the primaryswitchId.
        Returns:
        returns success/failure.
      • addCentralizedRouter

        boolean addCentralizedRouter​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                                     Routers routers,
                                     org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId,
                                     org.opendaylight.yangtools.yang.common.Uint64 dpnId)
        Adds flows for centralized switch for the dpnId.
        Parameters:
        confTx - The transaction to use.
        routers - the router.
        primarySwitchId - the primaryswitchId.
        dpnId - the dpnId for which the flows needs to be added.
        Returns:
        returns success/failure.
      • removeCentralizedRouterAllSwitch

        boolean removeCentralizedRouterAllSwitch​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                                                 Routers routers,
                                                 org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId)
                                          throws java.util.concurrent.ExecutionException,
                                                 java.lang.InterruptedException
        Removes flows for centralized switch for all dpns having ports on the router subnet.
        Parameters:
        confTx - The transaction to use.
        routers - the router.
        primarySwitchId - the primaryswitchId.
        Returns:
        returns success/failure.
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • removeCentralizedRouter

        boolean removeCentralizedRouter​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                                        Routers routers,
                                        org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId,
                                        org.opendaylight.yangtools.yang.common.Uint64 dpnId)
                                 throws java.util.concurrent.ExecutionException,
                                        java.lang.InterruptedException
        Removes flows for centralized switch for the dpnId.
        Parameters:
        confTx - The transaction to use.
        routers - the router.
        primarySwitchId - the primaryswitchId.
        dpnId - the dpnId for which the flows needs to be removed.
        Returns:
        returns success/failure.
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • handleRouterUpdate

        boolean handleRouterUpdate​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                                   Routers origRouter,
                                   Routers updatedRouter)
                            throws java.util.concurrent.ExecutionException,
                                   java.lang.InterruptedException
        Handles changes to external router.
        Parameters:
        origRouter - the Orignal router.
        updatedRouter - the Updated router.
        Returns:
        returns success/failure.
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException