From e3e034e3124ea755e924dc667fd1232323cff70c Mon Sep 17 00:00:00 2001 From: stevenvanrossem Date: Wed, 11 May 2016 23:51:06 +0200 Subject: [PATCH] merge master and fix SDN chaining unit test --- LICENSE | 0 misc/sonata-demo-docker.son | Bin setup.cfg | 0 setup.py | 0 src/emuvim/__init__.py | 0 src/emuvim/api/openstack/README.md | 0 src/emuvim/api/sonata/README.md | 0 src/emuvim/api/sonata/__init__.py | 0 src/emuvim/api/zerorpc/__init__.py | 0 src/emuvim/api/zerorpc/compute.py | 0 src/emuvim/api/zerorpc/network.py | 0 src/emuvim/conftest.py | 0 src/emuvim/dcemulator/resourcemodel/__init__.py | 0 src/emuvim/dcemulator/resourcemodel/upb/__init__.py | 0 src/emuvim/dcemulator/resourcemodel/upb/simple.py | 0 src/emuvim/examples/resource_model_demo_topology.py | 0 src/emuvim/examples/sonata_y1_demo_topology_1.py | 0 src/emuvim/test/__init__.py | 0 src/emuvim/test/base.py | 4 +++- src/emuvim/test/integrationtests/__init__.py | 0 src/emuvim/test/unittests/__init__.py | 0 src/emuvim/test/unittests/test_emulator.py | 4 ++-- src/emuvim/test/unittests/test_resourcemodel.py | 0 .../test/unittests/test_sonata_dummy_gatekeeper.py | 0 utils/ci/junit-xml/.gitkeep | 0 utils/docker/Dockerfile | 0 26 files changed, 5 insertions(+), 3 deletions(-) mode change 100644 => 100755 LICENSE mode change 100644 => 100755 misc/sonata-demo-docker.son mode change 100644 => 100755 setup.cfg mode change 100644 => 100755 setup.py mode change 100644 => 100755 src/emuvim/__init__.py mode change 100644 => 100755 src/emuvim/api/openstack/README.md mode change 100644 => 100755 src/emuvim/api/sonata/README.md mode change 100644 => 100755 src/emuvim/api/sonata/__init__.py mode change 100644 => 100755 src/emuvim/api/zerorpc/__init__.py mode change 100644 => 100755 src/emuvim/api/zerorpc/compute.py mode change 100644 => 100755 src/emuvim/api/zerorpc/network.py mode change 100644 => 100755 src/emuvim/conftest.py mode change 100644 => 100755 src/emuvim/dcemulator/resourcemodel/__init__.py mode change 100644 => 100755 src/emuvim/dcemulator/resourcemodel/upb/__init__.py mode change 100644 => 100755 src/emuvim/dcemulator/resourcemodel/upb/simple.py mode change 100644 => 100755 src/emuvim/examples/resource_model_demo_topology.py mode change 100644 => 100755 src/emuvim/examples/sonata_y1_demo_topology_1.py mode change 100644 => 100755 src/emuvim/test/__init__.py mode change 100644 => 100755 src/emuvim/test/base.py mode change 100644 => 100755 src/emuvim/test/integrationtests/__init__.py mode change 100644 => 100755 src/emuvim/test/unittests/__init__.py mode change 100644 => 100755 src/emuvim/test/unittests/test_resourcemodel.py mode change 100644 => 100755 src/emuvim/test/unittests/test_sonata_dummy_gatekeeper.py mode change 100644 => 100755 utils/ci/junit-xml/.gitkeep mode change 100644 => 100755 utils/docker/Dockerfile diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/misc/sonata-demo-docker.son b/misc/sonata-demo-docker.son old mode 100644 new mode 100755 diff --git a/setup.cfg b/setup.cfg old mode 100644 new mode 100755 diff --git a/setup.py b/setup.py old mode 100644 new mode 100755 diff --git a/src/emuvim/__init__.py b/src/emuvim/__init__.py old mode 100644 new mode 100755 diff --git a/src/emuvim/api/openstack/README.md b/src/emuvim/api/openstack/README.md old mode 100644 new mode 100755 diff --git a/src/emuvim/api/sonata/README.md b/src/emuvim/api/sonata/README.md old mode 100644 new mode 100755 diff --git a/src/emuvim/api/sonata/__init__.py b/src/emuvim/api/sonata/__init__.py old mode 100644 new mode 100755 diff --git a/src/emuvim/api/zerorpc/__init__.py b/src/emuvim/api/zerorpc/__init__.py old mode 100644 new mode 100755 diff --git a/src/emuvim/api/zerorpc/compute.py b/src/emuvim/api/zerorpc/compute.py old mode 100644 new mode 100755 diff --git a/src/emuvim/api/zerorpc/network.py b/src/emuvim/api/zerorpc/network.py old mode 100644 new mode 100755 diff --git a/src/emuvim/conftest.py b/src/emuvim/conftest.py old mode 100644 new mode 100755 diff --git a/src/emuvim/dcemulator/resourcemodel/__init__.py b/src/emuvim/dcemulator/resourcemodel/__init__.py old mode 100644 new mode 100755 diff --git a/src/emuvim/dcemulator/resourcemodel/upb/__init__.py b/src/emuvim/dcemulator/resourcemodel/upb/__init__.py old mode 100644 new mode 100755 diff --git a/src/emuvim/dcemulator/resourcemodel/upb/simple.py b/src/emuvim/dcemulator/resourcemodel/upb/simple.py old mode 100644 new mode 100755 diff --git a/src/emuvim/examples/resource_model_demo_topology.py b/src/emuvim/examples/resource_model_demo_topology.py old mode 100644 new mode 100755 diff --git a/src/emuvim/examples/sonata_y1_demo_topology_1.py b/src/emuvim/examples/sonata_y1_demo_topology_1.py old mode 100644 new mode 100755 diff --git a/src/emuvim/test/__init__.py b/src/emuvim/test/__init__.py old mode 100644 new mode 100755 diff --git a/src/emuvim/test/base.py b/src/emuvim/test/base.py old mode 100644 new mode 100755 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 - 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: diff --git a/src/emuvim/test/integrationtests/__init__.py b/src/emuvim/test/integrationtests/__init__.py old mode 100644 new mode 100755 diff --git a/src/emuvim/test/unittests/__init__.py b/src/emuvim/test/unittests/__init__.py old mode 100644 new mode 100755 diff --git a/src/emuvim/test/unittests/test_emulator.py b/src/emuvim/test/unittests/test_emulator.py index e2c3b6b..ad9896a 100755 --- a/src/emuvim/test/unittests/test_emulator.py +++ b/src/emuvim/test/unittests/test_emulator.py @@ -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 diff --git a/src/emuvim/test/unittests/test_resourcemodel.py b/src/emuvim/test/unittests/test_resourcemodel.py old mode 100644 new mode 100755 diff --git a/src/emuvim/test/unittests/test_sonata_dummy_gatekeeper.py b/src/emuvim/test/unittests/test_sonata_dummy_gatekeeper.py old mode 100644 new mode 100755 diff --git a/utils/ci/junit-xml/.gitkeep b/utils/ci/junit-xml/.gitkeep old mode 100644 new mode 100755 diff --git a/utils/docker/Dockerfile b/utils/docker/Dockerfile old mode 100644 new mode 100755 -- 2.25.1