def aigp (tokeniser):
	if not tokeniser.tokens:
		raise ValueError('aigp requires number (decimal or hexadecimal 0x prefixed)')
	value = tokeniser()
	base = 16 if value.lower().startswith('0x') else 10
	try:
		number = int(value,base)
	except __HOLE__:
		raise ValueError('aigp requires number (decimal or hexadecimal 0x prefixed)')

	return AIGP('\x01\x00\x0b' + pack('!Q',number))
dataset/ETHPy150Open Exa-Networks/exabgp/lib/exabgp/configuration/static/parser.py/aigp