예제 #1
0
파일: tbip.py 프로젝트: esnet/enos
 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
예제 #2
0
 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
예제 #3
0
def createtopo(topology):
    Container.createContainer(topology)
    container = Container.getContainer(topology)
    return container
예제 #4
0
파일: topoctl.py 프로젝트: esnet/enos
def createtopo(topology):
    Container.createContainer(topology)
    container = Container.getContainer(topology)
    return container
예제 #5
0
파일: topology.py 프로젝트: cygmris/enos
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)