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

Commit edb84db

Browse files
authored
Merge pull request #491 from renanrodrigo/fix_in_port
Fix packet_in.in_port property to return an int
2 parents 384c848 + 355b159 commit edb84db

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)