Skip to content

Commit

Permalink
Remove extraneous space in Arista prefixlist
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ledeuns authored Feb 21, 2025
1 parent 4cae7d1 commit 64481a8
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 64481a8

Please sign in to comment.