New set-as-path BGP action, and support last AS for for setting AS path.
Change Scope
- Add set-as-path BGP action to replacing the entire AS path attribute with the following new path:
-
/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-as-path(a list of ASNs or last-as)
-
- Add oc-bgp-pol:bgp-as-mode-type to specify last AS in set-as-path.
- This type is only used for BGP policies, so I decided to put it in
oc-bgp-polinstead ofoc-bgp-types.
- This type is only used for BGP policies, so I decided to put it in
- This change is backwards compatible.
New paths after the model update:
To be updated.
Platform Implementations
- Arista Implmentation: RCF as_path.replace and Route Map set as path all replacement.
/gcbrun
No major YANG version changes in commit fd28c0449ab1a7e21dd1564be7e3d3c76d3c8dd7
Removed the extra comma and rebased against master.
/gcbrun
/gcbrun
/gcbrun
/gcbrun
/gcbrun
LGTM, moving to last call for Jan 16, 2025
Thanks Darren! I have fixed the revisions based on the previous check result.
Hi @xuqma , still waiting on your comment or changes. Probably this should just be changed to use the defined-sets for as-path.
ie: /routing-policy/defined-sets/bgp-defined-sets/as-path-sets/as-path-set/config/as-path-set-member