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 commandline flag to not delete the prefixlist first #60

Open
crami opened this issue Jun 30, 2022 · 2 comments
Open

Add commandline flag to not delete the prefixlist first #60

crami opened this issue Jun 30, 2022 · 2 comments

Comments

@crami
Copy link

crami commented Jun 30, 2022

I call bgpq4 twice once for normal filtering and one with -r 32 -R 32 for black holing, I use the same object name. It would be nice if on the second call i could suppress the "no ...."

Example:
bgpq4 -S $sources -A -4 -R {maxlen4} -l {name4} {object}
bgpq4 -S $sources -4 -r 32 -R 32 -l {name4} {object}

@job
Copy link
Member

job commented Jul 1, 2022

what about using fgrep?

bgpq4 .... -l {name4} | fgrep -v "no ip prefix-list {name4}"

@jkroonza
Copy link

jkroonza commented Dec 8, 2024

I agree. Especially when using this as a feed into other mechanisms, eg:

rtr(config)#ipv6 prefix-list foo-v6 source https://routes.uls.co.za/iplist/as=327767/fmt=arista/ipv=6/max=48/permit=48/

Where basically that just remaps into a bgpq4 command at the back ... in this specific case we only want the seq .. statements. Filtered these already, but I do agree that some option to have bgpq4 not output these in the first place would be most helpful.

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