summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-08-16 09:25:23 -0400
committerGitHub <noreply@github.com>2023-08-16 09:25:23 -0400
commitfce2afe1aa4fe7529e3a00026f0ee7d55b6301c3 (patch)
treee5f760db31eb0c75d4d4799aab64a298cccd4acb
parent1f348e5c130e10deabd462763db300c6aca32231 (diff)
parent58a93c2edaba537d14286deb1341a2a952321a00 (diff)
Merge pull request #14204 from opensourcerouting/fix/clear_bgp
lib: Lower precedence for ASNUM_TKN when using together with IPV4/IPV6_TKN
-rw-r--r--lib/command_match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command_match.c b/lib/command_match.c
index ff3c48fc31..f740b72600 100644
--- a/lib/command_match.c
+++ b/lib/command_match.c
@@ -566,9 +566,9 @@ static int score_precedence(enum cmd_token_type type)
case IPV6_PREFIX_TKN:
case MAC_TKN:
case MAC_PREFIX_TKN:
- case ASNUM_TKN:
case RANGE_TKN:
return 2;
+ case ASNUM_TKN:
case WORD_TKN:
return 3;
case VARIABLE_TKN: