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 Feb 9, 2021
1 parent e48eb55 commit a85d708
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 @@ -769,7 +769,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 @@ -798,7 +799,8 @@ def _restart_services(config_db):
'nat',
'sflow',
'restapi',
'telemetry'
'telemetry',
'macsec',
]

disabled_services = _get_disabled_services_list(config_db)
Expand Down

0 comments on commit a85d708

Please sign in to comment.