Esempio n. 1
0
    def print_props(cc, args):
        lstmsg = Commands._request_list(cc, API_LST_RSC, MsgLstRsc())

        if lstmsg:
            for rsc in lstmsg.resources:
                if rsc.name == args.resource_name:
                    Commands._print_props(rsc.props)
                    break

        return None
Esempio n. 2
0
    def print_props(cc, args):
        lstmsg = Commands._request_list(cc, API_LST_NODE, MsgLstNode())

        if lstmsg:
            for n in lstmsg.nodes:
                if n.name == args.node_name:
                    Commands._print_props(n.props)
                    break

        return None
Esempio n. 3
0
    def print_props(cc, args):
        lstmsg = Commands._request_list(cc, API_LST_RSC_DFN, MsgLstRscDfn())

        if lstmsg:
            for rsc_dfn in lstmsg.rsc_dfns:
                if rsc_dfn.rsc_name == args.resource_name:
                    Commands._print_props(rsc_dfn.rsc_dfn_props)
                    break

        return None
Esempio n. 4
0
    def print_props(cc, args):
        lstmsg = Commands._request_list(cc, API_LST_STOR_POOL, MsgLstStorPool())

        if lstmsg:
            for stp in lstmsg.stor_pools:
                if stp.stor_pool_name == args.storage_pool_name:
                    Commands._print_props(stp.props)
                    break

        return None