Skip to content

Commit 155f6d5

Browse files
[config vlan]: Remove -t flag from docker exec command (sonic-net#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 <[email protected]>
1 parent 281b157 commit 155f6d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/vlan.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def del_vlan(db, vid):
5353

5454
def restart_ndppd():
5555
verify_swss_running_cmd = "docker container inspect -f '{{.State.Status}}' swss"
56-
docker_exec_cmd = "docker exec -it swss {}"
56+
docker_exec_cmd = "docker exec -i swss {}"
5757
ndppd_config_gen_cmd = "sonic-cfggen -d -t /usr/share/sonic/templates/ndppd.conf.j2,/etc/ndppd.conf"
5858
ndppd_restart_cmd = "supervisorctl restart ndppd"
5959

0 commit comments

Comments
 (0)