-
Notifications
You must be signed in to change notification settings - Fork 0
[config/main.py] don't start/stop pmon during config reload #3
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
Changes from 2 commits
2871dea
ee74d59
a9f2a27
03d4c1c
b6bff7c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -295,6 +295,10 @@ def _stop_services(): | |
| 'hostcfgd', | ||
| ] | ||
|
|
||
| # on Mellanox platform pmon is stopped by syncd | ||
| if (version_info and version_info.get('asic_type') == 'mellanox'): | ||
|
||
| services_to_stop.remove('pmon') | ||
|
|
||
| for service in services_to_stop: | ||
| try: | ||
| click.echo("Stopping service {} ...".format(service)) | ||
|
|
@@ -349,6 +353,10 @@ def _restart_services(): | |
| 'hostcfgd', | ||
| ] | ||
|
|
||
| # on Mellanox platform pmon is started by syncd | ||
stephenxs marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| if (version_info and version_info.get('asic_type') == 'mellanox'): | ||
|
||
| services_to_restart.remove('pmon') | ||
|
|
||
| for service in services_to_restart: | ||
| try: | ||
| click.echo("Restarting service {} ...".format(service)) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.