ucscsdk/ucsccoreutils.py
def extract_mo_tree_from_config_method_response(method_response,
                                                depth=None,
                                                show_level=[],
                                                print_tree=False,
                                                tree_dict={}):
    """
    extracts tree structure of any managed object from config method response

    Args:
        method_response (object): ExternalMethod
        depth (int or None): last level to process
        show_level (int list): levels to display
        print_tree (bool): if True, print mo tree
        tree_dict (dict): by default {}

    Returns:
        dictionary

    Example:
        response=handle.query_dn("org-root", need_response=True)\n
        tree_dict = write_mo_tree(response, depth=3, show_level=[1, 3])\n
    """

    current_mo_list = method_response.out_configs.child
    for current_mo in current_mo_list:
        level = 0
        tree_dict = write_mo_tree(current_mo, level, depth,
                                  show_level, print_tree,
                                  tree_dict)
    return tree_dict

    extracts tree structure of any managed object from config method response

    Args:
        method_response (object): ExternalMethod
        depth (int or None): last level to process
        show_level (int list): levels to display
        print_tree (bool): if True, print mo tree
        tree_dict (dict): by default {}

    Returns:
        dictionary

    Example:
        response=handle.query_dn("org-root", need_response=True)\n
        tree_dict = write_mo_tree(response, depth=3, show_level=[1, 3])\n
    
extracts tree structure of any managed object from config method response
extracts tree structure of any managed object from config method response
def extract_mo_tree_from_config_method_response(method_response,
                                                depth=None,
                                                show_level=[],
                                                print_tree=False,
                                                tree_dict={}):
    current_mo_list = method_response.out_configs.child
    for current_mo in current_mo_list:
        level = 0
        tree_dict = write_mo_tree(current_mo, level, depth,
                                  show_level, print_tree,
                                  tree_dict)
    return tree_dict
def extract_mo_tree_from_config_method_response ( method_response , depth = None , show_level = [ ] , print_tree = False , tree_dict = { } ) : current_mo_list = method_response . out_configs . child for current_mo in current_mo_list : level = 0 tree_dict = write_mo_tree ( current_mo , level , depth , show_level , print_tree , tree_dict ) return tree_dict
extracts tree structure of any managed object from config method response
extracts tree structure of any managed object from config method response
"""
    extracts tree structure of any managed object from config method response

    Args:
        method_response (object): ExternalMethod
        depth (int or None): last level to process
        show_level (int list): levels to display
        print_tree (bool): if True, print mo tree
        tree_dict (dict): by default {}

    Returns:
        dictionary

    Example:
        response=handle.query_dn("org-root", need_response=True)\n
        tree_dict = write_mo_tree(response, depth=3, show_level=[1, 3])\n
    """
None
method_response
None
depth
last level to process
last level to process
show_level
levels to display
levels to display
print_tree
if True, print mo tree
if True print mo tree
tree_dict
by default {}
by default {}
examples
response=handle.query_dn("org-root", need_response=True)\n
tree_dict = write_mo_tree(response, depth=3, show_level=[1, 3])\n
response = handle . query_dn ( " org - root " need_response = True ) \ n tree_dict = write_mo_tree ( response depth = 3 show_level = [ 1 3 ] ) \ n