Change OVSSwitch.dpctl() to call ovs-ofctl

This should fix the problem of dump-flows not showing the OpenFlow
flow table flows and only showing cached kernel flow table flows.

fixes #136
This commit is contained in:
Bob Lantz
2013-04-29 14:04:46 -07:00
parent 6c22e057cc
commit 229f112ff3
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -289,7 +289,7 @@ class CLI( Cmd ):
self.inputFile = None
def do_dpctl( self, line ):
"Run dpctl command on all switches."
"Run dpctl (or ovs-ofctl) command on all switches."
args = line.split()
if len(args) < 1:
error( 'usage: dpctl command [arg1] [arg2] ...\n' )
+2 -2
View File
@@ -924,8 +924,8 @@ class OVSSwitch( Switch ):
exit( 1 )
def dpctl( self, *args ):
"Run ovs-dpctl command"
return self.cmd( 'ovs-dpctl', args[ 0 ], self, *args[ 1: ] )
"Run ovs-ofctl command"
return self.cmd( 'ovs-ofctl', args[ 0 ], self, *args[ 1: ] )
@staticmethod
def TCReapply( intf ):