Skip to content

Commit

Permalink
bgpd: Remove redundant whitespace before printing the reason of the f…
Browse files Browse the repository at this point in the history
…ailed peer

Before:

```
Neighbor        EstdCnt DropCnt ResetTime Reason
127.0.0.1             0       0     never  Waiting for peer OPEN (n/a)
```

After:

```
Neighbor        EstdCnt DropCnt ResetTime Reason
127.0.0.1             0       0     never Waiting for peer OPEN (n/a)
```

Signed-off-by: Donatas Abraitis <[email protected]>
(cherry picked from commit b5bd626)
  • Loading branch information
ton31337 authored and mergify[bot] committed Jun 24, 2024
1 parent e56a527 commit 294caa5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bgpd/bgp_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -11246,10 +11246,9 @@ static void bgp_show_peer_reset(struct vty * vty, struct peer *peer,
BGP_NOTIFY_CEASE_HARD_RESET)
: "");
} else {
vty_out(vty, " %s (%s)\n",
vty_out(vty, " %s (%s)\n",
peer_down_str[(int)peer->last_reset],
peer->soft_version ? peer->soft_version
: "n/a");
peer->soft_version ? peer->soft_version : "n/a");
}
}
}
Expand Down

0 comments on commit 294caa5

Please sign in to comment.