Esempio n. 1
0
 def init_permissions(self):
     """
     Initialize the permissions.
     """
     TNArchipelEntity.init_permissions(self)
     self.permission_center.create_permission(
         "alloc", "Authorizes users to allocate new virtual machines",
         False)
     self.permission_center.create_permission(
         "free", "Authorizes users to free allocated virtual machines",
         False)
     self.permission_center.create_permission(
         "rostervm", "Authorizes users to access the hypervisor's roster",
         False)
     self.permission_center.create_permission(
         "clone", "Authorizes users to clone virtual machines", False)
     self.permission_center.create_permission(
         "ip", "Authorizes users to get hypervisor's IP address", False)
     self.permission_center.create_permission(
         "migrationinfo",
         "Authorizes users to get the migration informations", False)
     self.permission_center.create_permission(
         "capabilities",
         "Authorizes users to access the hypervisor capabilities", False)
     self.permission_center.create_permission(
         "manage",
         "Authorizes users make Archipel able to manage external virtual machines",
         False)
     self.permission_center.create_permission(
         "unmanage",
         "Authorizes users to make Archipel able to unmanage virtual machines",
         False)
Esempio n. 2
0
 def init_permissions(self):
     """
     Initialize the permissions.
     """
     TNArchipelEntity.init_permissions(self)
     self.permission_center.create_permission("alloc", "Authorizes users to allocate new virtual machines", False)
     self.permission_center.create_permission("free", "Authorizes users to free allocated virtual machines", False)
     self.permission_center.create_permission("rostervm", "Authorizes users to access the hypervisor's roster", False)
     self.permission_center.create_permission("clone", "Authorizes users to clone virtual machines", False)
     self.permission_center.create_permission("ip", "Authorizes users to get hypervisor's IP address", False)
     self.permission_center.create_permission("uri", "Authorizes users to get the hypervisor's libvirt URI", False)
     self.permission_center.create_permission("capabilities", "Authorizes users to access the hypervisor capabilities", False)
Esempio n. 3
0
 def init_permissions(self):
     """
     Initialize the permissions.
     """
     TNArchipelEntity.init_permissions(self)
     self.permission_center.create_permission("alloc", "Authorizes users to allocate new virtual machines", False)
     self.permission_center.create_permission("free", "Authorizes users to free allocated virtual machines", False)
     self.permission_center.create_permission("rostervm", "Authorizes users to access the hypervisor's roster", False)
     self.permission_center.create_permission("clone", "Authorizes users to clone virtual machines", False)
     self.permission_center.create_permission("ip", "Authorizes users to get hypervisor's IP address", False)
     self.permission_center.create_permission("migrationinfo", "Authorizes users to get the migration informations", False)
     self.permission_center.create_permission("capabilities", "Authorizes users to access the hypervisor capabilities", False)
     self.permission_center.create_permission("manage", "Authorizes users make Archipel able to manage external virtual machines", False)
     self.permission_center.create_permission("unmanage", "Authorizes users to make Archipel able to unmanage virtual machines", False)
Esempio n. 4
0
 def init_permissions(self):
     """
     Initialize the permissions.
     """
     TNArchipelEntity.init_permissions(self)
Esempio n. 5
0
 def init_permissions(self):
     """
     Initialize the permissions.
     """
     TNArchipelEntity.init_permissions(self)