-
Notifications
You must be signed in to change notification settings - Fork 545
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 <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Yakiv Huryk <[email protected]>
/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
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?
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