@classmethod
	def _value (cls,string):
		name = string.lower().replace('_','-')
		if name in cls.codes:
			return cls.codes[name]
		if string.isdigit():
			value = int(string)
			if cls.names in value:
				return value
		if string_is_hex(string):
			value = int(string[2:],16)
			if value in cls.names:
				return value
		raise ValueError('unknown %s %s' % (cls.NAME,name))
dataset/ETHPy150Open Exa-Networks/exabgp/lib/exabgp/protocol/resource.py/Resource._value/swapped operands of `in`