Skip to contentSkip to conversation

fix teamd exec in case config does not include devname

PATCH In review Jiri Pirko 3 participants 3 messages Jan 10, 2013 – Jan 22, 2013 1 message not in the archive

lore
Share & tools
lore

Jiri Pirko

author
#0 lore raw

PATCH v2 1/1 fix teamd exec in case config does not include devname

In case that configuration file did not include name of team device, teamd would not start. Fix this by adding "-t" parameter.

---

v2->v1:
-fixed bad order of args

modules.d/40network/ifup.sh | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
modules.d/40network/ifup.sh +1 -1
index 216b1e3..6c3133e 100755
@@ -187,7 +187,7 @@ if [ -e /tmp/team.info ]; then
             fi
         done
         # Do not add slaves now
-        teamd -d -U -n -f /etc/teamd/$teammaster.conf
+        teamd -d -U -n -t $teammaster -f /etc/teamd/$teammaster.conf
         for slave in $working_slaves; do
             # team requires the slaves to be down before joining team
             ip link set $slave down
Signature · 1 line
1.8.1

A message that is not in the archive (sent off-list or not yet received): 1357826571-1877-1-git-send-email-jiri-rHqAuBHg3fBzbRFIqnYvSA@public.gmane.org

#3 lore raw
In reply to a message not in the archive

Am 10.01.2013 15:02, schrieb Jiri Pirko:

Quoted 18 lines

In case that configuration file did not include name of team device, teamd would not start. Fix this by adding "-t" parameter.

---

v2->v1:
-fixed bad order of args

modules.d/40network/ifup.sh | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
modules.d/40network/ifup.sh +0 -0
index 216b1e3..6c3133e 100755

modules.d/40network/ifup.sh if [ -e /tmp/team.info ]; then · line 193

Quoted 8 lines
modules.d/40network/ifup.sh +1 -1
@@ -187,7 +187,7 @@ if [ -e /tmp/team.info ]; then
             fi
         done
         # Do not add slaves now
-        teamd -d -U -n -f /etc/teamd/$teammaster.conf
+        teamd -d -U -n -t $teammaster -f /etc/teamd/$teammaster.conf
         for slave in $working_slaves; do
             # team requires the slaves to be down before joining team
             ip link set $slave down

merged