Exemplo n.º 1
0
def main():
    """
    Execute the functions from above
    """
    mvip, user, user_pass, mvip_node = get_inputs()
    headers, url = build_auth(mvip, user, user_pass, mvip_node)
    node_session_array = get_iscsi_session_info(headers, url)
    hdr1, hdr2 = get_table_headers()
    build_table(hdr1, hdr2, node_session_array)
Exemplo n.º 2
0
def main():
    """
    Execute the functions from above
    """
    mvip, user, user_pass, mvip_node, search_id = get_inputs()
    headers, url = build_auth(mvip, user, user_pass, mvip_node)
    iscsi_session_array = get_iscsi_session_info(headers, url, search_id)
    hdr_list = get_table_headers()
    build_table(hdr_list, iscsi_session_array)
Exemplo n.º 3
0
def main():
    """
    Call the functions created above
    """
    mvip, user, user_pass, mvip_node = get_inputs()
    headers, url = build_auth(mvip, user, user_pass, mvip_node)
    payload = build_payload()
    response_json = connect_cluster(headers, url, payload)
    tbl_headers, vol_dict = build_output(response_json)
    build_table(tbl_headers, vol_dict)
Exemplo n.º 4
0
def main():
    """
    Execute the above functions
    """
    mvip, user, user_pass, mvip_node = get_inputs()
    headers, url = build_auth(mvip, user, user_pass, mvip_node)
    payload = build_payload()
    response_json = connect_cluster(headers, url, payload)
    cls_stat_dict = build_output(mvip, response_json)
    build_table(cls_stat_dict)
Exemplo n.º 5
0
def main():
    """
    Do the work
    """
    mvip, user, user_pass, mvip_node = get_inputs()
    headers, url = build_auth(mvip, user, user_pass, mvip_node)
    payload = build_virt_net_payload()
    response_json = connect_cluster(headers, url, payload)
    tbl_headers, virt_net_list = get_virt_net(response_json)
    build_table(tbl_headers, virt_net_list)