Convert to reduced list of known types (#50010)

This commit is contained in:
Dag Wieers 2018-12-18 22:25:30 +01:00 committed by Jordan Borean
commit 05c6ff79f9
908 changed files with 4822 additions and 4821 deletions

View file

@ -164,7 +164,7 @@ commands:
changed:
description: check to see if a change was made on the device
returned: always
type: boolean
type: bool
sample: true
'''

View file

@ -138,7 +138,7 @@ updates:
changed:
description: check to see if a change was made on the device
returned: always
type: boolean
type: bool
sample: true
'''
import re

View file

@ -273,7 +273,7 @@ updates:
backup_path:
description: The full path to the backup file
returned: when backup is yes
type: string
type: str
sample: /playbooks/ansible/backup/nxos_config.2016-07-16@22:28:34
"""
from ansible.module_utils._text import to_text

View file

@ -90,11 +90,11 @@ ansible_net_version:
ansible_net_hostname:
description: The configured hostname of the device
returned: always
type: string
type: str
ansible_net_image:
description: The image file the device is running
returned: always
type: string
type: str
# hardware
ansible_net_filesystems:

View file

@ -140,17 +140,17 @@ transfer_status:
description: Whether a file was transferred. "No Transfer" or "Sent".
If file_pull is successful, it is set to "Received".
returned: success
type: string
type: str
sample: 'Sent'
local_file:
description: The path of the local file.
returned: success
type: string
type: str
sample: '/path/to/local/file'
remote_file:
description: The path of the remote file.
returned: success
type: string
type: str
sample: '/path/to/remote/file'
'''

View file

@ -144,7 +144,7 @@ RETURN = '''
final_system_mode:
description: describe the last system mode
returned: verbose mode
type: string
type: str
sample: normal
updates:
description: commands sent to the device
@ -154,7 +154,7 @@ updates:
changed:
description: check to see if a change was made on the device
returned: always
type: boolean
type: bool
sample: true
'''

View file

@ -93,7 +93,7 @@ updates:
changed:
description: check to see if a change was made on the device
returned: always
type: boolean
type: bool
sample: true
'''

View file

@ -185,7 +185,7 @@ updates:
changed:
description: check to see if a change was made on the device
returned: always
type: boolean
type: bool
sample: true
'''

View file

@ -100,7 +100,7 @@ RETURN = '''
install_state:
description: Boot and install information.
returned: always
type: dictionary
type: dict
sample: {
"install_state": [
"Compatibility check is done:",

View file

@ -100,7 +100,7 @@ updates:
changed:
description: check to see if a change was made on the device
returned: always
type: boolean
type: bool
sample: true
'''

View file

@ -103,7 +103,7 @@ packets_tx:
packet_loss:
description: Percentage of packets lost
returned: always
type: string
type: str
sample: "0.00%"
'''
from ansible.module_utils.network.nxos.nxos import run_commands

View file

@ -54,7 +54,7 @@ RETURN = '''
rebooted:
description: Whether the device was instructed to reboot.
returned: success
type: boolean
type: bool
sample: true
'''

View file

@ -65,12 +65,12 @@ RETURN = '''
filename:
description: The filename of the checkpoint/rollback file.
returned: success
type: string
type: str
sample: 'backup.cfg'
status:
description: Which operation took place and whether it was successful.
returned: success
type: string
type: str
sample: 'rollback executed'
'''

View file

@ -99,7 +99,7 @@ updates:
changed:
description: check to see if a change was made on the device
returned: always
type: boolean
type: bool
sample: true
'''

View file

@ -105,7 +105,7 @@ updates:
changed:
description: check to see if a change was made on the device
returned: always
type: boolean
type: bool
sample: true
'''

View file

@ -82,7 +82,7 @@ updates:
changed:
description: check to see if a change was made on the device
returned: always
type: boolean
type: bool
sample: true
'''

View file

@ -95,7 +95,7 @@ updates:
changed:
description: check to see if a change was made on the device
returned: always
type: boolean
type: bool
sample: true
'''

View file

@ -79,7 +79,7 @@ updates:
changed:
description: check to see if a change was made on the device
returned: always
type: boolean
type: bool
sample: true
'''
from ansible.module_utils.network.nxos.nxos import load_config, run_commands