(self)
return self._lxd_name
Returns the name of the container that is used in the scope of LXD.

        This name id supposed to be unique among all the containers managed by LXD.
Returns the name of the container that is used in the scope of LXD.
Returns the name of the container that is used in the scope of LXD .
def lxd_name(self):
        """ Returns the name of the container that is used in the scope of LXD.

        This name id supposed to be unique among all the containers managed by LXD.
        """
        # Note: all container names must be a valid hostname! That is: maximum 63 characters, no
        # dots, no digit at first position, made entirely of letters/digits/hyphens, ...
        if not hasattr(self, '_lxd_name'):
            lxd_name_prefix = '{project_name}-{name}'.format(
                project_name=self.project_name, name=self.name)
            # We compute a project ID based on inode numbers in order to ensure that our LXD names
            # are unique.
            project_id = folderid(self.homedir)
            self._lxd_name = '{prefix}-{id}'.format(
                prefix=lxd_name_prefix[:63 - len(project_id)], id=project_id)
        return self._lxd_name
def lxd_name ( self ) : # Note: all container names must be a valid hostname! That is: maximum 63 characters, no # dots, no digit at first position, made entirely of letters/digits/hyphens, ... if not hasattr ( self , '_lxd_name' ) : lxd_name_prefix = '{project_name}-{name}' . format ( project_name = self . project_name , name = self . name ) # We compute a project ID based on inode numbers in order to ensure that our LXD names # are unique. project_id = folderid ( self . homedir ) self . _lxd_name = '{prefix}-{id}' . format ( prefix = lxd_name_prefix [ : 63 - len ( project_id ) ] , id = project_id ) return self . _lxd_name