diff options
author | hochikong <1097225749@qq.com> | 2016-08-17 15:04:49 +0800 |
---|---|---|
committer | hochikong <1097225749@qq.com> | 2016-08-17 15:04:49 +0800 |
commit | c1a3b58d93455dd0412e1cf28ff76e6f0b39cb92 (patch) | |
tree | 4b5433df4bbbabec4c05de817f29f2bf14b8c893 | |
parent | 9a7432d4f40e867438b8e7674e3e9a838fc66399 (diff) | |
download | python-vyos-mgmt-c1a3b58d93455dd0412e1cf28ff76e6f0b39cb92.tar.gz python-vyos-mgmt-c1a3b58d93455dd0412e1cf28ff76e6f0b39cb92.zip |
T86 Python management library methods give timeouts
Fix a error in exit_config()
-rw-r--r-- | vyroute/Router.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vyroute/Router.py b/vyroute/Router.py index 5c291dd..74c95a6 100644 --- a/vyroute/Router.py +++ b/vyroute/Router.py @@ -206,7 +206,7 @@ class BasicRouter(Router): self.__status["save"] = None self.__status["commit"] = None return {"Result": "Exit configure mode successfully."} - if force is False: + else: if self.__status["commit"] == "Yes": if self.__status["save"] == "Yes": self.__conn.sendline("exit") @@ -220,6 +220,7 @@ class BasicRouter(Router): elif self.__status["commit"] is None: self.__conn.sendline("exit") self.__conn.prompt() + print "shit" self.__status['configure'] = "No" return {"Result": "Exit configure mode successfully."} else: |