From 155f6d5be57dba95a5d1ffa8645ab57f47cdb569 Mon Sep 17 00:00:00 2001 From: Lawrence Lee Date: Thu, 17 Dec 2020 09:28:56 -0800 Subject: [PATCH] [config vlan]: Remove `-t` flag from docker exec command (#1317) Remove -t flag from the docker exec command used to restart SWSS after updating the proxy ARP config. Currently with the flag, this command cannot be executed as part of a script (e.g. during a unit test in sonic-mgmt) since Docker is expecting the input device to be a TTY. Signed-off-by: Lawrence Lee --- config/vlan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/vlan.py b/config/vlan.py index 718f31f917a9..75ec66264b4c 100644 --- a/config/vlan.py +++ b/config/vlan.py @@ -53,7 +53,7 @@ def del_vlan(db, vid): def restart_ndppd(): verify_swss_running_cmd = "docker container inspect -f '{{.State.Status}}' swss" - docker_exec_cmd = "docker exec -it swss {}" + docker_exec_cmd = "docker exec -i swss {}" ndppd_config_gen_cmd = "sonic-cfggen -d -t /usr/share/sonic/templates/ndppd.conf.j2,/etc/ndppd.conf" ndppd_restart_cmd = "supervisorctl restart ndppd"