diff options
-rw-r--r-- | ryu/app/rest_router.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/app/rest_router.py b/ryu/app/rest_router.py index 3a359236..c57e003f 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) |