From 229f112ff3f1ed3eff712d15835858b3a01ac879 Mon Sep 17 00:00:00 2001 From: Bob Lantz <rlantz@cs.stanford.edu> Date: Mon, 29 Apr 2013 14:04:46 -0700 Subject: [PATCH] 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 --- mininet/cli.py | 2 +- mininet/node.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mininet/cli.py b/mininet/cli.py index 91f44e9d..59713ccb 100644 --- a/mininet/cli.py +++ b/mininet/cli.py @@ -289,7 +289,7 @@ def do_source( self, line ): 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' ) diff --git a/mininet/node.py b/mininet/node.py index fc24ad21..8460b390 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -924,8 +924,8 @@ def setup( cls ): 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 ): -- GitLab