-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[docker-teamd]: Manage teamd and teamsyncd processes with supervisor #1137
Conversation
# the LAG and the path of the LAG config file. Then output this in | ||
# JSON format, as we will pass it to sonic-cfggen as additional data | ||
# below for generating the supervisord config file. | ||
LAG_INFO_DICT=$(python -c "import json,os,sys; out_dict = {}; out_dict['lags'] = [{'name': os.path.basename(file).split('.')[0], 'file': os.path.join('${TEAMD_CONF_PATH}', file)} for file in os.listdir('${TEAMD_CONF_PATH}')]; sys.stdout.write(json.dumps(out_dict))") |
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.
Could you also provide a sample output here?
can you also add corresponding j2 tests? |
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.
suggest to add config gen unit test for the templates you have used.
…test; also sort in docker-teamd-init.sh script to keep behavior similar between actual script and unit test
…ervisor (#1137)" (#1156) This reverts commit a6edef2. The reason to revert this commit is that it breaks the current nightly test as no port channel interfaces are get created after boot. teamd failed to start and complained about 'Cannot allocate memory' possibly due to nlmsg_alloc function failure. Will revert this commit to investigate it further before moving to supervisor. Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
[cli][bgp]use vtysh in the show ip bgp summary command (#1137) Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
- [acl-loader] Revert fix for IP protocol == 0 (#1142) - Show sflow interface to display all interfaces enabled for sflow (#1143) - [sflow_test.py]: tests for config sflow commands. (#1112) - [config/console] Support add/del console port setting commands (#1136) - [cli][bgp]use vtysh in the show ip bgp summary command (#1137) - [README.md] Describe new package creation schema (#1131) - [consutil] Remove actual baud and refactor lib for future change (#1130) Signed-off-by: Danny Allen <daall@microsoft.com>
…t#5545) - [acl-loader] Revert fix for IP protocol == 0 (sonic-net#1142) - Show sflow interface to display all interfaces enabled for sflow (sonic-net#1143) - [sflow_test.py]: tests for config sflow commands. (sonic-net#1112) - [config/console] Support add/del console port setting commands (sonic-net#1136) - [cli][bgp]use vtysh in the show ip bgp summary command (sonic-net#1137) - [README.md] Describe new package creation schema (sonic-net#1131) - [consutil] Remove actual baud and refactor lib for future change (sonic-net#1130) Signed-off-by: Danny Allen <daall@microsoft.com>
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com> Modify the run_bgp_command function to call vtysh with correct instance_id and vtysh cmd. The vtysh script is modified to take the namespace id in this PR sonic-net#5479
- What I did
- How I did it
- How to verify it
systemctl start/stop teamd
) and ensure all processes start/stop properly, and that teamd processes clean up after themselves properly.- A picture of a cute animal (not mandatory but encouraged)