Fighter rightly converted the config in a jiffy, I am pasting the 'set' format of the same config:
Please note that you should be in the configuration mode to make these changes, you can enter "configure" from JunOS cli to enter this mode:
set policy-options policy-statement SET-HIGHER-LOCALPREF term 1 from route-filter 10.38.0.0/16 exact
set policy-options policy-statement SET-HIGHER-LOCALPREF term 1 from route-filter 10.39.0.0/16 exact
set policy-options policy-statement SET-HIGHER-LOCALPREF term 1 from route-filter 10.22.254.0/24 exact
set policy-options policy-statement SET-HIGHER-LOCALPREF term 1 then local-preference 120
set policy-options policy-statement SET-HIGHER-LOCALPREF term 1 then accept
set policy-options policy-statement SET-HIGHER-LOCALPREF term 2 then accept
set protocols bgp group EBGP-NEIGHBOR type external
set protocols bgp group EBGP-NEIGHBOR neighbor 192.168.12.2 import SET-HIGHER-LOCALPREF
set protocols bgp group EBGP-NEIGHBOR neighbor 192.168.12.2 peer-as 65001
hit Kudos if you think its cool, accept as a solution if it works for you.
//Nex