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
|
self.inputFile = None
|
||||||
|
|
||||||
def do_dpctl( self, line ):
|
def do_dpctl( self, line ):
|
||||||
"Run dpctl command on all switches."
|
"Run dpctl (or ovs-ofctl) command on all switches."
|
||||||
args = line.split()
|
args = line.split()
|
||||||
if len(args) < 1:
|
if len(args) < 1:
|
||||||
error( 'usage: dpctl command [arg1] [arg2] ...\n' )
|
error( 'usage: dpctl command [arg1] [arg2] ...\n' )
|
||||||
|
|||||||
+2
-2
@@ -924,8 +924,8 @@ class OVSSwitch( Switch ):
|
|||||||
exit( 1 )
|
exit( 1 )
|
||||||
|
|
||||||
def dpctl( self, *args ):
|
def dpctl( self, *args ):
|
||||||
"Run ovs-dpctl command"
|
"Run ovs-ofctl command"
|
||||||
return self.cmd( 'ovs-dpctl', args[ 0 ], self, *args[ 1: ] )
|
return self.cmd( 'ovs-ofctl', args[ 0 ], self, *args[ 1: ] )
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def TCReapply( intf ):
|
def TCReapply( intf ):
|
||||||
|
|||||||
Reference in New Issue
Block a user