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

Remove extraneous space in Arista prefixlist #124

Merged
merged 3 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion printer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ bgpq4_print_eprefix(struct sx_radix_node *n, void *ff)

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->aggregateLow > n->prefix->masklen) {
Expand Down
4 changes: 2 additions & 2 deletions tests/reference/eos--4.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
no ip prefix-list NN
ip prefix-list NN
seq 1 permit 192.31.196.0/24
seq 2 permit 192.175.48.0/24
seq 1 permit 192.31.196.0/24
seq 2 permit 192.175.48.0/24
4 changes: 2 additions & 2 deletions tests/reference/eos--6.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
no ipv6 prefix-list NN
ipv6 prefix-list NN
seq 1 permit 2001:4:112::/48
seq 2 permit 2620:4f:8000::/48
seq 1 permit 2001:4:112::/48
seq 2 permit 2620:4f:8000::/48