Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for openflow 1.3 #79

Merged
merged 26 commits into from
Dec 3, 2015
Merged

Conversation

nikhil1290
Copy link
Contributor

Adding support for OpenFlow 1.3 and support for merging of prefixes

@@ -216,23 +243,21 @@ def changeSwitchForwardingState(self, dpid=None, header=None, actions=None, comm
obj['in_port'] = None

if(header.has_key('nw_src')):
if header['nw_src'].version == 6:
obj['dl_type'] = 34525
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like there needs to be an else here??? OF 1.0 can't include IPv6 maybe Ryu is doing something special for us? In any case I think it is safer to have an else so that we don't try and set the nw_src/dst for IPv6 in OF1.0

if(prefix._version != 4):
header = {"dl_type": 34525}
header = {"dl_type": 34525,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove this if? seems like this is taken care of based on the prefix type later on?

@nikhil1290
Copy link
Contributor Author

Fixed the above specified bugs/issues.

@ajragusa
Copy link
Contributor

ajragusa commented Dec 3, 2015

Hey Nikhil, Great job!

ajragusa added a commit that referenced this pull request Dec 3, 2015
@ajragusa ajragusa merged commit d460d02 into GlobalNOC:1.0.4-dev Dec 3, 2015
@nikhil1290 nikhil1290 deleted the openflow13 branch December 5, 2015 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants