diff options
| author | Daniil Baturin <daniil@baturin.org> | 2019-07-19 05:36:41 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-19 05:36:41 +0700 |
| commit | 995b5071d15f0a5a9d8c5f261f188e5252a966a4 (patch) | |
| tree | f8ab0aaccda8bcfb4c16ad46bf233a25bb464194 | |
| parent | 41c1291ee3e8bead09305ff120d8d28e4a21d030 (diff) | |
| parent | a75a3556642c5ca96c35dec3f9ce1cb173ed0875 (diff) | |
| download | vyatta-cfg-system-995b5071d15f0a5a9d8c5f261f188e5252a966a4.tar.gz vyatta-cfg-system-995b5071d15f0a5a9d8c5f261f188e5252a966a4.zip | |
Merge pull request #104 from DmitriyEshenko/patch-1
Fix T1491
| -rw-r--r-- | templates/interfaces/bonding/node.tag/primary/node.def | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/interfaces/bonding/node.tag/primary/node.def b/templates/interfaces/bonding/node.tag/primary/node.def index f80c6b8f..98a18a48 100644 --- a/templates/interfaces/bonding/node.tag/primary/node.def +++ b/templates/interfaces/bonding/node.tag/primary/node.def @@ -3,5 +3,8 @@ 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" +commit:expression: exec \ + "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 |
