fix #894 by actually updating with the modified settings

This commit is contained in:
Daniel Nägele 2015-09-08 15:28:05 +02:00 committed by Matt Clay
parent 8fff5ac9ce
commit d705647873

View file

@ -150,11 +150,13 @@ def add_source(zone, source):
fw_zone = fw.config().getZoneByName(zone)
fw_settings = fw_zone.getSettings()
fw_settings.addSource(source)
fw_zone.update(fw_settings)
def remove_source(zone, source):
fw_zone = fw.config().getZoneByName(zone)
fw_settings = fw_zone.getSettings()
fw_settings.removeSource(source)
fw_zone.update(fw_settings)
####################
# service handling