-
Notifications
You must be signed in to change notification settings - Fork 547
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: add dscp_mode configuration for MySID entry #3443
base: master
Are you sure you want to change the base?
Conversation
* add a sync with CONFIG_DB to store MySID entry dscp mode * create a tunnel/tunnel term entry for uDT46 MySID entry (the tunnel is reused for the same dscp_mode) * add a new vs test Signed-off-by: Yakiv Huryk <yhuryk@nvidia.com>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Yakiv Huryk <yhuryk@nvidia.com>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
} | ||
|
||
bool Srv6Orch::getMySidEntryDscpMode(const string& my_sid, sai_tunnel_dscp_mode_t& dscp_mode) | ||
{ |
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.
this function need to be adjusted to adapt to the latest changes in CONFIG_DB schema
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.
done in the 5477a16
self.cdb.create_entry("SRV6_MY_SIDS", "fe00:0:2:ff05::", {"dscp_mode": "pipe"}) | ||
|
||
# Create MySID entry with dscp_mode uniform | ||
dvs.runcmd("vtysh -c \"configure terminal\" -c \"segment-routing\" -c \"srv6\" -c \"locators\" -c \"locator loc1\" -c \"prefix fc00:0:2::/48 block-len 32 node-len 16 func-bits 16\" -c \"behavior usid\"") |
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.
why do we need to add both FRR config and Linux Kernel Table config here?
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.
this is how all the SRv6 vstests are done now, the new test is aligned to use the same approach
* align with the latest MySID config db schema * use reverse locator lookup to derive the locator in case of ambiguity Signed-off-by: Yakiv Huryk <yhuryk@nvidia.com>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
auto blen = fvsGetValue(fvs, "block_len", true); | ||
auto nlen = fvsGetValue(fvs, "node_len", true); | ||
auto flen = fvsGetValue(fvs, "func_len", true); | ||
auto alen = fvsGetValue(fvs, "arg_len", true); |
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.
those fields are optional and have default values in CONFIG_DB|SRV6_MY_LOCATORS
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.
fixed in the a5cd890
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.
Good
Signed-off-by: Yakiv Huryk <yhuryk@nvidia.com>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
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 and tested on VS
What I did
Added support for the "dscp_mode" MySID entry configuration:
Why I did it
To support "dscp_mode" MySID entry configuration
How I verified it
New vstest
test_Srv6MySidUDT46TunnelDscpMode
Details if related