Skip to content
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

[DPB portsyncd/portmgrd/portorch] Support dynamic port add/deletion without dependencies #1112

Merged
merged 4 commits into from
Feb 6, 2020

Conversation

zhenggen-xu
Copy link
Collaborator

@zhenggen-xu zhenggen-xu commented Oct 30, 2019

What I did
Support port add/delete cases in different daemons without dependencies

Why I did it
Baseline code for dynamic port breakout code.

How I verified it
vs test cases

Details if related

Support port add/delete cases in different daemons

Changes were made on portmgrd/portsyncd and orchagent portsorch
so it should be able to remove/add ports in case no configuration
dependencies or runtime depencies (neighbor, mac etc) on them

Also skipped the netlink for port add/delete with master in portsyncd
and cleaned up g_init and g_portSet flag and data strcutures usage.

Added dynamic portbeakout test cases including the conf_test.py changs

Signed-off-by: Zhenggen Xu zxu@linkedin.com
Signed-off-by: Vasant Patil vapatil@linkedin.com

@zhenggen-xu zhenggen-xu changed the title [DRAFT DPB] Support dynamic port deletion without dependencies [DRAFT DPB] Support dynamic port add/deletion without dependencies Oct 30, 2019
@zhenggen-xu zhenggen-xu force-pushed the master-DPB-upstream branch 3 times, most recently from 674e1a0 to 8bae555 Compare November 9, 2019 00:44
@zhenggen-xu zhenggen-xu changed the title [DRAFT DPB] Support dynamic port add/deletion without dependencies [DPB portsyncd/portmgrd/portorch] Support dynamic port add/deletion without dependencies Nov 18, 2019
@zhenggen-xu zhenggen-xu marked this pull request as ready for review November 18, 2019 04:22
@zhenggen-xu
Copy link
Collaborator Author

retest this please!

orchagent/portsorch.cpp Outdated Show resolved Hide resolved
orchagent/portsorch.cpp Outdated Show resolved Hide resolved
portsyncd/linksync.cpp Outdated Show resolved Hide resolved
@lguohan
Copy link
Contributor

lguohan commented Jan 29, 2020

retest this please

lguohan
lguohan previously approved these changes Jan 29, 2020
@lguohan
Copy link
Contributor

lguohan commented Jan 29, 2020

LGTM

lguohan
lguohan previously approved these changes Jan 31, 2020
Changes were made on portmgrd/portsyncd and orchagent portsorch
so it should be able to remove/add ports in case no configuration
dependencies or runtime depencies (neighbor, mac etc) on them

Also skipped the netlink for port add/delete with master in portsyncd
and cleaned up g_init and g_portSet flag and data strcutures usage.

Added dynamic portbeakout test cases including the conf_test.py changs

Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
Signed-off-by: Vasant Patil <vapatil@linkedin.com>
Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
@zhenggen-xu
Copy link
Collaborator Author

retest this please

6 similar comments
@daall
Copy link
Contributor

daall commented Feb 5, 2020

retest this please

@daall
Copy link
Contributor

daall commented Feb 5, 2020

retest this please

@daall
Copy link
Contributor

daall commented Feb 5, 2020

retest this please

@daall
Copy link
Contributor

daall commented Feb 5, 2020

retest this please

@zhenggen-xu
Copy link
Collaborator Author

retest this please

@lguohan
Copy link
Contributor

lguohan commented Feb 5, 2020

retest this please

Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
@zhenggen-xu
Copy link
Collaborator Author

retest this please

@lguohan lguohan merged commit 1215262 into sonic-net:master Feb 6, 2020
kktheballer added a commit to kktheballer/sonic-swss that referenced this pull request Dec 23, 2020
…ithout dependencies (sonic-net#1112)

Changes were made on portmgrd/portsyncd and orchagent portsorch
so it should be able to remove/add ports in case no configuration
dependencies or runtime depencies (neighbor, mac etc) on them

Also skipped the netlink for port add/delete with master in portsyncd
and cleaned up g_init and g_portSet flag and data strcutures usage.

Added dynamic portbeakout test cases including the conf_test.py changs

Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
Signed-off-by: Vasant Patil <vapatil@linkedin.com>
kktheballer pushed a commit to kktheballer/sonic-swss that referenced this pull request Jan 21, 2021
…ithout dependencies (sonic-net#1112)

Changes were made on portmgrd/portsyncd and orchagent portsorch
so it should be able to remove/add ports in case no configuration
dependencies or runtime depencies (neighbor, mac etc) on them

Also skipped the netlink for port add/delete with master in portsyncd
and cleaned up g_init and g_portSet flag and data strcutures usage.

Added dynamic portbeakout test cases including the conf_test.py changs

Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
Signed-off-by: Vasant Patil <vapatil@linkedin.com>
anish-n pushed a commit to anish-n/sonic-swss that referenced this pull request Feb 25, 2021
…ithout dependencies (sonic-net#1112)

Changes were made on portmgrd/portsyncd and orchagent portsorch
so it should be able to remove/add ports in case no configuration
dependencies or runtime depencies (neighbor, mac etc) on them

Also skipped the netlink for port add/delete with master in portsyncd
and cleaned up g_init and g_portSet flag and data strcutures usage.

Added dynamic portbeakout test cases including the conf_test.py changs

Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
Signed-off-by: Vasant Patil <vapatil@linkedin.com>
kktheballer pushed a commit to kktheballer/sonic-swss that referenced this pull request Jul 20, 2021
…ithout dependencies (sonic-net#1112)

Changes were made on portmgrd/portsyncd and orchagent portsorch
so it should be able to remove/add ports in case no configuration
dependencies or runtime depencies (neighbor, mac etc) on them

Also skipped the netlink for port add/delete with master in portsyncd
and cleaned up g_init and g_portSet flag and data strcutures usage.

Added dynamic portbeakout test cases including the conf_test.py changs

Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
Signed-off-by: Vasant Patil <vapatil@linkedin.com>
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
* [sflow_test.py]: tests for config sflow commands.

Changes:
-- show sflow use ctx.obj['db'] instead of creating new instance,
   this is must for test, else config change will not be reflected.

-- config SFLOW tests for
   config sflow <enable|disable>
   config sflow agent-id <add | del>
   config sflow collector add|del
   config sflow interface <enable|disable>
   config sflow interface sample-rate
Signed-off-by: Praveen Chaudhary <pchaudhary@linkedin.com>
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
Changes:
b2487f0 [saithrift] build with recent ctypes (sonic-net#1111)
298344e [saithrift]: Fix max lane per port (sonic-net#1112)

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
Signed-off-by: Roman Zhurakivsky <rzhurak@larch-networks.com>

Signed-off-by: Roman Zhurakivsky <rzhurak@larch-networks.com>
Co-authored-by: Roman Zhurakivskyy <rzhurak@larch-networks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants