def _ip_list(self, ip_type):
        self.ip_option = True
        self.has_validator = True
        ips = self._get_value()
        ips = ips.split(',')
        for router in ips:
            router = router.strip()
            try:
                if ip_type == '4':
                    ipaddr.IPv4Address(router)
                else:
                    raise NotImplemented()
            except ipaddr.AddressValueError:
                raise ValidationError("Invalid option ({0}) parameter "
                                      "({1})'".format(self.key, router))
Use this if the value is supposed to be a list of ip addresses.
dataset/ETHPy150Open rtucker-mozilla/mozilla_inventory/core/keyvalue/base_option.py/CommonOption._ip_list