merge master and fix SDN chaining unit test
authorstevenvanrossem <steven.vanrossem@intec.ugent.be>
Wed, 11 May 2016 21:51:06 +0000 (23:51 +0200)
committerstevenvanrossem <steven.vanrossem@intec.ugent.be>
Wed, 11 May 2016 21:51:06 +0000 (23:51 +0200)
26 files changed:
LICENSE [changed mode: 0644->0755]
misc/sonata-demo-docker.son [changed mode: 0644->0755]
setup.cfg [changed mode: 0644->0755]
setup.py [changed mode: 0644->0755]
src/emuvim/__init__.py [changed mode: 0644->0755]
src/emuvim/api/openstack/README.md [changed mode: 0644->0755]
src/emuvim/api/sonata/README.md [changed mode: 0644->0755]
src/emuvim/api/sonata/__init__.py [changed mode: 0644->0755]
src/emuvim/api/zerorpc/__init__.py [changed mode: 0644->0755]
src/emuvim/api/zerorpc/compute.py [changed mode: 0644->0755]
src/emuvim/api/zerorpc/network.py [changed mode: 0644->0755]
src/emuvim/conftest.py [changed mode: 0644->0755]
src/emuvim/dcemulator/resourcemodel/__init__.py [changed mode: 0644->0755]
src/emuvim/dcemulator/resourcemodel/upb/__init__.py [changed mode: 0644->0755]
src/emuvim/dcemulator/resourcemodel/upb/simple.py [changed mode: 0644->0755]
src/emuvim/examples/resource_model_demo_topology.py [changed mode: 0644->0755]
src/emuvim/examples/sonata_y1_demo_topology_1.py [changed mode: 0644->0755]
src/emuvim/test/__init__.py [changed mode: 0644->0755]
src/emuvim/test/base.py [changed mode: 0644->0755]
src/emuvim/test/integrationtests/__init__.py [changed mode: 0644->0755]
src/emuvim/test/unittests/__init__.py [changed mode: 0644->0755]
src/emuvim/test/unittests/test_emulator.py
src/emuvim/test/unittests/test_resourcemodel.py [changed mode: 0644->0755]
src/emuvim/test/unittests/test_sonata_dummy_gatekeeper.py [changed mode: 0644->0755]
utils/ci/junit-xml/.gitkeep [changed mode: 0644->0755]
utils/docker/Dockerfile [changed mode: 0644->0755]

diff --git a/LICENSE b/LICENSE
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 2021355..0adc917
@@ -40,7 +40,9 @@ class SimpleTestTopology(unittest.TestCase):
         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:
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index e2c3b6b..ad9896a 100755 (executable)
@@ -90,7 +90,7 @@ class testEmulatorTopology( SimpleTestTopology ):
 
 class testEmulatorNetworking( SimpleTestTopology ):
 
-    def testSDNChaining(self):
+    def testSDNChainingSingleService(self):
         """
         Create a two data centers and interconnect them with additional
         switches between them.
@@ -113,7 +113,7 @@ class testEmulatorNetworking( SimpleTestTopology ):
         vnf1 = self.dc[0].startCompute("vnf1", network=[{'id':'intf1', 'ip':'10.0.10.1/24'}])
         vnf2 = self.dc[1].startCompute("vnf2", network=[{'id':'intf2', 'ip':'10.0.10.2/24'}])
         # check number of running nodes
-        self.assertTrue(len(self.getDockernetContainers()) == 2)
+        self.assertTrue(len(self.getContainernetContainers()) == 2)
         self.assertTrue(len(self.net.hosts) == 2)
         self.assertTrue(len(self.net.switches) == 5)
         # check status
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)