From 0ee2d670c771925304d1ded7293f52c734ff82fa Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 8 Oct 2009 00:48:02 +0000 Subject: modules/admin-full: only remove network if zones actually change --- modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/admin-full/luasrc/model') diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua index 37fab9f2bd..db4d500f5b 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua @@ -109,9 +109,6 @@ function fwzone.cfgvalue(self, section) end function fwzone.write(self, section, value) - - fw.del_network(section) - local zone = fw.get_zone(value) if not zone then @@ -122,6 +119,7 @@ function fwzone.write(self, section, value) end if zone then + fw.del_network(section) zone:add_network(section) end end -- cgit v1.2.3