From cc93d197d64fc55e8d28eb679aaf2ec26aa6ef70 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Wed, 5 Apr 2017 14:13:54 -0700 Subject: [PATCH] [interfaces]: Do not bring up LAG members when LAG is not up - Without this fix, the LAG members will be brought up. Due to the current design of teamd, interfaces cannot join teamd when they are up. Signed-off-by: Shuotian Cheng --- files/image_config/interfaces/interfaces.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/image_config/interfaces/interfaces.j2 b/files/image_config/interfaces/interfaces.j2 index 53d324d68e8d..40e127e54ce8 100644 --- a/files/image_config/interfaces/interfaces.j2 +++ b/files/image_config/interfaces/interfaces.j2 @@ -76,7 +76,7 @@ auto {{ member }} allow-hotplug {{ member }} iface {{ member }} inet manual pre-up teamdctl {{ pc }} port add {{ member }} || true - post-up ifconfig {{ member }} up + post-up ip link show {{ pc }} && ifconfig {{ member }} up post-down ifconfig {{ member }} down # {% endfor %}