... | ... | @@ -43,12 +43,13 @@ Here is the configuration example: |
|
|
{
|
|
|
if (ro,0,peeras) ~ bgp_ext_community then return false;
|
|
|
if (ro,myas,peeras) ~ bgp_ext_community then return true;
|
|
|
if ((ro,0,myas) ~ bgp_ext_community) then return false;
|
|
|
} else {
|
|
|
if ((0,peeras) ~ bgp_community) || ((ro,0,peeras) ~ bgp_ext_community) then return false;
|
|
|
if ((myas,peeras) ~ bgp_community) || ((ro,myas,peeras) ~ bgp_ext_community) then return true;
|
|
|
if ((0, myas) ~ bgp_community) || ((ro,0,myas) ~ bgp_ext_community) then return false;
|
|
|
}
|
|
|
|
|
|
if ((0,myas) ~ bgp_community) || ((ro,0,myas) ~ bgp_ext_community) then return false;
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
... | ... | |