]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix show bgp l2vpn evpn route rd crashes 11742/head
authorTrey Aspelund <taspelund@nvidia.com>
Thu, 4 Aug 2022 01:43:31 +0000 (01:43 +0000)
committerTrey Aspelund <taspelund@nvidia.com>
Thu, 4 Aug 2022 01:50:54 +0000 (01:50 +0000)
commit8923315db481f2a9f45e76405480edb339738677
tree5fb5758217398554b4af9a1b0473e6889a389b64
parent3aa7d2b2c456af58aef2736c4bf64a5e2643ca63
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>
bgpd/bgp_evpn_vty.c