Fixed bug that generated an error when adding a sdn-controller without user or passwo...
[osm/openvim.git] / openvim
diff --git a/openvim b/openvim
index ae49e29..58d6ff0 100755 (executable)
--- a/openvim
+++ b/openvim
@@ -4,7 +4,7 @@
 
 ##
 # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
-# This file is part of openmano
+# This file is part of openvim
 # All Rights Reserved.
 #
 # Licensed under the Apache License, Version 2.0 (the "License"); you may
@@ -896,7 +896,7 @@ def openflow_action(args):
         if "ADMIN_PORT" not in vim_config:
             print "OPENVIM_ADMIN_PORT variable not defined"
             return 401 # HTTP_Unauthorized
-        url = "http://%s:%s/openvim/networks/openflow/clear" %(vim_config["HOST"], vim_config["ADMIN_PORT"])
+        url = "http://%s:%s/openvim/networks/clear/openflow" %(vim_config["HOST"], vim_config["ADMIN_PORT"])
         r,c = vim_delete(url)
     else:
         return 400 #HTTP_Bad_Request