Re: Luci->Network->Interfaces is broken

2021-06-09 Thread Jo-Philipp Wich
Hi,

> It works now (no error message), but the bad thing is, it isn't visible in
> LuCI, which wireless adapter's are attached to the bridge and it needs some
> clicks to see which interfaces (wired ports) are attached to the bridge.
> 
> I don't like this solution in LuCI.

Fixed with
https://github.com/openwrt/luci/commit/608f89429b4b8537ddaefd070c777a6d4fb1c7a1

~ Jo



signature.asc
Description: OpenPGP digital signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Luci->Network->Interfaces is broken

2021-06-01 Thread e9hack

Am 31.05.2021 um 19:01 schrieb Jo-Philipp Wich:

Hi,


This is the reason. Long time ago, I did select the option 'Remove ipkg/opkg
status data files in final images' to reduce the image size. Since such an
option can be selected, LuCI cannot assume, that the file netifd.control exists.


fixed.



It works now (no error message), but the bad thing is, it isn't visible in 
LuCI, which wireless adapter's are attached to the bridge and it needs some 
clicks to see which interfaces (wired ports) are attached to the bridge.

I don't like this solution in LuCI.

Regards,
Hartmut

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Luci->Network->Interfaces is broken

2021-05-31 Thread Jo-Philipp Wich
Hi,

> This is the reason. Long time ago, I did select the option 'Remove ipkg/opkg
> status data files in final images' to reduce the image size. Since such an
> option can be selected, LuCI cannot assume, that the file netifd.control 
> exists.

fixed.


~ Jo



signature.asc
Description: OpenPGP digital signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Luci->Network->Interfaces is broken

2021-05-31 Thread e9hack

Am 31.05.2021 um 16:36 schrieb e9hack:

LuCI commit 17af33e

luci-mod-network: migrate network config depending on netifd version

does introduce to read the file /usr/lib/opkg/info/netifd.control. I don't have 
this file on my router. Can that be the reason for the error 'Resource not 
found'?



This is the reason. Long time ago, I did select the option 'Remove ipkg/opkg 
status data files in final images' to reduce the image size. Since such an 
option can be selected, LuCI cannot assume, that the file netifd.control exists.

Regards,
Hartmut

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Luci->Network->Interfaces is broken

2021-05-31 Thread e9hack

Am 31.05.2021 um 15:52 schrieb e9hack:

Am 31.05.2021 um 07:18 schrieb Rafał Miłecki:

On 30.05.2021 18:02, e9hack wrote:

Am 30.05.2021 um 15:41 schrieb e9hack:

Am 30.05.2021 um 09:59 schrieb Rafał Miłecki:

On 29.05.2021 23:28, e9hack wrote:

I'm using a TP-Link Archer C7 v2 router. For every build, I do update my 
sandbox with the current OpenWrt repository and the feeds. The first not 
working build from 27.05. shows in Luci:

OpenWrt SNAPSHOT r16834-53b9cc442f / LuCI Master git-21.147.31971-74be304

Related to the changes to bridge configuration, I'm using some bridge 
interfaces without a configured network device, because it's for a single WiFi 
device only. For such interfaces, the configuration was not changed. I did 
generate a device section without ports options manually. But it didn't help.


I broken my crystal ball, please post your network config.

74be304 is known to introduce a bug, see e7c9c63c6579 ("luci-mod-network: split 
config migration into 2 steps")

If your network config already got migrated into broken version you may need to 
fix it up manually.


This is my network config. I did change the option ifname to device for 
interface lan manually.



I'm trying the same with a TP-Link WDR3600 router. The same does occur. I did 
do a factory reset. Nothing did change. I get the same error page. Build is 
OpenWrt SNAPSHOT r16844-296aa0781b / LuCI Master git-21.148.48881-79947af.


Please try the standard LuCI interface and let us know if that one works 
correctly.

What do you see in web browser's console on that page?


Independently which LuCI theme is used, the error occurs and the following 
message is shown in the web browser's console:

Warnings:
This page uses the non standard property “zoom”. Consider using calc() in the 
relevant property values, or using “transform” along with “transform-origin: 0 
0”. network

Errors:
Uncaught (in promise) NotFoundError: Resource not found    
luci.js:1:1004
     handleRpcReply 
https://my-router.lan/luci-static/resources/fs.js?v=git-21.124.24916-0faf9a4:1

Debug:
NotFoundError: Resource not found    luci.js:163:9
     handleRpcReply 
https://my-router.lan/luci-static/resources/fs.js?v=git-21.124.24916-0faf9a4:1



LuCI commit 17af33e

luci-mod-network: migrate network config depending on netifd version

does introduce to read the file /usr/lib/opkg/info/netifd.control. I don't have 
this file on my router. Can that be the reason for the error 'Resource not 
found'?

Regards,
Hartmut



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Luci->Network->Interfaces is broken

2021-05-31 Thread e9hack

Am 31.05.2021 um 07:18 schrieb Rafał Miłecki:

On 30.05.2021 18:02, e9hack wrote:

Am 30.05.2021 um 15:41 schrieb e9hack:

Am 30.05.2021 um 09:59 schrieb Rafał Miłecki:

On 29.05.2021 23:28, e9hack wrote:

I'm using a TP-Link Archer C7 v2 router. For every build, I do update my 
sandbox with the current OpenWrt repository and the feeds. The first not 
working build from 27.05. shows in Luci:

OpenWrt SNAPSHOT r16834-53b9cc442f / LuCI Master git-21.147.31971-74be304

Related to the changes to bridge configuration, I'm using some bridge 
interfaces without a configured network device, because it's for a single WiFi 
device only. For such interfaces, the configuration was not changed. I did 
generate a device section without ports options manually. But it didn't help.


I broken my crystal ball, please post your network config.

74be304 is known to introduce a bug, see e7c9c63c6579 ("luci-mod-network: split 
config migration into 2 steps")

If your network config already got migrated into broken version you may need to 
fix it up manually.


This is my network config. I did change the option ifname to device for 
interface lan manually.



I'm trying the same with a TP-Link WDR3600 router. The same does occur. I did 
do a factory reset. Nothing did change. I get the same error page. Build is 
OpenWrt SNAPSHOT r16844-296aa0781b / LuCI Master git-21.148.48881-79947af.


Please try the standard LuCI interface and let us know if that one works 
correctly.

What do you see in web browser's console on that page?


Independently which LuCI theme is used, the error occurs and the following 
message is shown in the web browser's console:

Warnings:
This page uses the non standard property “zoom”. Consider using calc() in the 
relevant property values, or using “transform” along with “transform-origin: 0 
0”. network

Errors:
Uncaught (in promise) NotFoundError: Resource not found 
luci.js:1:1004
handleRpcReply 
https://my-router.lan/luci-static/resources/fs.js?v=git-21.124.24916-0faf9a4:1

Debug:
NotFoundError: Resource not found   
luci.js:163:9
handleRpcReply 
https://my-router.lan/luci-static/resources/fs.js?v=git-21.124.24916-0faf9a4:1


Regards,
Hartmut

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Luci->Network->Interfaces is broken

2021-05-30 Thread Rafał Miłecki

On 30.05.2021 18:02, e9hack wrote:

Am 30.05.2021 um 15:41 schrieb e9hack:

Am 30.05.2021 um 09:59 schrieb Rafał Miłecki:

On 29.05.2021 23:28, e9hack wrote:

I'm using a TP-Link Archer C7 v2 router. For every build, I do update my 
sandbox with the current OpenWrt repository and the feeds. The first not 
working build from 27.05. shows in Luci:

OpenWrt SNAPSHOT r16834-53b9cc442f / LuCI Master git-21.147.31971-74be304

Related to the changes to bridge configuration, I'm using some bridge 
interfaces without a configured network device, because it's for a single WiFi 
device only. For such interfaces, the configuration was not changed. I did 
generate a device section without ports options manually. But it didn't help.


I broken my crystal ball, please post your network config.

74be304 is known to introduce a bug, see e7c9c63c6579 ("luci-mod-network: split 
config migration into 2 steps")

If your network config already got migrated into broken version you may need to 
fix it up manually.


This is my network config. I did change the option ifname to device for 
interface lan manually.



I'm trying the same with a TP-Link WDR3600 router. The same does occur. I did 
do a factory reset. Nothing did change. I get the same error page. Build is 
OpenWrt SNAPSHOT r16844-296aa0781b / LuCI Master git-21.148.48881-79947af.


Please try the standard LuCI interface and let us know if that one works 
correctly.

What do you see in web browser's console on that page?

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Luci->Network->Interfaces is broken

2021-05-30 Thread e9hack

Am 30.05.2021 um 15:41 schrieb e9hack:

Am 30.05.2021 um 09:59 schrieb Rafał Miłecki:

On 29.05.2021 23:28, e9hack wrote:

I'm using a TP-Link Archer C7 v2 router. For every build, I do update my 
sandbox with the current OpenWrt repository and the feeds. The first not 
working build from 27.05. shows in Luci:

OpenWrt SNAPSHOT r16834-53b9cc442f / LuCI Master git-21.147.31971-74be304

Related to the changes to bridge configuration, I'm using some bridge 
interfaces without a configured network device, because it's for a single WiFi 
device only. For such interfaces, the configuration was not changed. I did 
generate a device section without ports options manually. But it didn't help.


I broken my crystal ball, please post your network config.

74be304 is known to introduce a bug, see e7c9c63c6579 ("luci-mod-network: split 
config migration into 2 steps")

If your network config already got migrated into broken version you may need to 
fix it up manually.


This is my network config. I did change the option ifname to device for 
interface lan manually.



I'm trying the same with a TP-Link WDR3600 router. The same does occur. I did 
do a factory reset. Nothing did change. I get the same error page. Build is 
OpenWrt SNAPSHOT r16844-296aa0781b / LuCI Master git-21.148.48881-79947af.

Regards,
Hartmut

config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config globals 'globals'
option ula_prefix 'fd25:357b:1499::/48'

config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0.1'

config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'

config device
option name 'eth0.2'
option macaddr 'ff:ff:ff:ff:ff:ff'

config interface 'wan'
option device 'eth0.2'
option proto 'dhcp'

config interface 'wan6'
option device 'eth0.2'
option proto 'dhcpv6'

config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'

config switch_vlan
option device 'switch0'
option vlan '1'
option ports '2 3 4 5 0t'

config switch_vlan
option device 'switch0'
option vlan '2'
option ports '1 0t'
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Luci->Network->Interfaces is broken

2021-05-30 Thread e9hack

Am 30.05.2021 um 09:59 schrieb Rafał Miłecki:

On 29.05.2021 23:28, e9hack wrote:

I'm using a TP-Link Archer C7 v2 router. For every build, I do update my 
sandbox with the current OpenWrt repository and the feeds. The first not 
working build from 27.05. shows in Luci:

OpenWrt SNAPSHOT r16834-53b9cc442f / LuCI Master git-21.147.31971-74be304

Related to the changes to bridge configuration, I'm using some bridge 
interfaces without a configured network device, because it's for a single WiFi 
device only. For such interfaces, the configuration was not changed. I did 
generate a device section without ports options manually. But it didn't help.


I broken my crystal ball, please post your network config.

74be304 is known to introduce a bug, see e7c9c63c6579 ("luci-mod-network: split 
config migration into 2 steps")

If your network config already got migrated into broken version you may need to 
fix it up manually.


This is my network config. I did change the option ifname to device for 
interface lan manually.

Regards,
Hartmut

config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config globals 'globals'
option ula_prefix 'fde9:abcd:0123::/48'

config interface 'lan'
option proto 'static'
option ipaddr '192.168.103.1'
list ip6addr 'fec0:0:0::0:0:0:1/64'
list ip6addr 'fec0:0:0::0:0:0:2/64'
option netmask '255.255.255.0'
option ip6assign '62'
option ip6hint 'ad'
option device 'br-lan'

config interface 'guest1'
option type 'bridge'
option proto 'static'
option ipaddr '10.1.0.1'
option netmask '255.255.0.0'
option ip6hint 'e1'
option ip6assign '64'
option ip6class 'wan_6'
list ip6addr 'fec0:0::1:0:0:0:1/64'

config interface 'guest2'
option type 'bridge'
option proto 'static'
option ipaddr '10.2.0.1'
option netmask '255.255.0.0'
option ip6hint 'e2'
option ip6assign '64'
option ip6class 'wan_6'
list ip6addr 'fec0:0::2:0:0:0:1/64'

config interface 'IoT'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.255.1'
option netmask '255.255.255.0'
option ipv6 '0'

config interface 'wan'
option ifname 'eth0.7'
option proto 'pppoe'
option username ''
option password ''
option keepalive '10 5'
option pppd_options 'debug'
option persist '1'
option maxfail '50'
option holdoff '5'

config interface 'modem'
option ifname 'eth0.2'
option proto 'static'
option ipaddr '192.168.1.80'
option netmask '255.255.255.0'
option peerdns '0'
option ipv6 '0'

config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'

config switch_vlan
option device 'switch0'
option vlan '1'
option vid '1'
option ports '0t 2 3 4'
option description 'lan'

config switch_vlan
option device 'switch0'
option vlan '7'
option ports '1t 6t'
option vid '7'
option description 'wan'

config switch_vlan
option device 'switch0'
option vlan '2'
option ports '1 6t'
option vid '2'
option description 'modem'

config switch_port
option port '1'
option pvid '2'

config switch_vlan
option device 'switch0'
option vlan '3'
option ports '0t 5'
option vid '3'
option description 'phone'

config interface 'phone'
option ifname 'eth1.3'
option proto 'static'
option ipaddr '192.168.200.1'
option netmask '255.255.255.0'
option ipv6 '0'

config interface 'vpn'
option proto 'none'
option ifname 'tun1'
option auto '1'

config interface 'tor'
option type 'bridge'
option proto 'static'
option ipaddr '172.16.1.1'
option netmask '255.255.0.0'
option ipv6 '0'

config interface 'wg0'
option proto 'wireguard'
option listen_port '51820'
option addresses '100.64.10.0/32'
option private_key ''
option persistent_keepalive '25'

config wireguard_wg0
option preshared_key ''
option public_key ''
option route_allowed_ips '1'
list allowed_ips '100.64.10.102/32'
option persistent_keepalive '25'
option description ''

config wireguard_wg0
option preshared_key ''
option public_key ''
option route_allowed_ips '1'
list allowed_ips '100.64.10.30/32'
option persistent_keepalive '25'
option description ''

config wireguard_wg0
option preshared_key ''
option public_key ''
option route_allowed_ips '1'
list allowed_ips '100.64.10.108/32'

Re: Luci->Network->Interfaces is broken

2021-05-30 Thread Rafał Miłecki

On 29.05.2021 23:28, e9hack wrote:

I'm using a TP-Link Archer C7 v2 router. For every build, I do update my 
sandbox with the current OpenWrt repository and the feeds. The first not 
working build from 27.05. shows in Luci:

OpenWrt SNAPSHOT r16834-53b9cc442f / LuCI Master git-21.147.31971-74be304

Related to the changes to bridge configuration, I'm using some bridge 
interfaces without a configured network device, because it's for a single WiFi 
device only. For such interfaces, the configuration was not changed. I did 
generate a device section without ports options manually. But it didn't help.


I broken my crystal ball, please post your network config.

74be304 is known to introduce a bug, see e7c9c63c6579 ("luci-mod-network: split 
config migration into 2 steps")

If your network config already got migrated into broken version you may need to 
fix it up manually.

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Luci->Network->Interfaces is broken

2021-05-29 Thread e9hack

I'm using a TP-Link Archer C7 v2 router. For every build, I do update my 
sandbox with the current OpenWrt repository and the feeds. The first not 
working build from 27.05. shows in Luci:

OpenWrt SNAPSHOT r16834-53b9cc442f / LuCI Master git-21.147.31971-74be304

Related to the changes to bridge configuration, I'm using some bridge 
interfaces without a configured network device, because it's for a single WiFi 
device only. For such interfaces, the configuration was not changed. I did 
generate a device section without ports options manually. But it didn't help.

Regards,
Hartmut

Am 29.05.2021 um 22:44 schrieb Hauke Mehrtens:

On 5/29/21 10:25 PM, e9hack wrote:

Hi,

it looks like that Luci->Network->Interfaces is broken. It shows a NotFountError (Resource not found) message. My build from 22.05. forces 



me to convert something related to network configuration. Afterwards, this 
dialogue shows the interface configuration. Starting with build from 27.05. it 
shows the NotFountError (Resource not found) message. Builds from 22.05., 
24.05. and 26.05. do show the interfaces configuration in Luci.

Regards,
Hartmut


Hi Hartmut,

What device are you using?
There were bigger changes to the switch configuration recently. Are you using a 
recent version of OpenWrt master and LuCi?

Hauke




___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Luci->Network->Interfaces is broken

2021-05-29 Thread Hauke Mehrtens

On 5/29/21 10:25 PM, e9hack wrote:

Hi,

it looks like that Luci->Network->Interfaces is broken. It shows a 
NotFountError (Resource not found) message. My build from 22.05. forces 


me to convert something related to network configuration. Afterwards, 
this dialogue shows the interface configuration. Starting with build 
from 27.05. it shows the NotFountError (Resource not found) message. 
Builds from 22.05., 24.05. and 26.05. do show the interfaces 
configuration in Luci.


Regards,
Hartmut


Hi Hartmut,

What device are you using?
There were bigger changes to the switch configuration recently. Are you 
using a recent version of OpenWrt master and LuCi?


Hauke



OpenPGP_0x93DD20630910B515.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Luci->Network->Interfaces is broken

2021-05-29 Thread e9hack

Hi,

it looks like that Luci->Network->Interfaces is broken. It shows a 
NotFountError (Resource not found) message. My build from 22.05. forces me to convert 
something related to network configuration. Afterwards, this dialogue shows the 
interface configuration. Starting with build from 27.05. it shows the NotFountError 
(Resource not found) message. Builds from 22.05., 24.05. and 26.05. do show the 
interfaces configuration in Luci.

Regards,
Hartmut

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel