mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Use show command to support wider platform set for nxos_interface module (#33037)
* Use show command to support wider platform set * Fix unit tests
This commit is contained in:
parent
c64eed16fe
commit
95a2140f4b
3 changed files with 847 additions and 82 deletions
|
@ -378,7 +378,7 @@ def get_interfaces_dict(module):
|
|||
keys. Each value is a list of interfaces of given interface (key)
|
||||
type.
|
||||
"""
|
||||
command = 'show interface status'
|
||||
command = 'show interface'
|
||||
try:
|
||||
body = execute_show_command(command, module)[0]
|
||||
except IndexError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue