def get_icmp_types(permanent=True):
 cmd = '--get-icmptypes'
 if permanent:
  cmd += ' --permanent'
 return __firewall_cmd(cmd).split()

def get_icmp_types ( permanent = True ) : cmd = '--get-icmptypes' if permanent : cmd += ' --permanent' return __firewall_cmd ( cmd ) . split ( )
print predefined icmptypes cli example: .