Commit Graph

28 Commits

Author SHA1 Message Date
Job Snijders
82b44b1304 Add license to each individual file 2021-08-17 12:11:05 +00:00
Job Snijders
0b554d4aa1 KNF 2021-08-17 10:12:40 +00:00
Job Snijders
406b984aa4 KNF 2021-08-12 08:25:36 +00:00
Job Snijders
9498d7f368 Revert conditional clauses around XR prefix list generation
This fixes #39

Thank you Octavio & Lukas
2021-03-16 09:57:43 +00:00
Brooks Swinnerton
d000627465 Arista EOS Support (#35)
Add Arista EOS support

Thanks Brooks!

This adds support for Arista EOS using a new flag: -e. EOS shares a lot of similarities with IOS,
but there is a difference in the syntax of prefix-lists that I wanted to fix.

The difference can be seen with bgpq4 -S ARIN -4 -s AS36459, which returns:

no ip prefix-list NN
ip prefix-list NN seq 1 permit 192.30.252.0/22
ip prefix-list NN seq 2 permit 192.30.252.0/23
ip prefix-list NN seq 3 permit 192.30.252.0/24
ip prefix-list NN seq 4 permit 192.30.253.0/24
ip prefix-list NN seq 5 permit 192.30.254.0/24
ip prefix-list NN seq 6 permit 192.30.255.0/24

Interestingly, this syntax works fine in EOS, but EOS isn't able to handle the same syntax for ipv6
prefix-lists. Instead, the seq and permit/deny that compose the rule needs to be inside the prefix-list
block.

Now bgpq4 -S ARIN -4 -e AS36459 generates:

no ip prefix-list NN
ip prefix-list NN
    seq 1 permit 192.30.252.0/22
    seq 2 permit 192.30.252.0/23
    seq 3 permit 192.30.252.0/24
    seq 4 permit 192.30.253.0/24
    seq 5 permit 192.30.254.0/24
    seq 6 permit 192.30.255.0/24
2020-12-23 15:07:23 +00:00
Job Snijders
fd6150a2dd update contact info 2020-12-23 13:40:37 +00:00
Chris Caputo
1d5b375cc3 Enable aggregate support with '-F' (user-defined). 2020-03-11 16:22:46 +00:00
Job Snijders
0a49b8a6ea Move -S to Input filter 2019-12-31 14:47:41 +01:00
Job Snijders
cfa1a00433 Add -v version command line option 2019-12-31 14:36:44 +01:00
Job Snijders
ef9889dda3 Move -L to input filters 2019-12-31 14:24:01 +01:00
Job Snijders
fb6fde65c8 Rework usage() 2019-12-31 14:19:12 +01:00
Job Snijders
e9f4eeaa57 Update usage() 2019-12-31 14:04:26 +01:00
Job Snijders
425e8dbdb4 Make the -3 command line option a no-op 2019-12-31 13:24:12 +01:00
Job Snijders
bc16d6fb45 Merge branch 'master' of github.com:bgp/bgpq4 2019-12-31 00:02:31 +00:00
Job Snijders
10cdd5656d Remove the option to disable 32-bit ASN support
This removes the '-3' command line option and fixes #3.
2019-12-30 23:58:47 +00:00
Gerdriaan Mulder
4a2fe3d966 Remove superfluous semi-colon after closing brace 2019-12-30 20:55:38 +01:00
Job Snijders
50d4dbaf28 Remove support to expand as23456 entirely 2019-12-30 18:33:35 +00:00
Job Snijders
96eccd146a More cleanup 2019-12-30 18:12:28 +00:00
Job Snijders
07db38c432 Merge branch 'style9' 2019-12-30 18:02:01 +00:00
Job Snijders
7d6c4421de Apply OpenBSD's style(9) code formatting 2019-12-30 18:00:53 +00:00
Stuart Henderson
e5df35884c use pledge() if available 2019-12-30 16:54:44 +00:00
Job Snijders
e3974c5469 Remove P command line option 2019-12-30 12:47:47 +00:00
Stuart Henderson
4b4ffafeb1 add -K to usage() short summary 2019-12-30 11:20:47 +00:00
Peter Schoenmaker
03e3b11d95 Fix memory leaks 2019-12-22 16:05:05 +01:00
Job Snijders
2e427a0f47 Remove ASDOT support 2019-12-14 15:12:10 +01:00
Christian David
87966dc1f0 Add support for Mikrotik 2019-12-14 15:11:46 +01:00
Job Snijders
5eaeb69f63 Use rr.ntt.net as default IRRd instread of RADB 2019-12-14 14:42:49 +01:00
Job Snijders
26f49e46a5 Rename bgpq3 to bgpq4 2019-12-14 14:41:14 +01:00