def ignore_cidr(vm_, ip):
 if (HAS_NETADDR is False):
  log.error('Error: netaddr is not installed')
  return 'Error: netaddr is not installed'
 cidr = config.get_cloud_config_value('ignore_cidr', vm_, __opts__, default='', search_global=False)
 if ((cidr != '') and all_matching_cidrs(ip, [cidr])):
  log.warning('IP "{0}" found within "{1}"; ignoring it.'.format(ip, cidr))
  return True
 return False

def ignore_cidr ( vm_ , ip ) : if ( HAS_NETADDR is False ) : log . error ( 'Error: netaddr is not installed' ) return 'Error: netaddr is not installed' cidr = config . get_cloud_config_value ( 'ignore_cidr' , vm_ , __opts__ , default = '' , search_global = False ) if ( ( cidr != '' ) and all_matching_cidrs ( ip , [ cidr ] ) ) : log . warning ( 'IP "{0}" found within "{1}"; ignoring it.' . format ( ip , cidr ) ) return True return False
return true if we are to ignore the specified ip .