Skip to content

Commit

Permalink
[config reload]: Restart macsec container (sonic-net#1410)
Browse files Browse the repository at this point in the history
Add macsec service to list of services to clear fail count and restart after config reload

- How to verify it
config reload on a device with the macsec service and container running. Verify macsec container comes back up after config reload is finished.

config reload on a device without the macsec service and container. Verify config reload proceeds normally.

Signed-off-by: Ze Gan <ganze718@gmail.com>
  • Loading branch information
Pterosaur authored and anand-kumar-subramanian committed Mar 2, 2021
1 parent adf5856 commit 3ea25bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,8 @@ def _reset_failed_services(config_db):
'swss',
'syncd',
'teamd',
'telemetry'
'telemetry',
'macsec',
]

disabled_services = _get_disabled_services_list(config_db)
Expand Down Expand Up @@ -801,7 +802,8 @@ def _restart_services(config_db):
'nat',
'sflow',
'restapi',
'telemetry'
'telemetry',
'macsec',
]

result = 0
Expand Down

0 comments on commit 3ea25bd

Please sign in to comment.