]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix show bgp l2vpn evpn route rd crashes
authorTrey Aspelund <taspelund@nvidia.com>
Thu, 4 Aug 2022 01:43:31 +0000 (01:43 +0000)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 4 Aug 2022 07:37:21 +0000 (07:37 +0000)
commit450cbf33a22eb717afe6e3fe250142e00fec84a1
treea1c7eed7a34cd505ed8fe9f69231cf6404350a0e
parent0879c7d0363309ecab57fab5c341fd169e472486
bgpd: fix show bgp l2vpn evpn route rd crashes

bgpd was crashing every time `show bgp l2vpn evpn route rd` was issued
with an RD that didn't match "all".  This was introduced by 9b01d289883
which changed how argv_find() is handled in various vtysh commands, but
the new changes forgot a "!".  So let's re-add the "!".

Before:
```
ub20# show bgp l2vpn evpn route rd 399672:100
vtysh: error reading from bgpd: Resource temporarily unavailable (11)Warning: closing connection to bgpd because of an I/O error!
ub20#

ub20# show bgp l2vpn evpn route rd 399672:100 mac 11:11:11:11:11:11
vtysh: error reading from bgpd: Resource temporarily unavailable (11)Warning: closing connection to bgpd because of an I/O error!
ub20#
```

After:
```
ub20# show bgp l2vpn evpn route rd 399672:100
ub20#

ub20# show bgp l2vpn evpn route rd 399672:100 mac 11:11:11:11:11:11
% Network not in table
ub20#
```

Signed-off-by: Trey Aspelund <taspelund@nvidia.com>
(cherry picked from commit 8923315db481f2a9f45e76405480edb339738677)
bgpd/bgp_evpn_vty.c