Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit 355b159

Browse files
committed
Fix packet_in.in_port property to return an int
Fix #490
1 parent 384c848 commit 355b159

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pyof/v0x04/asynchronous/packet_in.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,5 @@ def in_port(self):
9797
it exists. Otherwise return None.
9898
9999
"""
100-
return self.match.get_field(OxmOfbMatchField.OFPXMT_OFB_IN_PORT)
100+
in_port = self.match.get_field(OxmOfbMatchField.OFPXMT_OFB_IN_PORT)
101+
return int.from_bytes(in_port, 'big')

0 commit comments

Comments
 (0)