--- xen-unstable.hg/tools/python/xen/xm/activatepolicy.py | 86 ++++++++++++ xen-unstable.hg/tools/python/xen/xm/addlabel.py | 125 +++++++++++++----- xen-unstable.hg/tools/python/xen/xm/cfgbootpolicy.py | 72 ++++++++-- xen-unstable.hg/tools/python/xen/xm/create.dtd | 7 - xen-unstable.hg/tools/python/xen/xm/create.py | 22 --- xen-unstable.hg/tools/python/xen/xm/getlabel.py | 45 +++++- xen-unstable.hg/tools/python/xen/xm/getpolicy.py | 94 +++++++++++++ xen-unstable.hg/tools/python/xen/xm/labels.py | 37 +++++ xen-unstable.hg/tools/python/xen/xm/loadpolicy.py | 32 ++++ xen-unstable.hg/tools/python/xen/xm/main.py | 70 ++++++---- xen-unstable.hg/tools/python/xen/xm/makepolicy.py | 14 +- xen-unstable.hg/tools/python/xen/xm/resources.py | 33 +++- xen-unstable.hg/tools/python/xen/xm/rmlabel.py | 65 +++++++-- xen-unstable.hg/tools/python/xen/xm/setpolicy.py | 117 ++++++++++++++++ xen-unstable.hg/tools/python/xen/xm/xenapi_create.py | 55 +++++++ 15 files changed, 746 insertions(+), 128 deletions(-) Index: root/xen-unstable.hg/tools/python/xen/xm/addlabel.py =================================================================== --- root.orig/xen-unstable.hg/tools/python/xen/xm/addlabel.py +++ root/xen-unstable.hg/tools/python/xen/xm/addlabel.py @@ -25,17 +25,29 @@ import sys from xen.util import dictio from xen.util import security from xen.xm.opts import OptionError +from xen.util import xsconstants +from xen.xm import main as xm_main +from xen.xm.main import server def help(): return """ Format: xm addlabel