fix nxos edit_config for httpapi and have uniform load_config (#41358)

* fix nxos load_config for httpapi and migrate to cliconf

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>

* add comment

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>

* address review comment

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>

* address review comment

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha
2018-06-14 22:02:12 +05:30
committed by GitHub
parent 0d885260a5
commit f170298332
3 changed files with 12 additions and 5 deletions

View File

@@ -164,8 +164,7 @@ class Cli:
msgs = []
try:
responses = connection.edit_config(config)
out = json.loads(responses)[1:-1]
msg = out
msg = json.loads(responses)
except ConnectionError as e:
code = getattr(e, 'code', 1)
message = getattr(e, 'err', e)