#################### slice tag types
# xxx this should move to PLC/Accessors
+# vref is now defined in an accessor
+# initscript is now defined in an accessor
+
# Setup default slice tag types
slicetag_types = \
[
'description': "Slice enabled (1 or unset) or suspended (0)",
'category' : 'slice/general'},
- # Slice reference image
- {'tagname': "vref",
- 'description': "Reference image",
- 'category' : 'slice/config',
- 'roles' : ['admin','pi','user']},
-
- # Slice initialization script
- {'tagname': "initscript",
- 'description': "Slice initialization script",
- 'category' : 'slice/usertools',
- 'roles' : ['admin','pi','user']},
-
# IP Addresses for a Slice
{'tagname': "ip_addresses",
'description': "Add an ip address to a slice/sliver.",
'description': "Disk quota (1k disk blocks)",
'category' : 'slice/rspec'},
+ # deprecated in nov. 2010
# Proper operations
- {'tagname': "proper_op",
- 'description': "Proper operation (e.g. bind_socket)",
- 'category' : 'slice/rspec'},
+ #{'tagname': "proper_op",
+ # 'description': "Proper operation (e.g. bind_socket)",
+ # 'category' : 'slice/rspec'},
# VServer capabilities
{'tagname': "capabilities",
# Vsys
{'tagname': "vsys",
- 'description': "Bind vsys script fd's to a slice's vsys directory.",
+ 'description': "Bind vsys script fd's to a slice's /vsys directory.",
'category' : 'slice/rspec'},
# CoDemux
'category' : 'slice/rspec',
'roles' : ['admin','pi','user']},
- # Security capability to empower a slice to make an authenticated API call, set by silverauth NM plugin.
- {'tagname': "hmac",
- 'description': "Sliver authorization key.",
- 'category' : 'slice/auth',
- 'roles': ['admin','pi']},
-
- {'tagname': "ssh_key",
- 'description': "Sliver public ssh key.",
- 'category' : 'slice/auth',
- 'roles': ['admin','pi']},
-
# Capability to give a sliver access to unused raw disk
{'tagname': "rawdisk",
'description': "map unused raw disk devices into the slice",
'description': "Is a default Distributed Rate Limiting slice (1) or not (0 or unset)",
'category' : 'slice/general'},
- # OMF controlled slice
- {'tagname': "omf_control",
- 'description': "Pre-install and configure OMF Resource Controller in slice if set",
- 'category' : 'slice/usertools'},
]
+import resource
# add in the platform supported rlimits to the default_attribute_types
for entry in resource.__dict__.keys() + ["VLIMIT_OPENFD"]:
if entry.find("LIMIT_")==1: