Skip to content

Commit

Permalink
Fix dpid type conversion, refer to #102
Browse files Browse the repository at this point in the history
  • Loading branch information
hsiaohsuan1l1l authored and starbops committed May 28, 2016
1 parent 8a71573 commit 42cf50f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapter/ryu/omniui/omniui.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ def mod_flow_entry(self, req, **kwargs):
dpid = self.nospaceDPID(omniDpid.split(':')) #Split OmniUI dpid into a list

cmd = omniFlow.get('command') #Getting OmniUI command from flow
dp = self.dpset.get(int(dpid)) #Getting datapath from Ryu dpid
dp = self.dpset.get(int(dpid, 16)) #Getting datapath from Ryu dpid
if dp is None: #NB: convert dpid to int first
return Response(status=404)

Expand Down

0 comments on commit 42cf50f

Please sign in to comment.