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