Hello, I am getting started with goBGP and have a very simple goBGP config (version 2.0.0). I am having issues with the export-policy based on community.
I am trying to reject routes (added via the CLI) from being advertised by goBGP that have community 200:50 associated with them. However, as we can see, the adj-out route set shows the route associated with community 200:50. Why wasn't this route rejected as per the config? ------------------------------------------------------------------------------------------------------------------------------------------- >more gobgp.toml [global.config] as = 65000 router-id = "192.168.3.2" [global.apply-policy.config] export-policy-list = ["policy1"] [[neighbors]] [neighbors.config] neighbor-address = "192.168.3.1" peer-as = 65000 [[defined-sets.neighbor-sets]] neighbor-set-name = "ns1" neighbor-info-list = ["192.168.3.1"] [[defined-sets.bgp-defined-sets.community-sets]] community-set-name = "cs1" community-list = ["200:50"] [[policy-definitions]] name = "policy1" [[policy-definitions.statements]] name = "Drop community 200:50" [policy-definitions.statements.conditions.match-neighbor-set] neighbor-set = "ns1" [policy-definitions.statements.conditions.bgp-conditions.match-community-set] community-set = "cs1" [policy-definitions.statements.actions] route-disposition = "reject-route" >./gobgp global rib Network Next Hop AS_PATH Age Attrs *> 10.1.0.0/24 0.0.0.0 00:00:59 [{Origin: ?} {Communities: 200:50}] *> 10.2.0.0/24 0.0.0.0 00:00:41 [{Origin: ?} {Communities: 100:15}] >./gobgp neighbor 192.168.3.1 adj-out ID Network Next Hop AS_PATH Attrs 1 10.1.0.0/24 192.168.3.2 [{Origin: ?} {LocalPref: 100} {Communities: 200:50}] 1 10.2.0.0/24 192.168.3.2 [{Origin: ?} {LocalPref: 100} {Communities: 100:15}] ------------------------------------------------------------------------------------------------------------------------------------------- Thanks, -Bakul Khanna
_______________________________________________ gobgp-devel mailing list gobgp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gobgp-devel