-
Notifications
You must be signed in to change notification settings - Fork 1.3k
SRv6: Allow configuring node-len 0 #18774
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
SRv6: Allow configuring node-len 0 #18774
Conversation
8844a9f
to
a9beda5
Compare
The current change is a needed/basic one and can go in irrespective of the below query. But the next set of changes to be built on top of it is tricky, and I need your help. Ideally speaking, for a F1616(for example), we should be able to configure
However in today's code, we have ctx.flv.lcnode_func_len = node-len , while rather it should have been ctx.flv.lcnode_func_len =node-len + func-len I tried to fix this, but it breaks existing testcases (isis-ping and srv6 ping) because formats/e-wlibs have a default func-len as 16, and this is also being used for other purposes. How do we proceed with the next set of changes to make ctx.flv.lcnode_func_len =node-len + func-len? Would it be considered a @cscarpitta @pguibert6WIND @ton31337 @donaldsharp can you please comment on this and let me know the way to go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, because even the YANG model does not restrict the length to be < 16.
tests/topotests/srv6_locator_custom_bits_length/test_srv6_locator_custom_bits_length.py
Outdated
Show resolved
Hide resolved
Carmine - please review ASAP. |
Currently the node-len for a locator can only be configured between the range 16-64. However, as per the RFC draft https://datatracker.ietf.org/doc/html/draft-ietf-spring-srv6-srh-compression-23#name-recommended-installation-of `` The SID 2001:db8:b1:f123:: bound to the End.X behavior for its local IGP adjacency 123 with the NEXT-CSID flavor is instantiated from LIB with Locator-Block length (LBL) = 48 (Locator-Block value 0x20010db800b1), Locator-Node length (LNL) = 0, Function length (FL) = 16 (Function value 0xf123), and Argument length (AL) = 64. `` End.X should be able to handle 0 node length. Fixing this by allowing the user to configure the node-len 0-64. Also distinguishing the not configured node-len and node-len 0 configuration. Signed-off-by: Rajasekar Raja <[email protected]>
a9beda5
to
5f00926
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
Thanks Donatas and Russ! |
Zebra: Allow configuring node-len 0
Currently the node-len for a locator can only be configured between the range 16-64. However, as per the RFC draft
https://datatracker.ietf.org/doc/html/draft-ietf-spring-srv6-srh-compression-23#name-recommended-installation-of
End.X should be able to handle 0 node length.
Fixing this by allowing the user to configure the node-len 0-64. Also distinguishing the not configured node-len and node-len 0 configuration.