'huawei execute-action'

def execute_action(self, xml_str):

    con_obj = None
    try:
        con_obj = self.mc.action(action=xml_str)
    except RPCError:
        err = get_exception()
        self._module.fail_json(msg=('Error:    %s' % str(err).replace('\r\n', '')))
    except TimeoutExpiredError:
        raise
    return con_obj.xml
