From 3ea25bd42f88af6a678e50e6a2156f408adfaee3 Mon Sep 17 00:00:00 2001 From: Ze Gan Date: Tue, 9 Feb 2021 14:13:03 +0800 Subject: [PATCH] [config reload]: Restart macsec container (#1410) 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 --- config/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/main.py b/config/main.py index cc58fae5c0..4c737dd4d2 100644 --- a/config/main.py +++ b/config/main.py @@ -772,7 +772,8 @@ def _reset_failed_services(config_db): 'swss', 'syncd', 'teamd', - 'telemetry' + 'telemetry', + 'macsec', ] disabled_services = _get_disabled_services_list(config_db) @@ -801,7 +802,8 @@ def _restart_services(config_db): 'nat', 'sflow', 'restapi', - 'telemetry' + 'telemetry', + 'macsec', ] result = 0