change the way 'vref' gets set on omf-control'ed slivers
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 10 Mar 2010 15:51:51 +0000 (15:51 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 10 Mar 2010 15:51:51 +0000 (15:51 +0000)
plugins/omf_vref.py [deleted file]

diff --git a/plugins/omf_vref.py b/plugins/omf_vref.py
deleted file mode 100644 (file)
index 2b41b52..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#
-# $Id$
-# $URL$
-#
-# NodeManager plugin - first step of handling omf_controlled slices
-
-"""
-Overwrites the 'vref' tag of slivers controlled by OMF so sm.py does the right thing
-Needs to be done the 'sm' module kicks in
-"""
-
-import logger
-
-# do this early, before step 10
-priority = 4
-
-def start(options, conf):
-    logger.log("omf_vref: plugin starting up...")
-
-def GetSlivers(data, conf = None, plc = None):
-    if 'accounts' not in data: 
-        logger.log_missing_data("omf_vref.GetSlivers",'accounts')
-        return
-
-    for sliver in data['slivers']:
-        name=sliver['name']
-        for chunk in sliver['attributes']:
-            if chunk['tagname']=='omf_control':
-                sliver['vref']='omf'
-                logger.log('omf_vref: %s now has vref==omf' % name)