Exemple #1
0
def route_details():
    """Used for table refreshes"""

    details = request.form.get('details').split('-')
    route_details = GetInfo.get_route_detials(netmiko_session,
                                              details[0].split('/')[0],
                                              details[1])

    return render_template('route_detials.html',
                           route=route_details[0],
                           route_detials=route_details[1])
Exemple #2
0
def route_details():
    """Gets ip route details, CLI view"""

    details = request.form.get('details').split('-')
    route_details = GetNetmiko.get_route_detials(netmiko_session,
                                                 details[0].split('/')[0],
                                                 details[1])

    return render_template('route_detials.html',
                           route=route_details[0],
                           route_detials=route_details[1])