Ref: https://github.com/openwrt/luci/issues/3565
Ref: https://forum.openwrt.org/t/cannot-read-property-link/50766
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
616d44c155ae2b4f19e8b2645744a107e38a56c7)
if (!node)
return null;
- if (!portstate.link)
+ if (!portstate || !portstate.link)
L.dom.content(node, [
E('img', { src: L.resource('icons/port_down.png') }),
E('br'),
if (!topology) {
ui.addNotification(null, _('Switch %q has an unknown topology - the VLAN settings might not be accurate.').replace(/%q/, switch_name));
- topology = {
+ topologies[switch_name] = topology = {
features: {},
netdevs: {
5: 'eth0'