Skip to content

Fix OpenFlow version negotiation#6

Merged
alnvdl merged 2 commits intoOpenNetworkingFoundation:0.2from
rsanger:fix_negotiation
Nov 20, 2015
Merged

Fix OpenFlow version negotiation#6
alnvdl merged 2 commits intoOpenNetworkingFoundation:0.2from
rsanger:fix_negotiation

Conversation

@rsanger
Copy link

@rsanger rsanger commented Oct 28, 2015

The maximum version reported by the switch was always being used,
as a result if the libfluid application did not support this
version the negotiation would fail.

E.g. A switch supporting 1.0,1.3 and a controller supporting only 1.0
would fail rather than selecting version 1.0.

Now the highest version supported by both switch and controller is
selected as per the OpenFlow standard.

The maximum version reported by the switch was always being used,
as a result if the libfluid application did not support this
version the negotiation would fail.

E.g. A switch supporting 1.0,1.3 and a controller supporting only 1.0
would fail rather than selecting version 1.0.

Now the highest version supported by both switch and controller is
selected as per the OpenFlow standard.
…connection

Only error messages during the handshake should close the connection
@alnvdl
Copy link
Member

alnvdl commented Nov 20, 2015

Thanks for catching this! It'll take me a while to test it, but it looks good. And your approach also seems to make the version negotiation algorithm clearer.

alnvdl added a commit that referenced this pull request Nov 20, 2015
Fix OpenFlow version negotiation
@alnvdl alnvdl merged commit 56df5e2 into OpenNetworkingFoundation:0.2 Nov 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants