def remove_source(zone, source, permanent=True):
 if (source not in get_sources(zone, permanent)):
  log.info('Source is not bound to zone.')
 cmd = '--zone={0} --remove-source={1}'.format(zone, source)
 if permanent:
  cmd += ' --permanent'
 return __firewall_cmd(cmd)

def remove_source ( zone , source , permanent = True ) : if ( source not in get_sources ( zone , permanent ) ) : log . info ( 'Source is not bound to zone.' ) cmd = '--zone={0} --remove-source={1}' . format ( zone , source ) if permanent : cmd += ' --permanent' return __firewall_cmd ( cmd )
remove a source bound to a zone .