f5-declarative-onboarding
f5-declarative-onboarding copied to clipboard
Need ability to attach prefix-list to peer-group or neighbor without route-map
Is your feature request related to a problem? Please describe.
The tmsh commands for routing bgp and prefix list can be attached to neighbors directly or to a peer group. The DO schema however does not show a prefix-list option in the object class for peer-group. There is a route-map option but that only applies to peer-group.
Describe the solution you'd like
Need ability to attach prefix-list to neighbor and/or peer-group directly. This way if I only have one bgp peer, I'm not required to create a peer-group simply to get a prefix-list attachment. This should be attachable to the neighbor just like in imish or in tmsh command.
Example... tmsh create net routing prefix-list myPrefixList1 { entries add { 10 { action permit prefix 10.0.0.0/8 prefix-len-range 16: } } route-domain 0 }
create net routing bgp myBGP local-as 65530 neighbor add { 10.255.255.4 { address-family { ipv4 { prefix-list { out myPrefixList1 } } } remote-as 65515 } }
show run... router bgp 65530 neighbor 10.255.255.4 remote-as 65515 neighbor 10.255.255.4 prefix-list /Common/myPrefixList1 out
Describe alternatives you've considered
I have to run tmsh commands to apply prefix list directly to neighbor. If I use DO, then I'm forced to create a peer-group first. Also, peer-group in tmsh can have a prefix list attached whereas in DO you have to use a routemap which links to prefix list.
Additional context
none
Thank you for your feedback. This request has been added to our internal product backlog as AUTOTOOL-2760.