This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch 4.13
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.13 by this push:
new ae61bfe systemvm: for ip route show command don't use the throw
command (#3612)
ae61bfe is described below
commit ae61bfee761178809536e3f837aaec550ff67716
Author: Rohit Yadav <[email protected]>
AuthorDate: Mon Nov 11 23:47:21 2019 +0530
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 <[email protected]>
---
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 ce87bb0..a77a625 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":