2 def deploy(ec_weakref, xml):
3 from neco.util.parser import XMLParser
5 # parse xml and build topology graph
7 box = parser.from_xml(xml)
9 # instantiate resource boxes
12 # allocate physical resources
13 # configure physical resources
14 # allocate virtual resources
15 # configure virtual resources
16 # allocate software resources
17 # configure software resources
18 # schedule application start/stop