Skip to content
Snippets Groups Projects
Commit 74c71bc8 authored by Bob Lantz's avatar Bob Lantz
Browse files

Minor tweak of return value.

parent 0b5609f5
No related branches found
No related tags found
No related merge requests found
......@@ -777,7 +777,7 @@ def defaultDpid( self, dpid=None ):
raise Exception( 'Unable to derive default datapath ID - '
'please either specify a dpid or use a '
'canonical switch name such as s23.' )
return ( '0' * self.dpidLen + dpid )[ -self.dpidLen : ]
return '0' * ( self.dpidLen - len( dpid ) ) + dpid
def defaultIntf( self ):
"Return control interface"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment