From 6f63fa75b9033dafaf1ab8ec572834a7de927b86 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Mon, 30 Sep 2019 14:35:34 +0530 Subject: [PATCH] systemvm: for ip route show command don't use the throw command While searching for existing route, don't use the throw keyword when using the cmd with `ip route show`. Signed-off-by: Rohit Yadav --- systemvm/debian/opt/cloud/bin/cs/CsRoute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemvm/debian/opt/cloud/bin/cs/CsRoute.py b/systemvm/debian/opt/cloud/bin/cs/CsRoute.py index ce87bb0533cb..a77a62572ad8 100755 --- a/systemvm/debian/opt/cloud/bin/cs/CsRoute.py +++ b/systemvm/debian/opt/cloud/bin/cs/CsRoute.py @@ -79,7 +79,7 @@ def set_route(self, cmd, method="add"): found = False search = cmd if "throw" in search: - search = "type " + search + search = search.replace("throw", "") for i in CsHelper.execute("ip route show " + search): found = True if not found and method == "add":