def ping(source): """Render OSPF configuration/Form""" reformat_interface = source.replace('%2f', '/') vrfs = GetInfo.get_vrfs(netmiko_session) return render_template('ping.html', source=reformat_interface, vrfs=vrfs)
def modify_inteface(interface): """POST BGP configuration from form data""" reformat_interface = interface.replace('%2f', '/') vrfs = GetInfo.get_vrfs(netmiko_session) return render_template('modify_interface.html', interface=reformat_interface, vrfs=vrfs, mgmt_int=management_int)
def new_interface(): """POST BGP configuration from form data""" vrfs = GetInfo.get_vrfs(netmiko_session) return render_template('new_int_form.html', interfaces=unassigned_ints, vrfs=vrfs, interface_numbers=interface_nums)
def modify_inteface(interface): """POST BGP configuration from form data""" reformat_interface = interface.replace('%2f', '/') vrfs = GetInfo.get_vrfs(netmiko_session) mac = GetInterfacesInfo.get_single_interfaces(netconf_session, reformat_interface) return render_template('modify_interface.html', interface=reformat_interface, vrfs=vrfs, mgmt_int=management_int, mac=mac[0].get(reformat_interface).get('MAC'))