From: Takeshi <[email protected]>

---
 ryu/app/rest_router.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ryu/app/rest_router.py b/ryu/app/rest_router.py
index 3a35923..c57e003 100644
--- a/ryu/app/rest_router.py
+++ b/ryu/app/rest_router.py
@@ -410,7 +410,7 @@ class RouterController(ControllerBase):
     def _access_router(self, switch_id, vlan_id, func, rest_param):
         rest_message = []
         routers = self._get_router(switch_id)
-        param = eval(rest_param) if rest_param else {}
+        param = json.loads(rest_param) if rest_param else {}
         for router in routers.values():
             function = getattr(router, func)
             data = function(vlan_id, param, self.waiters)
-- 
1.9.3 (Apple Git-50)


------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to