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

Support for frr ? #96

Open
opsec opened this issue Jun 10, 2023 · 2 comments
Open

Support for frr ? #96

opsec opened this issue Jun 10, 2023 · 2 comments

Comments

@opsec
Copy link

opsec commented Jun 10, 2023

Is there a plan to support frr syntax ?

https://frrouting.org/

The syntax is very similar to cisco, but some differences exist.

@job
Copy link
Member

job commented Jun 10, 2023

Can you articulate the differences and perhaps provide a patch via a pull-request?

@gabrieltackitt
Copy link

Not the OP, but I use Vyos (which is Frr under the hood). The one major thing that I've found bgpq4 can't do that would be a big help for both FRR and Vyos is a way to sequence prefix lists.

FRR prefix list syntax is this:

ipv6 prefix-list SAMPLE-TITLE seq 1 permit 2001:db8::/32 ge 48 le 48

Vyos syntax is for one prefix item is:

set policy prefix-list SAMPLE-TITLE rule 1 prefix 2001:db8::/32
set policy prefix-list SAMPLE-TITLE rule 1 action permit
set policy prefix-list SAMPLE-TITLE rule 1 le 48
set policy prefix-list SAMPLE-TITLE rule 1 ge 32

I currently use the following to generate a custom format in bgpq4 and then go and manually change the ### into rule numbers.

-F "set rule ### action permit\nset rule ### prefix %n/%l\nset rule ### ge %A\nset rule ### le %a\n\n"

Even if not a fully supported format, I would love to see a way to sequence rules with numbers added into the custom format options.

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

No branches or pull requests

3 participants