def get_rich_rules(zone, permanent=True):
 cmd = '--zone={0} --list-rich-rules'.format(zone)
 if permanent:
  cmd += ' --permanent'
 return __firewall_cmd(cmd).splitlines()

def get_rich_rules ( zone , permanent = True ) : cmd = '--zone={0} --list-rich-rules' . format ( zone ) if permanent : cmd += ' --permanent' return __firewall_cmd ( cmd ) . splitlines ( )
list rich rules bound to a zone .