fix is_valid
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-02-26 18:07:04 +08:00
parent afebf9110b
commit 37e853aa4a
2 changed files with 8 additions and 5 deletions

View File

@ -25,7 +25,8 @@ function is_downstream_asn() {
}
function is_valid() {
if (LOCAL_ASN, 0, 665) ~ bgp_large_community then return true;
if (LOCAL_ASN, 110, 30) ~ bgp_large_community then return true;
if bgp_path.len = 0 then return true;
if pub_is_invalid_net_length() then return false;
if is_bogon_prefix() then return false;
if is_bogon_asn() then return false;