From aa554d985dcc372fb047f23f293ee8b62719eb00 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 26 Jun 2013 06:21:59 -0700 Subject: [PATCH] Workaround: add default dpopts='--no-slicing' to UserSwitch This disables slicing by default but fixes bandwidth limits. Eventually we want to enable both to work together, but for now this enables one or the other depending on the dpopts setting. --- mininet/node.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mininet/node.py b/mininet/node.py index 8e93af9..ccf9179 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -801,9 +801,10 @@ class UserSwitch( Switch ): dpidLen = 12 - def __init__( self, name, dpopts='', **kwargs ): + def __init__( self, name, dpopts='--no-slicing', **kwargs ): """Init. - name: name for the switch""" + name: name for the switch + dpopts: additional arguments to ofdatapath (--no-slicing)""" Switch.__init__( self, name, **kwargs ) pathCheck( 'ofdatapath', 'ofprotocol', moduleName='the OpenFlow reference user switch' +