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

Default value for port_no in PortStatsRequest changed#631

Merged
hdiogenes merged 1 commit intokytos:masterfrom
ajoaoff:issue630
Jan 25, 2021
Merged

Default value for port_no in PortStatsRequest changed#631
hdiogenes merged 1 commit intokytos:masterfrom
ajoaoff:issue630

Conversation

@ajoaoff
Copy link
Contributor

@ajoaoff ajoaoff commented Jan 22, 2021

Fixes #630

📑 Description of the Change

The constructor of the class PortStatsRequest accepts a parameter named port_no.
Its default value was None, causing and error when the request was packed.
This PR changes the default value to Port.OFPP_NONE.

💻 Verification Process

All unit tests ran ok.

The default value was None, which caused error when packing.
It has been changed to Port.OFPP_NONE.
Fixex `PackException` error running Kytos with OpenFlow 1.0 #630
@ajoaoff ajoaoff requested review from a team and rmotitsuki and removed request for a team January 22, 2021 21:38
@hdiogenes hdiogenes merged commit 50f29d3 into kytos:master Jan 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PackException error running Kytos with OpenFlow 1.0

2 participants