code: def within_ipv4_range(self, field, values):
          
          v = ['ipv4("%s")' % part
               for iprange in values
               for part in iprange.split('-')]
      
          self.update_filter('{} IN range({})'.format(field, ','.join(v)))
docs: Add an IP range network filter for relevant address fields.
          Range (between) filters allow only one range be provided.
          
          :param str field: name of field to filter on. Taken from 'Show Filter
              Expression' within SMC.
          :param list values: IP range values. Values would be a list of IP's
              separated by a '-', i.e. ['1.1.1.1-1.1.1.254']