Hello,
The rule of thumb is that all objects used by policy (except IP addresses) must be defined under [edit policy-options]. Your RD is not defined there (it is may be defined under [edit routing-instances Whatever] but this does not count).
You need to define this RD under [edit policy-options]
set policy-options route-distinguisher 10.1.1.1:666 members 10.1.1.1:666
- and Your commit would pass.
On a separate note, matching on RD is not the best idea, using communities makes policies more scalable and manageable.
Finally, if You are using this policy as BGP export policy under BGP group/neighbor, don't forget to add "vpn-apply-export" knob.
HTH
Thx
Alex