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:
+1
-1
@@ -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
@@ -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 ):
|
||||
|
||||
Reference in New Issue
Block a user