Esempio n. 1
0
    def list_domus_configs(self):
        """ domU configuration listing """
        log.log_d("%s: listing domUs configuration" % (self.srv_ip))

        # list filename *.cfg in xen config path
        configs = fapi.list_files(self.srv_ip,
                                  "%s/*.cfg" % (self.xen.confpath_xen),
                                  full=False)

        # return files list without extensions
        return [ ".".join(config.split('.')[0:-1]) for config in configs ]
Esempio n. 2
0
def list_files(self, file_pattern, full = True, use_sudo = False):
    """ list files """
    return __fapi.list_files(self.srv_ip, file_pattern,
                             full = full, use_sudo = use_sudo)