Routing
Highlighted
Routing

RIB-GROUPS: can an import-policy filter-out primary-table's prefixes ??

‎05-29-2019 08:32 AM

Hi there, 

Does the following config filter out bgp prefixes from the primary-table inet.0 as well as from the secondary table test.inet.0 ? My understanding is that the RIB-GROUP import-policy does not process prefixes destined for the primary-table but only for the secondary-table(s).

 

   rib-groups {

        TEST-RIB-GROUP {

            import-rib [ inet.0 test.inet.0];

            import-policy FILTER;

        }

    }

policy-options {

    policy-statement FILTER {

        term FILTER-TERM {

            from protocol bgp;

            then reject;

        }

 Thanks a lot guys

Andrea

 

 

2 REPLIES 2
Routing
Solution
Accepted by topic author Andrea-Di-Donato
‎06-06-2019 03:00 AM

Re: RIB-GROUPS: can an import-policy filter-out primary-table's prefixes ??

‎05-29-2019 10:07 AM

Your understanding is correct. There's no way that rib-group import policy can change the route for primary RIB. 

This is applied between primary RIB and seconary RIB, only affect routes being put into secondary RIB 


Mengzhe Hu
JNCIE x 3 (SP DC ENT)
Routing

Re: RIB-GROUPS: can an import-policy filter-out primary-table's prefixes ??

‎05-29-2019 10:31 AM

Thank you ever so much mhu. Nice to have confirmation of that !! 

Ciao 

Andrea