Skip to content

Commit ae61bfe

Browse files
authored
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 <rohit.yadav@shapeblue.com>
1 parent 95fbe7c commit ae61bfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

systemvm/debian/opt/cloud/bin/cs/CsRoute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def set_route(self, cmd, method="add"):
7979
found = False
8080
search = cmd
8181
if "throw" in search:
82-
search = "type " + search
82+
search = search.replace("throw", "")
8383
for i in CsHelper.execute("ip route show " + search):
8484
found = True
8585
if not found and method == "add":

0 commit comments

Comments
 (0)