Thank-you. Version 2.1.0 fixed the export-policy issue I was seeing in version 
2.0.0.

Regards,

-Bakul Khanna

-----Original Message-----
From: FUJITA Tomonori [mailto:fujita.tomon...@gmail.com] 
Sent: Friday, February 1, 2019 6:34 AM
To: Khanna, Bakul <bakul.kha...@viasat.com>
Cc: gobgp-devel@lists.sourceforge.net
Subject: Re: [GoBGP-devel] Having issues with goBGP (2.0.0) export-policy

Hey,

you might hit the following bug:
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_osrg_gobgp_commit_e0e0f5a1ebfdc9ee30e87a4b7ce13ae35b493498&d=DwIFaQ&c=jcv3orpCsv7C4ly8-ubDoUfrxF5xIGWmptxGWP5vi5w&r=8JJKe-HWfB6WGz-ncbOGT6RtSQ5E3Uf5vRpmXVC480w&m=hzp49_lcFUMaWD8QlDR3GrBH4YCGIeumT7FNtqH4ino&s=FGaRpKCv2s9Ywc6e9QCRhNnmEtPx2q8r_U_FarcZ3eM&e=

can you try v2.1.0?

On Fri, Feb 1, 2019 at 12:40 AM Khanna, Bakul <bakul.kha...@viasat.com> wrote:
>
> 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://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_gobgp-2Ddevel&d=DwIFaQ&c=jcv3orpCsv7C4ly8-ubDoUfrxF5xIGWmptxGWP5vi5w&r=8JJKe-HWfB6WGz-ncbOGT6RtSQ5E3Uf5vRpmXVC480w&m=hzp49_lcFUMaWD8QlDR3GrBH4YCGIeumT7FNtqH4ino&s=V-PuhzufHx0rq5Btfz-gxqCOT441n_kk5biI2lhO1Rg&e=

_______________________________________________
gobgp-devel mailing list
gobgp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gobgp-devel

Reply via email to