From ddf74a9568dc39c530ac41169ffe81c40442c9ae Mon Sep 17 00:00:00 2001 From: gaoyuheng Date: Fri, 19 Dec 2025 19:31:10 +0800 Subject: [PATCH] Fix : OSPF import filter change --- bird/peers/ospf/ospf_ipv4.conf | 5 ++++- bird/peers/ospf/ospf_ipv6.conf | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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;