]> git.puffer.fish Git - mirror/frr.git/commit
lib: Lower precedence for ASNUM_TKN when using together with IPV4/IPV6_TKN 14520/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 15 Aug 2023 09:13:54 +0000 (12:13 +0300)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Sun, 1 Oct 2023 17:15:36 +0000 (17:15 +0000)
commit5b857eca86cf884b27021fc499c71176c7ad784c
tree1305864e0af086775d2c070c42dcddfd40ad5cbb
parent49545ac94fe62fdd9bcee2dc1a895608c67138b8
lib: Lower precedence for ASNUM_TKN when using together with IPV4/IPV6_TKN

When using together with IPV4/IPV6_TKN, this breaks an existing command like:

```
donatas-pc# clear bgp ipv6 unicast 2a02::1
% Ambiguous command: clear bgp ipv6 unicast 2a02::1
donatas-pc#
```

With this fix:

```
donatas-pc# clear bgp ipv6 unicast 2a02::1
% BGP: Unknown neighbor - "2a02::1"
donatas-pc# clear bgp ipv6 unicast 2.2
% BGP: No IPv6 Unicast peer is configured with AS 2.2
donatas-pc# clear bgp ipv6 unicast 123
% BGP: No IPv6 Unicast peer is configured with AS 123
donatas-pc# clear bgp ipv4 unicast 127.0.0.1
donatas-pc#
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit 58a93c2edaba537d14286deb1341a2a952321a00)
lib/command_match.c