#
# These following accessors are mostly of interest for implementing the
-# GetSliceFamily method, that takes into account the vref attribute,
-# as well as the 3 attributes below, and the PLC_FLAVOUR config category
+# The GetSliceFamily and GetNodeFlavour methods take into account various tags,
+# esp. arch, fcdistro, pldistro, vref (for slices) and deployment (for nodes)
+# as well as the global PLC_FLAVOUR config category
+# in order to return all configuration details for a given node or slice
### slice vref
define_accessors(current_module, Slice, "Vref", "vref",
"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"',