+# $Id$
+# $URL$
+
"""
vsys sub-configurator. Maintains configuration parameters associated with vsys scripts.
All slice attributes with the prefix vsys_ are written into configuration files on the
privs = {}
# Parse attributes and update dict of scripts
+ if 'slivers' not in data:
+ logger.log_missing_data("vsys_privs.GetSlivers",'slivers')
+ return
for sliver in data['slivers']:
slice = sliver['name']
for attribute in sliver['attributes']:
and cur_privs[slice].has_key(k)
and cur_privs[slice][k] == v):
# The binding has not changed
- print "Binding for %s, %s has not changed"%(slice,k)
pass
else:
v_file = os.path.join(slice_dir, k)
data = '\n'.join(v)
f.write(data)
f.close()
+ logger.log("Added vsys attribute %s for %s"%(k,slice))
# Remove files and directories
# that are invalid