Merge pull request #14204 from opensourcerouting/fix/clear_bgp

lib: Lower precedence for ASNUM_TKN when using together with IPV4/IPV6_TKN
This commit is contained in:
Donald Sharp 2023-08-16 09:25:23 -04:00 committed by GitHub
commit fce2afe1aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: