def get_ipcontainer(): """ This method returns the IP container used to store IP address in persistent storage""" container = Container.getContainer(IPManagement.IPCONTAINER) if container is None: Container.createContainer(IPManagement.IPCONTAINER) container = Container.getContainer(IPManagement.IPCONTAINER) return container
def createtopo(topology): Container.createContainer(topology) container = Container.getContainer(topology) return container
def createdb(containerName): user = KernelThread.currentKernelThread().getUser() if not BootStrap.getBootStrap().getDataBase().collectionExists(user.getName(),containerName): Container.createContainer(user.getName(),containerName) container = Container.getContainer(containerName)