def get_service_ports(service):
 cmd = '--permanent --service={0} --get-ports'.format(service)
 return __firewall_cmd(cmd).split()

def get_service_ports ( service ) : cmd = '--permanent --service={0} --get-ports' . format ( service ) return __firewall_cmd ( cmd ) . split ( )
list ports of a service .