def check_set(set=None, family='ipv4'):
 if (not set):
  return 'Error: Set needs to be specified'
 setinfo = _find_set_info(set)
 if (not setinfo):
  return False
 return True

def check_set ( set = None , family = 'ipv4' ) : if ( not set ) : return 'Error: Set needs to be specified' setinfo = _find_set_info ( set ) if ( not setinfo ) : return False return True
check that given ipset set exists .