Class VniUtilsImpl

  • All Implemented Interfaces:
    VniUtils

    @Singleton
    public class VniUtilsImpl
    extends java.lang.Object
    implements VniUtils
    • Constructor Summary

      Constructors 
      Constructor Description
      VniUtilsImpl​(NetworkConfig networkConfig, IdManagerService idManagerService, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.opendaylight.yangtools.yang.common.Uint64 getVNI​(java.lang.String vniKey)  
      com.google.common.base.Optional<IdPool> getVxlanVniPool()  
      void releaseVNI​(java.lang.String vniKey)  
      • Methods inherited from class java.lang.Object

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

      • VniUtilsImpl

        @Inject
        public VniUtilsImpl​(NetworkConfig networkConfig,
                            IdManagerService idManagerService,
                            org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
                     throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
        Throws:
        org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
    • Method Detail

      • getVNI

        public org.opendaylight.yangtools.yang.common.Uint64 getVNI​(java.lang.String vniKey)
                                                             throws java.util.concurrent.ExecutionException,
                                                                    java.lang.InterruptedException
        Specified by:
        getVNI in interface VniUtils
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • releaseVNI

        public void releaseVNI​(java.lang.String vniKey)
                        throws java.util.concurrent.ExecutionException,
                               java.lang.InterruptedException
        Specified by:
        releaseVNI in interface VniUtils
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • getVxlanVniPool

        public com.google.common.base.Optional<IdPool> getVxlanVniPool()
                                                                throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
        Specified by:
        getVxlanVniPool in interface VniUtils
        Throws:
        org.opendaylight.controller.md.sal.common.api.data.ReadFailedException