mirror of
https://github.com/bgp/bgpq4
synced 2025-02-28 08:53:11 +00:00
Remove extraneous space in Arista prefixlist (#124)
Some checks failed
Build and test (latest Ubuntu/macOS) / build (ubuntu-latest) (push) Successful in 30s
Build and test (latest Ubuntu/macOS) / build (macos-latest) (push) Has been cancelled
basic unit tests / output unit tests (push) Has been cancelled
CodeQL analysis / Analyze (cpp) (push) Failing after 1m16s
Some checks failed
Build and test (latest Ubuntu/macOS) / build (ubuntu-latest) (push) Successful in 30s
Build and test (latest Ubuntu/macOS) / build (macos-latest) (push) Has been cancelled
basic unit tests / output unit tests (push) Has been cancelled
CodeQL analysis / Analyze (cpp) (push) Failing after 1m16s
* Remove extraneous space in Arista prefixlist When diffing config generated with bgpq4 with config exported from an Arista device, many lines are returned as changed. This is because prefixlist on Arista device use 3 spaces and bgpq4 uses 4 spaces. * Update eos--4.txt * Update eos--6.txt
This commit is contained in:
@@ -1165,7 +1165,7 @@ bgpq4_print_eprefix(struct sx_radix_node *n, void *ff)
|
|||||||
|
|
||||||
sx_prefix_snprintf(n->prefix, prefix, sizeof(prefix));
|
sx_prefix_snprintf(n->prefix, prefix, sizeof(prefix));
|
||||||
|
|
||||||
snprintf(seqno, sizeof(seqno), " seq %i", seq++);
|
snprintf(seqno, sizeof(seqno), "seq %i", seq++);
|
||||||
|
|
||||||
if (n->isAggregate) {
|
if (n->isAggregate) {
|
||||||
if (n->aggregateLow > n->prefix->masklen) {
|
if (n->aggregateLow > n->prefix->masklen) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
no ip prefix-list NN
|
no ip prefix-list NN
|
||||||
ip prefix-list NN
|
ip prefix-list NN
|
||||||
seq 1 permit 192.31.196.0/24
|
seq 1 permit 192.31.196.0/24
|
||||||
seq 2 permit 192.175.48.0/24
|
seq 2 permit 192.175.48.0/24
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
no ipv6 prefix-list NN
|
no ipv6 prefix-list NN
|
||||||
ipv6 prefix-list NN
|
ipv6 prefix-list NN
|
||||||
seq 1 permit 2001:4:112::/48
|
seq 1 permit 2001:4:112::/48
|
||||||
seq 2 permit 2620:4f:8000::/48
|
seq 2 permit 2620:4f:8000::/48
|
||||||
|
|||||||
Reference in New Issue
Block a user