From 0dbc66ed17d3a18f540d24e3e143089a7dc26f1e Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 9 Mar 2010 10:33:25 -0800 Subject: Set primary interface after bond-group is initialized Bug 4977 Need to wait to set/check bond primary device until after it is put in bond group. --- templates/interfaces/bonding/node.tag/primary/node.def | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates/interfaces/bonding') diff --git a/templates/interfaces/bonding/node.tag/primary/node.def b/templates/interfaces/bonding/node.tag/primary/node.def index bae8a499..ffa0fd6e 100644 --- a/templates/interfaces/bonding/node.tag/primary/node.def +++ b/templates/interfaces/bonding/node.tag/primary/node.def @@ -1,5 +1,6 @@ type: txt -syntax:expression: exec \ +priority: 320 # must be after ethernet bond-group +commit:expression: exec \ "grep -s $VAR(@) /sys/class/net/$VAR(../@)/bonding/slaves" \ ; "Ethernet interface must be part of the bonding group" update: sudo sh -c "echo $VAR(@) >/sys/class/net/$VAR(../@)/bonding/primary" -- cgit v1.2.3