Skip to content

config reload needs to restart services#146

Merged
stcheng merged 2 commits intosonic-net:masterfrom
nikos-github:master
Nov 14, 2017
Merged

config reload needs to restart services#146
stcheng merged 2 commits intosonic-net:masterfrom
nikos-github:master

Conversation

@nikos-github
Copy link
Contributor

No description provided.

config/main.py Outdated
p.wait()
hostname = p.communicate()[0].strip()
_change_hostname(hostname)
run_command("service interfaces-config restart", display_cmd=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Lines 139-148 duplicates lines 195-204. Please create a separate function (e.g., restart_services()) to contain these lines so they only need to be modified in one place.

@jleveque jleveque requested a review from taoyl-ms November 7, 2017 02:49
@lguohan
Copy link
Contributor

lguohan commented Nov 7, 2017

@taoyl-ms to review.

@nikos-github
Copy link
Contributor Author

Comment addressed.

@stcheng
Copy link
Contributor

stcheng commented Nov 14, 2017

@taoyl-ms please check

@stcheng stcheng added the Bug label Nov 14, 2017
@stcheng stcheng merged commit a4087dd into sonic-net:master Nov 14, 2017
vdahiya12 pushed a commit to vdahiya12/sonic-utilities that referenced this pull request Jul 23, 2021
- Encapsulate all PsuChassisInfo test cases in a TestPsuChassisInfo class
- Move TestPsuChassisInfo to its own file, test_PsuChassisInfo.py
- Increase coverage of PsuChassisInfo class
- Increase coverage of TestDaemonPsud class
- In all test scripts, use `import psud` rather than `from psud import *` and reference everything using the `psud.` namespace. Also do the same with `mock`
- Remove unnecessary try/except around import statements in psud
- Add unit tests for signal_handler
- Fix `TypeError: cannot concatenate 'str' and 'int' objects` in signal_handler

Overall psud unit test coverage increases from 51% to 78%.
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
 Update transceiver info DB key names (sonic-net#146)
[Multiasic]: Provide namespace support for ipNetToMediaPhysAddress (sonic-net#129)
[LLDP]: Modify OID index of LLDPRemTableUpdater MIB (sonic-net#155)
[Namespace]: Simplify sync_d functions to use higher order (sonic-net#154)
[Namespace]: Fix interface counters in RFC 1213 (sonic-net#145)

Signed-off-by: Abhishek Dosi <[email protected]>
mihirpat1 pushed a commit to mihirpat1/sonic-utilities that referenced this pull request Sep 15, 2023
LGTM tool is now active for the sonic-platform-common repo.

- Add LGTM badges to README.md
- Fix 26 LGTM alerts:
  - 17 for Unused import
  - 9 for Except block handles 'BaseException'
Junchao-Mellanox pushed a commit to Junchao-Mellanox/sonic-utilities that referenced this pull request Mar 31, 2025
sonic-net#146)

```<br>* 11ad3ff8 - (HEAD -> 202412) Merge branch '202411' of https://github.com/sonic-net/sonic-utilities into 202412 (2025-03-08) [Sonic Automation]
* 357f95d - (origin/202411) enable pfcwd for backplane ports (sonic-net#3796) (2025-03-07) [mssonicbld]
* 7f316e7 - revert YANG check in db_migrator (sonic-net#3794) (2025-03-06) [mssonicbld]
* c01a4f5 - Add namespace support for show interface neighbor expected (sonic-net#3790) (2025-03-03) [mssonicbld]
* 17a7b18 - Fix `vnet_route_check` for active and inactive routes, add `--all` option (sonic-net#3780) (2025-02-25) [mssonicbld]
* 5cc1012 - [202411][FC] remove FC delay field (sonic-net#3768) (2025-02-21) [Stepan Blyshchak]
* 8ceba38 - [QOS] Skip showing unnecessary warning message (sonic-net#3762) (2025-02-11) [mssonicbld]
* 04b60e2 - Fix call for spanning-tree commands in dump script (sonic-net#3752) (2025-02-07) [mssonicbld]
* bbe29ae - [show][interface] Add changes for show interface errors command (sonic-net#3749) (2025-02-04) [mssonicbld]<br>```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants