[j-nsp] BUG import policy problem across VRFs

Jeff S Wheeler jsw at inconcepts.biz
Tue Mar 17 20:17:29 EDT 2009


I posted about this back in September of 2008, but I don't think anyone
took interest at that time, perhaps because I was looking at the issue
on nothing more recent than JUNOS 8.5R1.14.  I noticed today this is
still happening in JUNOS as recent as 9.3R2.8.  I bet if I checked 9.4,
it would be there, too.

Can someone from Juniper indicate if there is a PR# on this, or if more
information is needed to file a bug?  The problem has been there since
JUNOS 7.6R1.9 or earlier.

If you import BGP routes from a VRF into the master routing-instance,
the BGP import policy for the group will be evaluated twice for the
routes that are installed into the inet.0 RIB.  This means things like
local-preference add/subtract do not have the correct affect on the
routes in inet.0, they have twice the intended affect.

Below is the example CLI output.  There is absolutely nothing in the VRF
export/import policy (done via rib-groups) that touches local-pref.  Yet
you can see the local-pref is 110 (+10) in ccoi.inet.0, and 120 (+10*2)
in the inet.0 table, changed via local-preference add 10.

9.3R2.8> show route 38.0.0.0/8 exact next-hop A.B.C.D terse 

inet.0: 9877 destinations, 12191 routes (9875 active, 0 holddown, 2 hidden)
+ = Active Route, - = Last Active, * = Both

A Destination        P Prf   Metric 1   Metric 2  Next hop        AS path
* 38.0.0.0/8         B 170        120      19090 >A.B.C.D         174 I

ccoi.inet.0: 276892 destinations, 276920 routes (52 active, 0 holddown, 276866 hidden)
+ = Active Route, - = Last Active, * = Both

A Destination        P Prf   Metric 1   Metric 2  Next hop        AS path
* 38.0.0.0/8         B 170        110      19090 >A.B.C.D         174 I

-- 
Jeff S Wheeler <jsw at inconcepts.biz> +1-212-981-0607
Sr Network Operator  /  Innovative Network Concepts




More information about the juniper-nsp mailing list