luci-base: make swconfig port state parsing more robust
authorJo-Philipp Wich <jo@mein.io>
Tue, 28 Jan 2020 17:14:28 +0000 (18:14 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 28 Jan 2020 17:16:44 +0000 (18:16 +0100)
commit6d59a6400ed055d71e0b335679d291c22bbdbd40
treec7f5125425a5ab5468df6751cee8b45371e13cec
parent616d44c155ae2b4f19e8b2645744a107e38a56c7
luci-base: make swconfig port state parsing more robust

Since swconfig output varies wildly among different switch drivers, rely
on a simpler more robust parsing approach to find the required information.

Ref: https://forum.openwrt.org/t/cannot-read-property-link/50766
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/root/usr/libexec/rpcd/luci