luci-mod-network: bump min netifd version for migration
authorRafał Miłecki <rafal@milecki.pl>
Thu, 27 May 2021 09:05:42 +0000 (11:05 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 27 May 2021 09:05:42 +0000 (11:05 +0200)
Using "device" option requires netifd from 2021-05-26 or newer.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index 6dc30bbe5ac1a62a1735e3d716b6a608c9d73f1d..6f8fd614b16c14c756ccfa07eb46a310f56c6391 100644 (file)
@@ -370,7 +370,7 @@ return view.extend({
        render: function(data) {
                var netifdVersion = (data[3] || '').match(/Version: ([^\n]+)/);
 
-               if (netifdVersion && netifdVersion[1] >= "2021-05-20" &&
+               if (netifdVersion && netifdVersion[1] >= "2021-05-26" &&
                    (this.interfaceBridgeWithIfnameSections().length ||
                     this.deviceWithIfnameSections().length ||
                     this.interfaceWithIfnameSections().length))