Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FRR structured output for BGP Routes #304

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chriswiggins
Copy link

Description

Added a new builtin directive to enable BGP Table structured output from FRR.

This does not do structured output for AS Path or Communities, as both of those outputs from FRR follow very different formats.

There have also been some tweaks to the original parsing that was implemented ~4 years ago (but not actually being used anywhere):

  • localpref is now locPrf
  • Some of the values now have defaults (I have routes without med, aggregator info, weight or metrics)

Related Issues

N/A

Motivation and Context

I wanted nice BGP Route table output 😆

Tests

Added in a test_bgp_route_frr.py, and updated the sample to exclude some of the values we expect to have missing.

Tested against FRRouting 10.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant