diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-12-04 15:04:09 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-12-17 10:06:35 +0200 |
| commit | cb75bb31732e29c990563f33335ca1a9357007ea (patch) | |
| tree | cd78ce3c5dec497c1b476818adadf1870311cb0e /lib/link_state.c | |
| parent | 91653aefd487fb35ffca8f2d8db35b8c2b03fd6c (diff) | |
bgpd: Strip neighbors's description to 20 chars in show bgp summary
Also make sure we do not show descriptions with whitespace characters, just
take the first splitted by whitespace.
```
root@exit1-debian-9:~/frr# vtysh -c 'show run' | grep description
neighbor 192.168.0.2 description 12346789012345678901234567890
root@exit1-debian-9:~/frr# vtysh -c 'show ip bgp summary' | grep 192.168.0.2
192.168.0.2 4 65030 0 0 0 0 0 never Idle (Admin) 0 1234678901234567890
```
```
root@exit1-debian-9:~/frr# vtysh -c 'show run' | grep description
neighbor 192.168.0.2 description one two
root@exit1-debian-9:~/frr# vtysh -c 'show ip bgp summary' | grep 192.168.0.2
192.168.0.2 4 65030 0 0 0 0 0 never Idle (Admin) 0 one
```
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'lib/link_state.c')
0 files changed, 0 insertions, 0 deletions
