Add ios_l3_interface module (#34201)

* Add ios_l3_interface module

Fixes #31298

*  Add ios_3_interface module
*  Integration test
*  Return command response for load_config()

* Fix CI issues
This commit is contained in:
Ganesh Nalawade 2017-12-23 11:24:00 +05:30 committed by GitHub
commit d5061aa8e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 619 additions and 1 deletions

View file

@ -123,7 +123,7 @@ def run_commands(module, commands, check_rc=True):
def load_config(module, commands):
response = []
rc, out, err = exec_command(module, 'configure terminal')
if rc != 0:
module.fail_json(msg='unable to enter configuration mode', err=to_text(out, errors='surrogate_then_replace'))
@ -135,5 +135,8 @@ def load_config(module, commands):
if rc != 0:
exec_command(module, 'end')
module.fail_json(msg=to_text(err, errors='surrogate_then_replace'), command=command, rc=rc)
response.append({command: out})
exec_command(module, 'end')
return response