public icon indicating copy to clipboard operation
public copied to clipboard

Proposal for IP AFT streaming prefix filter

Open dplore opened this issue 1 year ago • 3 comments

Operationally it is often neceessary to only stream a sub-set of the afts model. Today one can subscribe to portions of the aft tree, partitioned by address family for example. But if one subscribes to as, the ipv4-unitcast subtree, all routes are streamed.

We have operational use cases to only stream a subset of the ipv4/ipv6 trees. To do this, we could create a prefix list and reference this in new OC path(s) as an "AFT Streaming Filter. For example:

/defined-sets/ipv4-prefix-sets/ipv4-prefix-set['myprefixes']/config/prefix = '1.1.1.0/24' /defined-sets/ipv4-prefix-sets/ipv4-prefix-set['myprefixes']/config/prefix = '2.2.2.0/24'

/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set['myprefixes']/config/match-set-options = ANY

This is an idea for a new path: /network-instances/network-instance/afts/ipv4-unicast/filter/config/name = leafref to /defined-sets/ipv4-prefix-sets/ipv4-prefix-set['myprefixes']

Thoughts on this?

dplore avatar Sep 22 '23 15:09 dplore