frr
frr copied to clipboard
'show bgp l2vpn evpn route [detail | rd xxxx] json' command add empty lines before json string
Describe the bug
- [x] Did you check if this is a duplicate issue?
- [ ] Did you test it on the latest FRRouting/frr master branch?
Output of commands:
- show bgp l2vpn evpn route detail json
- show bgp l2vpn evpn route rd all json
- show bgp l2vpn evpn route rd
json
contain as much "empty lines" before the json string as the number of path displayed.
router# sh bgp l2vpn evpn route rd A.B.C.D:XXXX json
<<<<<<<<<<<<<<<<<<<< empty line
<<<<<<<<<<<<<<<<<<<< empty line
{
....
"numPrefix":2,
"numPaths":2 <<<<< two paths = two empty lines
}
router# sh bgp l2vpn evpn route rd A.B.C.D:XXXX json
<<<<<<<<<<<<<<<<<<<< empty line
<<<<<<<<<<<<<<<<<<<< empty line
<<<<<<<<<<<<<<<<<<<< empty line
<<<<<<<<<<<<<<<<<<<< empty line
{
...
"numPrefix":4,
"numPaths":4 <<<<< four paths = four empty lines
}
Expected behavior No empty lines before json string as for the other commands
Versions
-
FRRouting 8.2-dev
-
Debian 10 (Linux 5.10.0-8-amd64)
-
libjson-c-dev: 0.15-2
-
libjson-c5:amd64: 0.15-2