luci-proto-bonding: bugfix xmit_hash_policy dependencies
authorHelge Mader <ma@dev.tdt.de>
Mon, 19 Jul 2021 10:37:35 +0000 (12:37 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Tue, 10 Aug 2021 07:48:42 +0000 (09:48 +0200)
Signed-off-by: Helge Mader <ma@dev.tdt.de>
(cherry picked from commit adaf3feb65918bd56ac3a24ac4fc68820f794a6e)

protocols/luci-proto-bonding/htdocs/luci-static/resources/protocol/bonding.js

index b0ed5b6a11bf723681b9328fd4a0509af884ddf4..4c774290f0b92968319ca03f9bb45f8dd474c707 100644 (file)
@@ -324,11 +324,10 @@ return network.registerProtocol('bonding', {
                o.value('layer3+4', _('Use upper layer protocol information (layer3+4)'));
                o.value('encap2+3', _('Use XOR of hardware MAC addresses and IP addresses, rely on skb_flow_dissect (encap2+3)'));
                o.value('encap3+4', _('Use upper layer protocol information, rely on skb_flow_dissect (encap3+4)'));
-               o.depends('bonding_policy', 'balance-rr');
-               o.depends('bonding_policy', 'active-backup');
-               o.depends('bonding_policy', 'balance-tlb');
-               o.depends('bonding_policy', 'balance-alb');
                o.depends('bonding_policy', 'balance-xor');
+               o.depends('bonding_policy', 'balance-alb');
+               o.depends('bonding_policy', 'balance-tlb');
+               o.depends('bonding_policy', '802.3ad');
 
                o = s.taboption('advanced', form.Value, 'resend_igmp',
                                _('Number of IGMP membership reports'),