update openflow port for ryu
authorstevenvanrossem <steven.vanrossem@intec.ugent.be>
Fri, 19 Feb 2016 09:33:09 +0000 (10:33 +0100)
committerstevenvanrossem <steven.vanrossem@intec.ugent.be>
Fri, 19 Feb 2016 09:33:09 +0000 (10:33 +0100)
.gitignore [changed mode: 0644->0755]
emuvim/api/zerorpcapi_DCNetwork.py [changed mode: 0644->0755]
emuvim/cli/monitor.py [changed mode: 0644->0755]
emuvim/dcemulator/monitoring.py [changed mode: 0644->0755]
emuvim/dcemulator/net.py
emuvim/example_topology.py

old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 24becd3..b60093d
@@ -34,9 +34,12 @@ class ZeroRpcApiEndpointDCNetwork(object):
         python_install_path = site.getsitepackages()[0]\r
         ryu_path = python_install_path + '/ryu/app/simple_switch_13.py'\r
         ryu_path2 =  python_install_path + '/ryu/app/ofctl_rest.py'\r
+        # change the default Openflow controller port to 6653 (official IANA-assigned port number), as used by Mininet\r
+        # Ryu still uses 6633 as default\r
+        ryu_option = '--ofp-tcp-listen-port'\r
+        ryu_of_port = '6653'\r
         ryu_cmd =  'ryu-manager'\r
-        self.ryu_process = Popen([ryu_cmd, ryu_path, ryu_path2])\r
-\r
+        self.ryu_process = Popen([ryu_cmd, ryu_path, ryu_path2, ryu_option, ryu_of_port])\r
 \r
     def connectDCNetwork(self, net):\r
         self.net = net\r
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 609d46c..324c4d3 100755 (executable)
@@ -27,9 +27,11 @@ class DCNetwork(Dockernet):
         self.dcs = {}
         # create a Mininet/Dockernet network
         # call original Docker.__init__ and setup default controller
+        #Dockernet.__init__(
+        #    self, controller=RemoteController, switch=OVSKernelSwitch, **kwargs)
         Dockernet.__init__(
             self, controller=RemoteController, switch=OVSKernelSwitch, **kwargs)
-        self.addController('c0')
+        self.addController('c0', controller=RemoteController)
 
         # graph of the complete DC network
         self.DCNetwork_graph=nx.DiGraph()
index 9412863..2342fd1 100755 (executable)
@@ -37,7 +37,6 @@ def create_topology1():
     mon_api = ZeroRpcApiEndpointDCNetwork("0.0.0.0", 5151)
     mon_api.connectDCNetwork(net)
     mon_api.start()
-
     """
     2. Add (logical) data centers to the topology
        (each data center is one "bigswitch" in our simplified