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