summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhochikong <1097225749@qq.com>2016-08-17 14:54:46 +0800
committerhochikong <1097225749@qq.com>2016-08-17 14:54:46 +0800
commit9a7432d4f40e867438b8e7674e3e9a838fc66399 (patch)
treeb42f13db8d18484f9513632431ba9faa00d03245
parent5fd94939d24cf731421ed4a566d38bb57a5f6f61 (diff)
downloadpython-vyos-mgmt-9a7432d4f40e867438b8e7674e3e9a838fc66399.tar.gz
python-vyos-mgmt-9a7432d4f40e867438b8e7674e3e9a838fc66399.zip
T86 Python management library methods give timeouts
Fix an error in exit_config()
-rw-r--r--vyroute/Router.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/vyroute/Router.py b/vyroute/Router.py
index 7eb6cc5..5c291dd 100644
--- a/vyroute/Router.py
+++ b/vyroute/Router.py
@@ -220,6 +220,7 @@ class BasicRouter(Router):
elif self.__status["commit"] is None:
self.__conn.sendline("exit")
self.__conn.prompt()
+ self.__status['configure'] = "No"
return {"Result": "Exit configure mode successfully."}
else:
return {"Error": "You should commit first."}