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 10:19:08 +0000 (12:19 +0200)
Using "device" option requires netifd from 2021-05-26 or newer.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit bc81e09781de229e85ad74afd785afdd454b4892)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index 35202b7132326c3e683c588f979816e2247c99d1..87ca6594c453ba83b86761ef08e7b5c57b5f607d 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))