ntc-templates icon indicating copy to clipboard operation
ntc-templates copied to clipboard

Cisco IOS 'show ip bgp summary' neighbor ASDOT format

Open kolbashj opened this issue 8 months ago • 3 comments

Allow Cisco IOS 'show ip bgp summary' to capture NEIGHBOR_AS as either standard or ASDOT notation.

LOCAL_AS pattern updated in issue 986 PR987, but did not include NEIGHBOR_AS.

kolbashj avatar Apr 07 '25 18:04 kolbashj

@kolbashj We also need test data included in this PR.

Please provide bgp summary test data that includes ASNs in asdot format. It is perfectly fine to obfuscate or modify anything that could be deemed "sensitive" information.

Example file name (doesn't exist until you create it) to place it in: tests/cisco_ios/show_ip_bgp_summary/cisco_ios_show_ip_bgp_summary_asdot.raw

As long as you put the raw data in the correct spot, you can use helper scripts to generate the structured data (yaml).

The test data is in a new file necessary so that we can make sure the template is backwards compatible in the future when more changes are needed.

🎯 Please respond back if there are any questions. Thank you!

mjbear avatar Apr 10 '25 02:04 mjbear

Hello @mjbear

I just added the test data results. Please let me know if I missed anything. Appreciate your help!

kolbashj avatar Apr 10 '25 06:04 kolbashj

I just added the test data results. Please let me know if I missed anything. Appreciate your help!

This looks good.

I noticed the existing test data was not in alphabetic order. While we're working on a PR I figure we may as well get the keys reordered alphabetically. :grinning:

Thank you!

mjbear avatar Apr 10 '25 10:04 mjbear

Thanks @mjbear & @jvanderaa :grinning:

kolbashj avatar Apr 25 '25 17:04 kolbashj