X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FAccessors%2FAccessors_standard.py;h=5e54437eab5f2d26df64e7c3dec297edbf21c163;hb=2f01db56f89dc123c984424d51ecd81dc4017b2e;hp=6e0f4911dec2b6059f12ae157eeff0a86a00788d;hpb=a8a5f0ee7682da1b801aecb2f430dc003c08ffa0;p=plcapi.git diff --git a/PLC/Accessors/Accessors_standard.py b/PLC/Accessors/Accessors_standard.py index 6e0f491..5e54437 100644 --- a/PLC/Accessors/Accessors_standard.py +++ b/PLC/Accessors/Accessors_standard.py @@ -53,6 +53,12 @@ define_accessors(current_module, [Slice,Node], "Fcdistro", "fcdistro", "node/slice/config", "Linux distribution to use for node or slivers", set_roles=["admin","pi","user","tech","node"], expose_in_api=True) +# the virtualization model to use - this is only used by the bootmanager for +# picking the right options e.g. prior to reinstalling +# see PLC_FLAVOUR_VIRT_MAP to see how the default gets computed +define_accessors(current_module, Node, "Virt", "virt", + "node/operation", 'typically "vs" or "lxc"', + set_roles=["admin"], expose_in_api=True) # node deployment (alpha, beta, ...) define_accessors(current_module, Node, "Deployment", "deployment", "node/operation", 'typically "alpha", "beta", or "production"',