Skip to content
Snippets Groups Projects
Commit 6022e96b authored by lantz's avatar lantz
Browse files

Merge pull request #269 from adferguson/userspace_unix

userspace switch can be reached on unix port by dpctl
parents 2286ef4b 0dd96ebc
No related branches found
No related tags found
No related merge requests found
...@@ -827,10 +827,13 @@ def setup( cls ): ...@@ -827,10 +827,13 @@ def setup( cls ):
def dpctl( self, *args ): def dpctl( self, *args ):
"Run dpctl command" "Run dpctl command"
listenAddr = None
if not self.listenPort: if not self.listenPort:
return "can't run dpctl without passive listening port" listenAddr = 'unix:/tmp/' + self.name
else:
listenAddr = 'tcp:127.0.0.1:%i' % self.listenPort
return self.cmd( 'dpctl ' + ' '.join( args ) + return self.cmd( 'dpctl ' + ' '.join( args ) +
' tcp:127.0.0.1:%i' % self.listenPort ) ' ' + listenAddr )
def connected( self ): def connected( self ):
"Is the switch connected to a controller?" "Is the switch connected to a controller?"
......
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