summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEshenko Dmitriy <snooppy@mail.ua>2019-07-19 01:35:14 +0300
committerGitHub <noreply@github.com>2019-07-19 01:35:14 +0300
commita75a3556642c5ca96c35dec3f9ce1cb173ed0875 (patch)
treef8ab0aaccda8bcfb4c16ad46bf233a25bb464194
parentec407d330649e687da42edcca46b6ea544f65458 (diff)
downloadvyatta-cfg-system-a75a3556642c5ca96c35dec3f9ce1cb173ed0875.tar.gz
vyatta-cfg-system-a75a3556642c5ca96c35dec3f9ce1cb173ed0875.zip
Update node.def
-rw-r--r--templates/interfaces/bonding/node.tag/primary/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/interfaces/bonding/node.tag/primary/node.def b/templates/interfaces/bonding/node.tag/primary/node.def
index f91b1d6c..98a18a48 100644
--- a/templates/interfaces/bonding/node.tag/primary/node.def
+++ b/templates/interfaces/bonding/node.tag/primary/node.def
@@ -4,7 +4,7 @@ commit:expression: exec \
"grep -s $VAR(@) /sys/class/net/$VAR(../@)/bonding/slaves" \
; "Ethernet interface must be part of the bonding group"
commit:expression: exec \
- "grep -E '(^active-backup|balance-tlb|balance-alb)' /sys/class/net/$VAR(../@)/bonding/mode" \
+ "grep -E '(^active-backup|^balance-tlb|^balance-alb)' /sys/class/net/$VAR(../@)/bonding/mode" \
; "Bonding must have mode active-backup, transmit-load-balance or adaptive-load-balance"
update: sudo sh -c "echo $VAR(@) >/sys/class/net/$VAR(../@)/bonding/primary"
help: Primary device interface