diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-03-09 10:33:25 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-03-09 10:33:25 -0800 |
commit | 0dbc66ed17d3a18f540d24e3e143089a7dc26f1e (patch) | |
tree | 19bf6f5091b9bdf76e497ffee01eb668c2e8d06a /templates | |
parent | 3d74a5cb968f18926899b9552320d6c90d4e32bd (diff) | |
download | vyatta-cfg-system-0dbc66ed17d3a18f540d24e3e143089a7dc26f1e.tar.gz vyatta-cfg-system-0dbc66ed17d3a18f540d24e3e143089a7dc26f1e.zip |
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.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/interfaces/bonding/node.tag/primary/node.def | 3 |
1 files changed, 2 insertions, 1 deletions
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" |