示例#1
0
文件: testmac.py 项目: cargious/ocf
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)
示例#2
0
def func2():
    l = SlotAllocator()
    b = l.acquire("second", "am1", "s1")
示例#3
0
def func2():
    l = SlotAllocator()
    b = l.acquire("second", "am1", "s1")
示例#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")