def stor_judge(self):
        args = self.args
        if args.vtel_sub == 'stor':
            if args.stor_sub in ['node', 'n']:
                self.case_node()
            elif args.stor_sub in ['resource', 'r']:
                self.case_resource()
            elif args.stor_sub in ['storagepool', 'sp']:
                self.case_storagepool()
            elif args.stor_sub in ['snap', 'sn']:
                self.case_snap()

            elif args.db:
                db = linstordb.LINSTORDB()
                handle = SocketSend()
                handle.send_result(db.data_base_dump)
            else:
                self.cmd.vtel_stor.print_help()
Пример #2
0
 def sql_script(self, *args):
     db = linstordb.LINSTORDB()
     return db.data_base_dump()
Пример #3
0
 def getdb(self):
     db = linstordb.LINSTORDB()
     handle = SocketSend()
     handle.send_result(db.data_base_dump)  # get sql_scipt