fix installation problem with openflow-lib script 46/6446/3
authortierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 29 Aug 2018 13:21:04 +0000 (15:21 +0200)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 30 Aug 2018 09:06:09 +0000 (11:06 +0200)
Change-Id: I6383adb501bc704002a7c7f6f71fff93aad50e77
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
Makefile
openflow

index 95d8970..7078597 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -46,6 +46,7 @@ prepare_lite:
        cp openflow build/openflow-lib
        sed -i "s/from osm_openvim/from lib_osm_openvim/g" build/openflow-lib
        sed -i "s/import osm_openvim/import lib_osm_openvim/g" build/openflow-lib
+       sed -i "s/__import__(\"osm_openvim\.\"/__import__(\"lib_osm_openvim\.\"/g" build/openflow-lib
        sed -i "s/import osm_openvim; print osm_openvim\.__path__\[0\]/import lib_osm_openvim; print lib_osm_openvim\.__path__\[0\]/g" build/lib_osm_openvim/database_utils/migrate_vim_db.sh
        sed -i "s/__import__(\"osm_openvim\.\"/__import__(\"lib_osm_openvim\.\"/g" build/lib_osm_openvim/ovim.py
 
index 316ac0f..91ccf91 100755 (executable)
--- a/openflow
+++ b/openflow
@@ -279,7 +279,7 @@ if __name__=="__main__":
     of_controller_password = os.getenv('OF_CONTROLLER_PASSWORD',None)
     #of_controller_version = os.getenv('OF_CONTROLLER_VERSION',"0.90")
     of_controller_ip = os.getenv('OF_CONTROLLER_IP',"localhost")
-    of_controller_port = os.getenv('OF_CONTROLLER_PORT',"7070")
+    of_controller_port = os.getenv('OF_CONTROLLER_PORT',"8080")
     of_controller_dpid = os.getenv('OF_CONTROLLER_DPID','00:01:02:03:e4:05:e6:07')
     of_controller_module = os.getenv('OF_CONTROLLER_MODULE',None)