From: Rafał Miłecki Date: Thu, 27 May 2021 09:05:42 +0000 (+0200) Subject: luci-mod-network: bump min netifd version for migration X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=bc81e09781de229e85ad74afd785afdd454b4892;p=openwrt-luci.git luci-mod-network: bump min netifd version for migration Using "device" option requires netifd from 2021-05-26 or newer. Signed-off-by: Rafał Miłecki --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index 6dc30bbe5a..6f8fd614b1 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -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))