diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-08-11 21:15:05 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-08-11 21:15:05 +0000 |
commit | 489e69edfd103de532dfd291d3d30eca1db349c8 (patch) | |
tree | 3370ce5d89edd6ea02f1c6a2a16ef7bcdde7a2de | |
parent | 20e12be8182a4330c3a9b38300490480ae82d240 (diff) |
proto/6x4: cast 6to4 adv_interface to string when saving to uci, fixes 6in4.sh not picking up the adv interfaces
-rw-r--r-- | protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua b/protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua index 60f5db7fa..7258cbc91 100644 --- a/protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua +++ b/protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua @@ -32,6 +32,14 @@ adv_interface.nocreate = true adv_interface.nobridges = true adv_interface.novirtual = true +function adv_interface.write(self, section, value) + if type(value) == "table" then + Value.write(self, section, table.concat(value, " ")) + else + Value.write(self, section, value) + end +end + function adv_interface.remove(self, section) self:write(section, " ") end |