diff --git a/bird/peers/ospf/ospf_ipv4.conf b/bird/peers/ospf/ospf_ipv4.conf index 773fa74..dd693db 100644 --- a/bird/peers/ospf/ospf_ipv4.conf +++ b/bird/peers/ospf/ospf_ipv4.conf @@ -1,7 +1,10 @@ protocol ospf v3 ospf_ipv4 { ipv4 { table ospf4; - import all; + import filter { + bgp_large_community.add((UNET_ASN,1,0)); + accept; + }; export filter { if bgp_large_community !~ [(UNET_ASN, 301,0)] then reject; accept; diff --git a/bird/peers/ospf/ospf_ipv6.conf b/bird/peers/ospf/ospf_ipv6.conf index f01e591..2f708c6 100644 --- a/bird/peers/ospf/ospf_ipv6.conf +++ b/bird/peers/ospf/ospf_ipv6.conf @@ -1,7 +1,10 @@ protocol ospf v3 ospf_ipv6 { ipv6 { table ospf6; - import all; + import filter { + bgp_large_community.add((UNET_ASN,1,0)); + accept; + }; export filter { if bgp_large_community !~ [(UNET_ASN, 301,0)] then reject; accept;