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)
def func2(): l = SlotAllocator() b = l.acquire("second", "am1", "s1")
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")