Skip to content

[orchagent, SRv6]: create seglist support to set sid list type#2406

Merged
prsunny merged 3 commits intosonic-net:masterfrom
link19430:srv6_sidlist_type
Mar 4, 2023
Merged

[orchagent, SRv6]: create seglist support to set sid list type#2406
prsunny merged 3 commits intosonic-net:masterfrom
link19430:srv6_sidlist_type

Conversation

@link19430
Copy link
Copy Markdown
Contributor

If user doesn't set the sid list type, type will be ENCAPS_RED

What I did
create seglist support to set sid list type

Why I did it
could not set different sidlist type under local testing

How I verified it
set different sidlist type of seg list and confirm it works under local testing

Signed-off-by: link_chiang link_chiang@edge-core.com

If user doesn't set the sid list type, type will be ENCAPS_RED

What I did
create seglist support to set sid list type

Why I did it
could not set different sidlist type under local testing

How I verified it
set different sidlist type of seg list and confirm it works under local testing

Signed-off-by: link_chiang <link_chiang@edge-core.com>
@link19430 link19430 requested a review from prsunny as a code owner August 4, 2022 08:03
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Aug 4, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: link19430 / name: Link Chiang (112c5ba)

@link19430
Copy link
Copy Markdown
Contributor Author

Hi @prsunny
Could you help to review this PR, thanks

@prsunny prsunny requested a review from kperumalbfn December 5, 2022 22:43
Comment thread orchagent/srv6orch.cpp
if (fvField(i) == "type")
{
sidlist_type = fvValue(i);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you update doc/swss-schema.md with the new attribute 'type' in SRV6_SID_LIST_TABLE

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have updated the swss-schema.md for new attribute 'type' in SRV6_SID_LIST_TABLE

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kperumalbfn please help review, thanks.

Comment thread orchagent/srv6orch.cpp
if (fvField(i) == "type")
{
sidlist_type = fvValue(i);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you update test_srv6.py with this new 'path' attribute in the APP_DB.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have added test case for sidlist_type.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kperumalbfn please help review, thanks.

@prsunny prsunny merged commit a198289 into sonic-net:master Mar 4, 2023
AntonHryshchuk added a commit to AntonHryshchuk/sonic-buildimage that referenced this pull request Mar 8, 2023
Update sonic-swss submodule pointer to include the following:
* a2c9a61 [EVPN]Handling error scenarios during route programming and IMR add ([sonic-net#2670](sonic-net/sonic-swss#2670))
* 115efe8 [bfdorch] add default TOS value for BFD session ([sonic-net#2689](sonic-net/sonic-swss#2689))
* a198289 [orchagent, SRv6]: create seglist support to set sid list type ([sonic-net#2406](sonic-net/sonic-swss#2406))

Signed-off-by: AntonHryshchuk <antonh@nvidia.com>
dgsudharsan added a commit to dgsudharsan/sonic-buildimage that referenced this pull request Mar 14, 2023
Update sonic-swss submodule pointer to include the following:
* 98a16cf [ACL] Write ACL table/rule creation status into STATE_DB ([sonic-net#2662](sonic-net/sonic-swss#2662))
* a2c9a61 [EVPN]Handling error scenarios during route programming and IMR add ([sonic-net#2670](sonic-net/sonic-swss#2670))
* 115efe8 [bfdorch] add default TOS value for BFD session ([sonic-net#2689](sonic-net/sonic-swss#2689))
* a198289 [orchagent, SRv6]: create seglist support to set sid list type ([sonic-net#2406](sonic-net/sonic-swss#2406))

Signed-off-by: dgsudharsan <sudharsand@nvidia.com>
prsunny pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Mar 14, 2023
Update sonic-swss submodule pointer to include the following:
* 98a16cf [ACL] Write ACL table/rule creation status into STATE_DB ([#2662](sonic-net/sonic-swss#2662))
* a2c9a61 [EVPN]Handling error scenarios during route programming and IMR add ([#2670](sonic-net/sonic-swss#2670))
* 115efe8 [bfdorch] add default TOS value for BFD session ([#2689](sonic-net/sonic-swss#2689))
* a198289 [orchagent, SRv6]: create seglist support to set sid list type ([#2406](sonic-net/sonic-swss#2406))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants