luci-base: network.lua: fix bridge related functions 1951/head
authorAnton Kikin <a.kikin@tano-systems.com>
Sun, 15 Jul 2018 12:55:04 +0000 (15:55 +0300)
committerAnton Kikin <a.kikin@tano-systems.com>
Sat, 7 Dec 2019 19:28:17 +0000 (22:28 +0300)
commit72247ee09f17fe1f7972de29ca8bc5910a956565
treef3ee9323143e9d5e6e578324760c4ab65b14f117
parent45725dfca6dbe6e24501712a827bbdf6f41d03e8
luci-base: network.lua: fix bridge related functions

This commit fixes these bugs:

1. Functions interface.bridge_id() and interface.bridge_stp() uses self.br field
   that is not exists at all

2. Function interface.is_bridgeport() return true only for bridge interface, not for
   bridge port interfaces.

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
modules/luci-compat/luasrc/model/network.lua