def ip (tokeniser):
	if not tokeniser.tokens:
		raise ValueError('an ip address is required')

	value = tokeniser()
	try:
		return IP.create(value)
	except (__HOLE__,ValueError,socket.error):
		raise ValueError('"%s" is an invalid IP address' % value)
dataset/ETHPy150Open Exa-Networks/exabgp/lib/exabgp/configuration/parser.py/ip