Thanks for your input.
I didn't need to use a vrf-import policy as I didn't need to influence routing on the local PE router. I tested this in a non-production L3VPN. I wanted to set the local-pref on the 10.10.10.0/24 route to 200, while leave the local-pref on the 10.10.11.0/24 route as 100 (the default).
My vrf-export didn't work until I added a community on to the policy as show below:
set interfaces ge-1/0/8 unit 999 description "TEST L3VPN"
set interfaces ge-1/0/8 unit 999 vlan-id 999
set interfaces ge-1/0/8 unit 999 family inet address 10.10.10.1/24
set routing-instances L3VPN_TEST description "TEST L3VPN"
set routing-instances L3VPN_TEST instance-type vrf
set routing-instances L3VPN_TEST interface ge-1/0/8.999
set routing-instances L3VPN_TEST route-distinguisher 65001:30703070
set routing-instances L3VPN_TEST vrf-export L3VPN-VRF-TEST-EXPORT
set routing-instances L3VPN_TEST vrf-target target:65001:30703070
set routing-instances L3VPN_TEST vrf-table-label
set routing-instances L3VPN_TEST routing-options static route 10.10.11.0/24 next-hop 10.10.10.2
set policy-options policy-statement L3VPN-VRF-TEST-EXPORT term lpref-200 from route-filter 10.10.10.0/24 exact
set policy-options policy-statement L3VPN-VRF-TEST-EXPORT term lpref-200 then local-preference 200
set policy-options policy-statement L3VPN-VRF-TEST-EXPORT term lpref-200 then next term
set policy-options policy-statement L3VPN-VRF-TEST-EXPORT term everything_else then community add L3VPN_TEST
set policy-options policy-statement L3VPN-VRF-TEST-EXPORT term everything_else then accept
set policy-options community L3VPN_TEST members target:65001:30703070
On a remote PE the routes are show with the correct local-pref.
gel@HT-MX-01> show route table L3VPN_TEST
L3VPN_TEST.inet.0: 5 destinations, 6 routes (4 active, 0 holddown, 1 hidden)
+ = Active Route, - = Last Active, * = Both
10.10.10.0/24 *[BGP/170] 00:20:30, localpref 200, from 10.200.10.21
AS path: I
> to 10.200.10.193 via xe-1/3/0.1, Push 19, Push 300320(top)
10.10.11.0/24 *[BGP/170] 00:01:18, localpref 100, from 10.200.10.21
AS path: I
> to 10.200.10.193 via xe-1/3/0.1, Push 19, Push 300320(top)
This link was on use:
http://www.juniper.net/techpubs/en_US/junos10.1/information-products/topic-collections/config-guide-vpns/topic-33742.html#id-10149663
Thanks,
Chris