mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 06:31:23 -07:00
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:
parent
0deda64231
commit
d5061aa8e6
8 changed files with 619 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue