-
Notifications
You must be signed in to change notification settings - Fork 44
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
No error set on non-existing AS-SET #1
Comments
No, an empty or non existing reference must not error out, otherwise people end up without filters in automated processes. AS-MACRO's will also refer to non existing macro's or asns. If in doubt --> don't allow anything. Not "allow everything". |
Surely it should. How else one distinguish empty AS-SET from non-existent AS-SET? |
I disagree I think the only safe way to handle wrong references (direct or indirect) is to create filters that are actually usable in devices (so they actual work) and of course, should not contain anything that is not actually allowed. If you return non-null and/or don't output the actual ACL, a partially deployed configuration can lead to:
I think this is a little more complicated than "just adopting the unix philosophy " ....
You shouldn't imho, not when using bgpq4 in an non-interactive way, because it will cause more (possible a lot more) harm. |
…85) * Fix issue #83 - fix regression bug which ignored -S CLI option (#1) * Fix issue #83 - fix regression bug which ignored -S CLI option, introduced by commit 08b81f7 --------- Co-authored-by: James Bensley <[email protected]> * Fix off-by-one error * Swap strlcpy for strdup --------- Co-authored-by: James Bensley <[email protected]>
$ ./bgpq4 -t -j AS-BOGUS
{"NN": [
]}
$ echo $?
0
Expected value should be non-zero
The text was updated successfully, but these errors were encountered: