s_eigrp_topology_summary

s_eigrp_topology_summary.script_main(session, ask_vrf=True, vrf=None)
SINGLE device script
Author: Jamie Caesar

This script will grab the EIGRP topology from a Cisco IOS or NXOS device and export a summary of how many networks are learned from each successor/feasible successor and output it into a CSV file. It will also give a detailed breakdown of every network that was learned from a particular successor

Parameters:
  • session (sessions.Session) – A subclass of the sessions.Session object that represents this particular script session (either SecureCRTSession or DirectSession)
  • ask_vrf (bool) – A boolean that specifies if we should prompt for which VRF. The default is true, but when this module is called from other scripts, we may want avoid prompting and supply the VRF with the “vrf” input.
  • vrf (str) – The VRF that we should get the route table from. This is used only when ask_vrf is False.
s_eigrp_topology_summary.process_topology(topology_list)

Invert the topology table so that we have a list of all the networks learned from a particular successor.

Parameters:topology_list – <list> The EIGRP topology output from TextFSM
Returns: