5 # NodeManager plugin - first step of handling omf_controlled slices
8 Overwrites the 'vref' tag of slivers controlled by OMF so sm.py does the right thing
9 Needs to be done the 'sm' module kicks in
14 # do this early, before step 10
17 def start(options, conf):
18 logger.log("omf_vref: plugin starting up...")
20 def GetSlivers(data, conf = None, plc = None):
21 if 'accounts' not in data:
22 logger.log_missing_data("omf_vref.GetSlivers",'accounts')
25 for sliver in data['slivers']:
27 for chunk in sliver['attributes']:
28 if chunk['tagname']=='omf_control':
30 logger.log('omf_vref: %s now has vref==omf' % name)