Hi,
I believe the policy-statement is a valid one, however may not be what you require.
Junos will evaluate the policy as follows:
term 10: Prefixes in prefix-list ABC will be matched and no action -> Next term evaluated term 20: All prefixes match this and will have community set to WXA term 30: All prefixes match this and will be accepted
_______________________________________________________________________________________
It is incorrect as it is ,as each are different terms and cannot be evaluated individually
_______________________________________________________________________________________
I don't think this is correct. The terms will still be evaluated individually.
If you meant by replacing with 10:
set policy-options policy-statement IMPORT_POLICY term 10 from prefix-list ABC set policy-options policy-statement IMPORT_POLICY term 10 then community set WXA set policy-options policy-statement IMPORT_POLICY term 10 then accept
It is a also valid policy and evaluation is as follows:
term 10: Prefixes matching prefix-list ABC will have community set to WXA and accepted
Cheers,
Ashvin