Update coreapi.py

fixed get_tlv using enumerated type instead of value
This commit is contained in:
bharnden 2019-02-12 20:38:00 -08:00 committed by GitHub
parent b8441bdd2b
commit 37f747c212
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -843,7 +843,7 @@ class CoreMessage(object):
elif self.message_type == MessageTypes.INTERFACE.value:
number1 = self.get_tlv(InterfaceTlvs.NODE.value)
elif self.message_type == MessageTypes.EVENT.value:
number1 = self.get_tlv(EventTlvs.NODE)
number1 = self.get_tlv(EventTlvs.NODE.value)
result = []