projects
/
osm
/
vim-emu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add files for son-monitor test
[osm/vim-emu.git]
/
src
/
emuvim
/
test
/
base.py
diff --git
a/src/emuvim/test/base.py
b/src/emuvim/test/base.py
old mode 100644
(file)
new mode 100755
(executable)
index
2021355
..
0adc917
--- a/
src/emuvim/test/base.py
+++ b/
src/emuvim/test/base.py
@@
-40,7
+40,9
@@
class SimpleTestTopology(unittest.TestCase):
self.net = DCNetwork(controller=controller, **kwargs)
# add some switches
self.net = DCNetwork(controller=controller, **kwargs)
# add some switches
- for i in range(0, nswitches):
+ # start from s1 because ovs does not like to have dpid = 0
+ # and switch name-number is being used by mininet to set the dpid
+ for i in range(1, nswitches+1):
self.s.append(self.net.addSwitch('s%d' % i))
# if specified, chain all switches
if autolinkswitches:
self.s.append(self.net.addSwitch('s%d' % i))
# if specified, chain all switches
if autolinkswitches: