-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proposal for making prefix-limit
general for afi-safi
#13
Comments
We have an afi-safi specific setting because the semantics of a global prefix-limit setting would be ambiguous -- e.g., does the limit apply to all families (same number of prefixes allowed for v6, v4, multicast, etc.), or is it somehow allocated to different address families. Often times you would want a different prefix-limit for one family vs. another. In other words, unlike graceful restart, it's not a feature that you might turn on or off for all address families the same way. I would hope that for a machine-generated config, it would not be too much burden to generate them for each afi-safi. BTW, the model is designed such that you would only have to set it for the afi-safis that are |
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Hello @aashaikh Thanks for the reply. I'm not saying make The commit above shows what I'm meaning.
Could you explain more about the flag? Is this in somewhere of the model? |
hi @ishidawataru , I'm still not sure I understand what is the difference between global and general -- by general, I guess you mean a single setting that would apply to all afi-safis? You're correct that this doesn't have to be at a bgp-global level; it could also be at neighbor or peer group level. If it's about the model structure (as your reference commit seems to indicate), we already have a common grouping that is reused across all afi-safi containers which includes the prefix-limit setting. The |
No.
Yes, I'm saying about the model structure. What about moving this Thanks for the pointer of the |
Hi, With the current specified set of <AFI,SAFI> one could move the Cheers, |
An example where To do this in the case that Cheers, |
Hi @robshakir I see. I understand your point.
We have many redundant items (related to When
If we can make this
by using |
* Fix dcnm_inventory override issue * Move state docs into examples section * Doc format fixes
* DCNM Network TAG Modification Support Added * Fix autogeneration issues Co-authored-by: mikewiebe <mwiebe@cisco.com>
In #781 (comment) there is a mention of "Impact on path targeting": "For any API operations that target a specific path for interesting data (e.g. e.g. /interfaces/interface[name=*]/subinterfaces/subinterface/ipv4/addresses Wouldn't that apply here also? It seems to me that it would be better to have a when statement excluding the unwanted afi/safi values than having to create a new path everytime you need a new afi/safi. |
This issue is stale because it has been open 180 days with no activity. If you wish to keep this issue active, please remove the stale label or add a comment, otherwise will be closed in 14 days. |
Hello,
I'm implementing
prefix-limit
feature for GoBGP using OpenConfig yang model and have a proposal for the model.Now
prefix-limit
configuration knob is under each address family specific item.(ipv4-unicast-group, ipv6-unicast-group etc...)
https://github.com/openconfig/public/blob/master/release/models/bgp/openconfig-bgp-multiprotocol.yang#L718-L727
When we auto-generate a configuration header file for some specific language
(for my case, golang),
current model leads to generate redundant items.
For example, when
afi-safi-name
isipv4-unicast
, we don't need these linesSince prefix limit configuration is general among address families (like graceful restart), how about making it the same way as graceful restart?
I think this makes the model more simple and clean.
The text was updated successfully, but these errors were encountered: