|
|
@ -58,7 +58,7 @@ options:
|
|
|
|
- Administratively shutdown the NVE interface.
|
|
|
|
- Administratively shutdown the NVE interface.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
choices: ['true','false']
|
|
|
|
choices: ['true','false']
|
|
|
|
default: false
|
|
|
|
default: true
|
|
|
|
source_interface:
|
|
|
|
source_interface:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Specify the loopback interface whose IP address should be
|
|
|
|
- Specify the loopback interface whose IP address should be
|
|
|
@ -100,6 +100,7 @@ commands:
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
import re
|
|
|
|
import re
|
|
|
|
|
|
|
|
|
|
|
|
from ansible.module_utils.network.nxos.nxos import get_config, load_config
|
|
|
|
from ansible.module_utils.network.nxos.nxos import get_config, load_config
|
|
|
|
from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args
|
|
|
|
from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args
|
|
|
|
from ansible.module_utils.basic import AnsibleModule
|
|
|
|
from ansible.module_utils.basic import AnsibleModule
|
|
|
@ -120,6 +121,7 @@ PARAM_TO_COMMAND_KEYMAP = {
|
|
|
|
PARAM_TO_DEFAULT_KEYMAP = {
|
|
|
|
PARAM_TO_DEFAULT_KEYMAP = {
|
|
|
|
'description': False,
|
|
|
|
'description': False,
|
|
|
|
'shutdown': True,
|
|
|
|
'shutdown': True,
|
|
|
|
|
|
|
|
'source_interface_hold_down_time': '180',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -270,7 +272,6 @@ def main():
|
|
|
|
shutdown=dict(required=False, type='bool'),
|
|
|
|
shutdown=dict(required=False, type='bool'),
|
|
|
|
source_interface=dict(required=False, type='str'),
|
|
|
|
source_interface=dict(required=False, type='str'),
|
|
|
|
source_interface_hold_down_time=dict(required=False, type='str'),
|
|
|
|
source_interface_hold_down_time=dict(required=False, type='str'),
|
|
|
|
m_facts=dict(required=False, default=False, type='bool'),
|
|
|
|
|
|
|
|
state=dict(choices=['present', 'absent'], default='present', required=False),
|
|
|
|
state=dict(choices=['present', 'absent'], default='present', required=False),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|