Beispiel #1
0
from vt_manager.controller.MacAllocator import MACallocator
from vt_manager.controller.SlotAllocator import SlotAllocator
from vt_manager.models.Slot import Slot
from vt_manager.models.Mac import Mac


sa=SlotAllocator()
ma=MACallocator()
s = sa.acquire("projecto","agg","slice2")
m = ma.acquire("projecto","agg","slice2")
print m

#ma.release(m.pprex_mac)
Beispiel #2
0
def func2():
    l = SlotAllocator()
    b = l.acquire("second", "am1", "s1")
Beispiel #3
0
def func2():
    l = SlotAllocator()
    b = l.acquire("second", "am1", "s1")
Beispiel #4
0
from vt_manager.controller.SlotAllocator import SlotAllocator
from vt_manager.models import Slot
m = SlotAllocator()
a = m.acquire("p7", "am1", "s1")
b = m.acquire("p8", "am1", "s2")