Interface NatSwitchCache

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addSwitch​(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      Adds a switch to the scheduler pool.
      java.util.Set<org.opendaylight.yangtools.yang.common.Uint64> getSwitchesConnectedToExternal​(java.lang.String providerNet)
      Return the switches which has external bridge mappings.
      boolean isSwitchConnectedToExternal​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, java.lang.String providerNet)
      Check whether the switch has external bridge mappings.
      void register​(NatSwitchCacheListener centralizedSwitchCacheListener)
      Register for switch added notification.
      void removeSwitch​(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      Removes a switch from the scheduler pool.
    • Method Detail

      • addSwitch

        void addSwitch​(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
        Adds a switch to the scheduler pool.
        Parameters:
        dpnId - the switch id.
      • removeSwitch

        void removeSwitch​(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
        Removes a switch from the scheduler pool.
        Parameters:
        dpnId - the switch id.
      • isSwitchConnectedToExternal

        boolean isSwitchConnectedToExternal​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                            java.lang.String providerNet)
        Check whether the switch has external bridge mappings.
        Parameters:
        dpnId - the switch id.
        providerNet - the provider network.
        Returns:
        whether connected to provider network or not.
      • getSwitchesConnectedToExternal

        java.util.Set<org.opendaylight.yangtools.yang.common.Uint64> getSwitchesConnectedToExternal​(java.lang.String providerNet)
        Return the switches which has external bridge mappings.
        Parameters:
        providerNet - the provider network.
        Returns:
        the set of switches which has the mapping
      • register

        void register​(NatSwitchCacheListener centralizedSwitchCacheListener)
        Register for switch added notification.
        Parameters:
        centralizedSwitchCacheListener - the instance of a listener