Hi, Thank you for the report. This is kinda bug. Since a non-route-server-client neighbor can’t have any import/export policy, the configuration you tried must be warned (I will work on this soon).
If you turn route-server-client mode for a neighbor, your configuration will work [Neighbors] [[Neighbors.NeighborList]] [Neighbors.NeighborList.NeighborConfig] NeighborAddress = "10.10.0.1" PeerAs = 65001 [Neighbors.NeighborList.RouteServer] [Neighbors.NeighborList.RouteServer.RouteServerConfig] RouteServerClient = true [Neighbors.NeighborList.ApplyPolicy] [Neighbors.NeighborList.ApplyPolicy.ApplyPolicyConfig] DefaultImportPolicy = 1 DefaultExportPolicy = 1 DefaultInPolicy = 1 Please see the prerequisites and overview section of https://github.com/osrg/gobgp/blob/master/docs/sources/policy.md For non-route-server-client only in-policy per neighbor and global import/export policy is supported. There are no good document for the global policy yet. But you can try like this. $ gobgp global policy Import policy: Default: ACCEPT Export policy: Default: ACCEPT $ gobgp global policy set default reject $ gobgp global policy Import policy: Default: REJECT Export policy: Default: ACCEPT Thanks Wataru > On Nov 27, 2015, at 12:31 AM, Arnaud Fenioux <afeni...@franceix.net> wrote: > > Hello, > > I’m trying to use GoBGP with a very simple setup, but default policies seem > not working (or maybe I’m wrong!). > Is there any release notes / todo list publicly available? > > Here is my peer config : > [Neighbors] > [[Neighbors.NeighborList]] > [Neighbors.NeighborList.NeighborConfig] > NeighborAddress = "10.10.0.1" > PeerAs = 65001 > [Neighbors.NeighborList.ApplyPolicy] > [Neighbors.NeighborList.ApplyPolicy.ApplyPolicyConfig] > DefaultImportPolicy = 1 > DefaultExportPolicy = 1 > DefaultInPolicy = 1 > > root@arno:~/gobgp# gobgp neighbor 10.10.0.1 policy > In policy: > Default: REJECT > Import policy: > Default: ACCEPT > Export policy: > Default: ACCEPT > root@arno:~/gobgp# gobgp neighbor 10.10.0.1 policy export set default reject > root@arno:~/gobgp# gobgp neighbor 10.10.0.1 policy > In policy: > Default: REJECT > Import policy: > Default: ACCEPT > Export policy: > Default: ACCEPT > root@arno:~/gobgp# gobgp neighbor 10.10.0.1 policy export add default reject > root@arno:~/gobgp# gobgp neighbor 10.10.0.1 policy > In policy: > Default: REJECT > Import policy: > Default: ACCEPT > Export policy: > Default: ACCEPT > > Thanks! > > -- > Arnaud Fenioux > Network Engineer - FranceIX > > > > ------------------------------------------------------------------------------ > Go from Idea to Many App Stores Faster with Intel(R) XDK > Give your users amazing mobile app experiences with Intel(R) XDK. > Use one codebase in this all-in-one HTML5 development environment. > Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. > http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140 > _______________________________________________ > gobgp-devel mailing list > gobgp-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gobgp-devel ------------------------------------------------------------------------------ _______________________________________________ gobgp-devel mailing list gobgp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gobgp-devel