From ae61bfee761178809536e3f837aaec550ff67716 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Mon, 11 Nov 2019 23:47:21 +0530 Subject: [PATCH] systemvm: for ip route show command don't use the throw command (#3612) 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 ce87bb0533c..a77a62572ad 100755 --- a/systemvm/debian/opt/cloud/bin/cs/CsRoute.py +++ b/systemvm/debian/opt/cloud/bin/cs/CsRoute.py @@ -79,7 +79,7 @@ class CsRoute: 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":