NXOS Docs update
parent
2ea29fee3f
commit
3f8f67e359
|
@ -23,8 +23,8 @@ version_added: "2.1"
|
||||||
author: "Peter Sprygada (@privateip)"
|
author: "Peter Sprygada (@privateip)"
|
||||||
short_description: Run arbitrary command on Cisco NXOS devices
|
short_description: Run arbitrary command on Cisco NXOS devices
|
||||||
description:
|
description:
|
||||||
- Sends an aribtrary command to an NXOS node and returns the results
|
- Sends an arbitrary command to an NXOS node and returns the results
|
||||||
read from the device. The M(nxos_command) modulule includes an
|
read from the device. This module includes an
|
||||||
argument that will cause the module to wait for a specific condition
|
argument that will cause the module to wait for a specific condition
|
||||||
before returning or timing out if the condition is not met.
|
before returning or timing out if the condition is not met.
|
||||||
extends_documentation_fragment: nxos
|
extends_documentation_fragment: nxos
|
||||||
|
@ -50,8 +50,8 @@ options:
|
||||||
description:
|
description:
|
||||||
- Specifies the number of retries a command should by tried
|
- Specifies the number of retries a command should by tried
|
||||||
before it is considered failed. The command is run on the
|
before it is considered failed. The command is run on the
|
||||||
target device every retry and evaluated against the waitfor
|
target device every retry and evaluated against the I(waitfor)
|
||||||
conditionals
|
conditionals.
|
||||||
required: false
|
required: false
|
||||||
default: 10
|
default: 10
|
||||||
interval:
|
interval:
|
||||||
|
|
|
@ -23,8 +23,8 @@ version_added: "2.1"
|
||||||
author: "Peter Sprygada (@privateip)"
|
author: "Peter Sprygada (@privateip)"
|
||||||
short_description: Manage Cisco NXOS configuration sections
|
short_description: Manage Cisco NXOS configuration sections
|
||||||
description:
|
description:
|
||||||
- Cisco NXOS configurations use a simple block indent file sytanx
|
- Cisco NXOS configurations use a simple block indent file syntax
|
||||||
for segementing configuration into sections. This module provides
|
for segmenting configuration into sections. This module provides
|
||||||
an implementation for working with NXOS configuration sections in
|
an implementation for working with NXOS configuration sections in
|
||||||
a deterministic way. This module works with either CLI or NXAPI
|
a deterministic way. This module works with either CLI or NXAPI
|
||||||
transports.
|
transports.
|
||||||
|
@ -52,7 +52,7 @@ options:
|
||||||
a change needs to be made. This allows the playbook designer
|
a change needs to be made. This allows the playbook designer
|
||||||
the opportunity to perform configuration commands prior to pushing
|
the opportunity to perform configuration commands prior to pushing
|
||||||
any changes without affecting how the set of commands are matched
|
any changes without affecting how the set of commands are matched
|
||||||
against the system
|
against the system.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
after:
|
after:
|
||||||
|
@ -81,7 +81,7 @@ options:
|
||||||
the modified lines are pushed to the device in configuration
|
the modified lines are pushed to the device in configuration
|
||||||
mode. If the replace argument is set to I(block) then the entire
|
mode. If the replace argument is set to I(block) then the entire
|
||||||
command block is pushed to the device in configuration mode if any
|
command block is pushed to the device in configuration mode if any
|
||||||
line is not correct
|
line is not correct.
|
||||||
required: false
|
required: false
|
||||||
default: line
|
default: line
|
||||||
choices: ['line', 'block']
|
choices: ['line', 'block']
|
||||||
|
@ -101,8 +101,8 @@ options:
|
||||||
against the contents of source. There are times when it is not
|
against the contents of source. There are times when it is not
|
||||||
desirable to have the task get the current running-config for
|
desirable to have the task get the current running-config for
|
||||||
every task in a playbook. The I(config) argument allows the
|
every task in a playbook. The I(config) argument allows the
|
||||||
implementer to pass in the configuruation to use as the base
|
implementer to pass in the configuration to use as the base
|
||||||
config for comparision.
|
config for comparison.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -24,7 +24,9 @@ short_description: Gets facts about NX-OS switches
|
||||||
description:
|
description:
|
||||||
- Offers ability to extract facts from device
|
- Offers ability to extract facts from device
|
||||||
extends_documentation_fragment: nxos
|
extends_documentation_fragment: nxos
|
||||||
author: Jason Edelman (@jedelman8), Gabriele Gerbino (@GGabriele)
|
author:
|
||||||
|
- Jason Edelman (@jedelman8)
|
||||||
|
- Gabriele Gerbino (@GGabriele)
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
|
|
@ -24,15 +24,17 @@ short_description: Manage features in NX-OS switches
|
||||||
description:
|
description:
|
||||||
- Offers ability to enable and disable features in NX-OS
|
- Offers ability to enable and disable features in NX-OS
|
||||||
extends_documentation_fragment: nxos
|
extends_documentation_fragment: nxos
|
||||||
author: Jason Edelman (@jedelman8), Gabriele Gerbino (@GGabriele)
|
author:
|
||||||
|
- Jason Edelman (@jedelman8)
|
||||||
|
- Gabriele Gerbino (@GGabriele)
|
||||||
options:
|
options:
|
||||||
feature:
|
feature:
|
||||||
description:
|
description:
|
||||||
- Name of feature
|
- Name of feature.
|
||||||
required: true
|
required: true
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the feature
|
- Desired state of the feature.
|
||||||
required: false
|
required: false
|
||||||
default: 'enabled'
|
default: 'enabled'
|
||||||
choices: ['enabled','disabled']
|
choices: ['enabled','disabled']
|
||||||
|
@ -89,7 +91,7 @@ feature:
|
||||||
def execute_config_command(commands, module):
|
def execute_config_command(commands, module):
|
||||||
try:
|
try:
|
||||||
module.configure(commands)
|
module.configure(commands)
|
||||||
except ShellError:
|
except ShellError:
|
||||||
clie = get_exception()
|
clie = get_exception()
|
||||||
module.fail_json(msg='Error sending CLI commands',
|
module.fail_json(msg='Error sending CLI commands',
|
||||||
error=str(clie), commands=commands)
|
error=str(clie), commands=commands)
|
||||||
|
|
|
@ -39,24 +39,24 @@ options:
|
||||||
default: null
|
default: null
|
||||||
admin_state:
|
admin_state:
|
||||||
description:
|
description:
|
||||||
- Administrative state of the interface
|
- Administrative state of the interface.
|
||||||
required: false
|
required: false
|
||||||
default: up
|
default: up
|
||||||
choices: ['up','down']
|
choices: ['up','down']
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- Interface description
|
- Interface description.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
mode:
|
mode:
|
||||||
description:
|
description:
|
||||||
- Manage Layer 2 or Layer 3 state of the interface
|
- Manage I(Layer2) or I(Layer3) state of the interface.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
choices: ['layer2','layer3']
|
choices: ['layer2','layer3']
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Specify desired state of the resource
|
- Specify desired state of the resource.
|
||||||
required: true
|
required: true
|
||||||
default: present
|
default: present
|
||||||
choices: ['present','absent','default']
|
choices: ['present','absent','default']
|
||||||
|
|
|
@ -24,7 +24,9 @@ short_description: Manages L3 attributes for IPv4 and IPv6 interfaces
|
||||||
description:
|
description:
|
||||||
- Manages Layer 3 attributes for IPv4 and IPv6 interfaces
|
- Manages Layer 3 attributes for IPv4 and IPv6 interfaces
|
||||||
extends_documentation_fragment: nxos
|
extends_documentation_fragment: nxos
|
||||||
author: Jason Edelman (@jedelman8), Gabriele Gerbino (@GGabriele)
|
author:
|
||||||
|
- Jason Edelman (@jedelman8)
|
||||||
|
- Gabriele Gerbino (@GGabriele)
|
||||||
notes:
|
notes:
|
||||||
- Interface must already be a L3 port when using this module
|
- Interface must already be a L3 port when using this module
|
||||||
- Logical interfaces (po, loop, svi) must be created first
|
- Logical interfaces (po, loop, svi) must be created first
|
||||||
|
@ -35,21 +37,21 @@ notes:
|
||||||
options:
|
options:
|
||||||
interface:
|
interface:
|
||||||
description:
|
description:
|
||||||
- Full name of interface, i.e. Ethernet1/1, vlan10
|
- Full name of interface, i.e. Ethernet1/1, vlan10.
|
||||||
required: true
|
required: true
|
||||||
addr:
|
addr:
|
||||||
description:
|
description:
|
||||||
- IPv4 or IPv6 Address
|
- IPv4 or IPv6 Address.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
mask:
|
mask:
|
||||||
description:
|
description:
|
||||||
- Subnet mask for IPv4 or IPv6 Address in decimal format
|
- Subnet mask for IPv4 or IPv6 Address in decimal format.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Specify desired state of the resource
|
- Specify desired state of the resource.
|
||||||
required: false
|
required: false
|
||||||
default: present
|
default: present
|
||||||
choices: ['present','absent']
|
choices: ['present','absent']
|
||||||
|
|
|
@ -39,7 +39,7 @@ options:
|
||||||
choices:
|
choices:
|
||||||
- started
|
- started
|
||||||
- stopped
|
- stopped
|
||||||
requred: false
|
required: false
|
||||||
default: started
|
default: started
|
||||||
http_port:
|
http_port:
|
||||||
description:
|
description:
|
||||||
|
@ -56,12 +56,18 @@ options:
|
||||||
- Enable/disable HTTP server.
|
- Enable/disable HTTP server.
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
|
choices:
|
||||||
|
- true
|
||||||
|
- false
|
||||||
aliases:
|
aliases:
|
||||||
- enable_http
|
- enable_http
|
||||||
https:
|
https:
|
||||||
description:
|
description:
|
||||||
- Enable/disable HTTPS server.
|
- Enable/disable HTTPS server.
|
||||||
required: false
|
required: false
|
||||||
|
choices:
|
||||||
|
- true
|
||||||
|
- false
|
||||||
default: true
|
default: true
|
||||||
aliases:
|
aliases:
|
||||||
- enable_https
|
- enable_https
|
||||||
|
@ -70,6 +76,9 @@ options:
|
||||||
- Enable/disable NXAPI web based UI for entering commands.
|
- Enable/disable NXAPI web based UI for entering commands.
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
|
choices:
|
||||||
|
- true
|
||||||
|
- false
|
||||||
aliases:
|
aliases:
|
||||||
- enable_sandbox
|
- enable_sandbox
|
||||||
"""
|
"""
|
||||||
|
@ -144,6 +153,7 @@ def execute_commands(module, commands):
|
||||||
if not module.params.get('check_mode'):
|
if not module.params.get('check_mode'):
|
||||||
module.configure(commands)
|
module.configure(commands)
|
||||||
|
|
||||||
|
|
||||||
def get_nxapi_state(module):
|
def get_nxapi_state(module):
|
||||||
features = module.execute(['show feature | grep nxapi'])[0]
|
features = module.execute(['show feature | grep nxapi'])[0]
|
||||||
if re.search('disabled', features) is None:
|
if re.search('disabled', features) is None:
|
||||||
|
@ -231,7 +241,7 @@ def main():
|
||||||
"""
|
"""
|
||||||
|
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
state=dict(default='started', choices=['started','stopped']),
|
state=dict(default='started', choices=['started', 'stopped']),
|
||||||
http_port=dict(default=80, type='int'),
|
http_port=dict(default=80, type='int'),
|
||||||
https_port=dict(default=443, type='int'),
|
https_port=dict(default=443, type='int'),
|
||||||
http=dict(aliases=['enable_http'], default=True, type='bool'),
|
http=dict(aliases=['enable_http'], default=True, type='bool'),
|
||||||
|
|
|
@ -22,27 +22,29 @@ module: nxos_ping
|
||||||
version_added: "2.1"
|
version_added: "2.1"
|
||||||
short_description: Tests reachability using ping from Nexus switch
|
short_description: Tests reachability using ping from Nexus switch
|
||||||
description:
|
description:
|
||||||
- Tests reachability using ping from switch to a remote destination
|
- Tests reachability using ping from switch to a remote destination.
|
||||||
extends_documentation_fragment: nxos
|
extends_documentation_fragment: nxos
|
||||||
author: Jason Edelman (@jedelman8), Gabriele Gerbino (@GGabriele)
|
author:
|
||||||
|
- Jason Edelman (@jedelman8)
|
||||||
|
- Gabriele Gerbino (@GGabriele)
|
||||||
options:
|
options:
|
||||||
dest:
|
dest:
|
||||||
description:
|
description:
|
||||||
- IP address or hostname (resolvable by switch) of remote node
|
- IP address or hostname (resolvable by switch) of remote node.
|
||||||
required: true
|
required: true
|
||||||
count:
|
count:
|
||||||
description:
|
description:
|
||||||
- Number of packets to send
|
- Number of packets to send.
|
||||||
required: false
|
required: false
|
||||||
default: 2
|
default: 2
|
||||||
source:
|
source:
|
||||||
description:
|
description:
|
||||||
- Source IP Address
|
- Source IP Address.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
vrf:
|
vrf:
|
||||||
description:
|
description:
|
||||||
- Outgoing VRF
|
- Outgoing VRF.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -27,40 +27,40 @@ description:
|
||||||
- Manages Layer 2 interfaces
|
- Manages Layer 2 interfaces
|
||||||
author: Jason Edelman (@jedelman8)
|
author: Jason Edelman (@jedelman8)
|
||||||
notes:
|
notes:
|
||||||
- When state=absent, vlans can be added/removed from trunk links and
|
- When C(state=absent), VLANs can be added/removed from trunk links and
|
||||||
the existing access vlan can be 'unconfigured' to just having VLAN 1
|
the existing access VLAN can be 'unconfigured' to just having VLAN 1
|
||||||
on that interface
|
on that interface
|
||||||
- When working with trunks VLANs the keywords add/remove are always sent
|
- When working with trunks VLANs the keywords add/remove are always sent
|
||||||
in the `switchport trunk allowed vlan` command. Use verbose mode to see
|
in the `switchport trunk allowed vlan` command. Use verbose mode to see
|
||||||
commands sent.
|
commands sent.
|
||||||
- When state=unconfigured, the interface will result with having a default
|
- When C(state=unconfigured), the interface will result with having a default
|
||||||
Layer 2 interface, i.e. vlan 1 in access mode
|
Layer 2 interface, i.e. vlan 1 in access mode
|
||||||
options:
|
options:
|
||||||
interface:
|
interface:
|
||||||
description:
|
description:
|
||||||
- Full name of the interface, i.e. Ethernet1/1
|
- Full name of the interface, i.e. Ethernet1/1.
|
||||||
required: true
|
required: true
|
||||||
default: null
|
default: null
|
||||||
mode:
|
mode:
|
||||||
description:
|
description:
|
||||||
- Mode for the Layer 2 port
|
- Mode for the Layer 2 port.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
choices: ['access','trunk']
|
choices: ['access','trunk']
|
||||||
access_vlan:
|
access_vlan:
|
||||||
description:
|
description:
|
||||||
- if mode=access, used as the access vlan id
|
- If C(mode=access), used as the access VLAN ID.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
native_vlan:
|
native_vlan:
|
||||||
description:
|
description:
|
||||||
- if mode=trunk, used as the trunk native vlan id
|
- If C(mode=trunk), used as the trunk native VLAN ID.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
trunk_vlans:
|
trunk_vlans:
|
||||||
description:
|
description:
|
||||||
- if mode=trunk, used as the vlan range to ADD or REMOVE
|
- If C(mode=trunk), used as the VLAN range to ADD or REMOVE
|
||||||
from the trunk
|
from the trunk.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
state:
|
state:
|
||||||
|
|
|
@ -23,9 +23,9 @@ author: "Peter Sprygada (@privateip)"
|
||||||
short_description: Manage Cisco NXOS device configurations
|
short_description: Manage Cisco NXOS device configurations
|
||||||
description:
|
description:
|
||||||
- Manages network device configurations over SSH or NXAPI. This module
|
- Manages network device configurations over SSH or NXAPI. This module
|
||||||
allows implementors to work with the device running-config. It
|
allows implementers to work with the device running-config. It
|
||||||
provides a way to push a set of commands onto a network device
|
provides a way to push a set of commands onto a network device
|
||||||
by evaluting the current running-config and only pushing configuration
|
by evaluating the current running-config and only pushing configuration
|
||||||
commands that are not already configured. The config source can
|
commands that are not already configured. The config source can
|
||||||
be a set of commands or a template.
|
be a set of commands or a template.
|
||||||
extends_documentation_fragment: nxos
|
extends_documentation_fragment: nxos
|
||||||
|
@ -50,9 +50,9 @@ options:
|
||||||
include_defaults:
|
include_defaults:
|
||||||
description:
|
description:
|
||||||
- The module, by default, will collect the current device
|
- The module, by default, will collect the current device
|
||||||
running-config to use as a base for comparision to the commands
|
running-config to use as a base for comparisons to the commands
|
||||||
in I(src). Setting this value to true will cause the module
|
in I(src). Setting this value to true will cause the module
|
||||||
to issue the command `show running-config all` to include all
|
to issue the command C(show running-config all) to include all
|
||||||
device settings.
|
device settings.
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
|
@ -73,8 +73,8 @@ options:
|
||||||
against the contents of source. There are times when it is not
|
against the contents of source. There are times when it is not
|
||||||
desirable to have the task get the current running-config for
|
desirable to have the task get the current running-config for
|
||||||
every task in a playbook. The I(config) argument allows the
|
every task in a playbook. The I(config) argument allows the
|
||||||
implementer to pass in the configuruation to use as the base
|
implementer to pass in the configuration to use as the base
|
||||||
config for comparision.
|
config for comparison.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
"""
|
"""
|
||||||
|
@ -109,12 +109,14 @@ responses:
|
||||||
sample: ['...', '...']
|
sample: ['...', '...']
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
def get_config(module):
|
def get_config(module):
|
||||||
config = module.params['config'] or dict()
|
config = module.params['config'] or dict()
|
||||||
if not config and not module.params['force']:
|
if not config and not module.params['force']:
|
||||||
config = module.config
|
config = module.config
|
||||||
return config
|
return config
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
|
|
|
@ -28,36 +28,36 @@ extends_documentation_fragment: nxos
|
||||||
options:
|
options:
|
||||||
vlan_id:
|
vlan_id:
|
||||||
description:
|
description:
|
||||||
- single vlan id
|
- Single VLAN ID.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
vlan_range:
|
vlan_range:
|
||||||
description:
|
description:
|
||||||
- range of VLANs such as 2-10 or 2,5,10-15, etc.
|
- A range of VLANs such as I(2-10) or I(2,5,10-15) etc.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- name of VLAN
|
- The name of VLAN.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
vlan_state:
|
vlan_state:
|
||||||
description:
|
description:
|
||||||
- Manage the vlan operational state of the VLAN
|
- Manage the VLAN operational state of the VLAN
|
||||||
(equivalent to state {active | suspend} command
|
(equivalent to state {active | suspend} command.
|
||||||
required: false
|
required: false
|
||||||
default: active
|
default: active
|
||||||
choices: ['active','suspend']
|
choices: ['active','suspend']
|
||||||
admin_state:
|
admin_state:
|
||||||
description:
|
description:
|
||||||
- Manage the vlan admin state of the VLAN equivalent
|
- Manage the VLAN admin state of the VLAN equivalent
|
||||||
to shut/no shut in vlan config mode
|
to shut/no shut in VLAN config mode.
|
||||||
required: false
|
required: false
|
||||||
default: up
|
default: up
|
||||||
choices: ['up','down']
|
choices: ['up','down']
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Manage the state of the resource
|
- Manage the state of the resource.
|
||||||
required: false
|
required: false
|
||||||
default: present
|
default: present
|
||||||
choices: ['present','absent']
|
choices: ['present','absent']
|
||||||
|
|
|
@ -24,7 +24,9 @@ short_description: Manages global VRF configuration
|
||||||
description:
|
description:
|
||||||
- Manages global VRF configuration
|
- Manages global VRF configuration
|
||||||
extends_documentation_fragment: nxos
|
extends_documentation_fragment: nxos
|
||||||
author: Jason Edelman (@jedelman8), Gabriele Gerbino (@GGabriele)
|
author:
|
||||||
|
- Jason Edelman (@jedelman8)
|
||||||
|
- Gabriele Gerbino (@GGabriele)
|
||||||
notes:
|
notes:
|
||||||
- Cisco NX-OS creates the default VRF by itself. Therefore,
|
- Cisco NX-OS creates the default VRF by itself. Therefore,
|
||||||
you're not allowed to use default as I(vrf) name in this module.
|
you're not allowed to use default as I(vrf) name in this module.
|
||||||
|
@ -37,17 +39,17 @@ notes:
|
||||||
options:
|
options:
|
||||||
vrf:
|
vrf:
|
||||||
description:
|
description:
|
||||||
- Name of VRF to be managed
|
- Name of VRF to be managed.
|
||||||
required: true
|
required: true
|
||||||
admin_state:
|
admin_state:
|
||||||
description:
|
description:
|
||||||
- Administrative state of the VRF
|
- Administrative state of the VRF.
|
||||||
required: false
|
required: false
|
||||||
default: up
|
default: up
|
||||||
choices: ['up','down']
|
choices: ['up','down']
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Manages desired state of the resource
|
- Manages desired state of the resource.
|
||||||
required: false
|
required: false
|
||||||
default: present
|
default: present
|
||||||
choices: ['present','absent']
|
choices: ['present','absent']
|
||||||
|
|
|
@ -24,26 +24,28 @@ short_description: Manages interface specific VRF configuration
|
||||||
description:
|
description:
|
||||||
- Manages interface specific VRF configuration
|
- Manages interface specific VRF configuration
|
||||||
extends_documentation_fragment: nxos
|
extends_documentation_fragment: nxos
|
||||||
author: Jason Edelman (@jedelman8), Gabriele Gerbino (@GGabriele)
|
author:
|
||||||
|
- Jason Edelman (@jedelman8)
|
||||||
|
- Gabriele Gerbino (@GGabriele)
|
||||||
notes:
|
notes:
|
||||||
- VRF needs to be added globally with M(nxos_vrf) before
|
- VRF needs to be added globally with M(nxos_vrf) before
|
||||||
adding a VRF to an interface
|
adding a VRF to an interface.
|
||||||
- Remove a VRF from an interface will still remove
|
- Remove a VRF from an interface will still remove
|
||||||
all L3 attributes just as it does from CLI
|
all L3 attributes just as it does from CLI.
|
||||||
- VRF is not read from an interface until IP address is
|
- VRF is not read from an interface until IP address is
|
||||||
configured on that interface
|
configured on that interface.
|
||||||
options:
|
options:
|
||||||
vrf:
|
vrf:
|
||||||
description:
|
description:
|
||||||
- Name of VRF to be managed
|
- Name of VRF to be managed.
|
||||||
required: true
|
required: true
|
||||||
interface:
|
interface:
|
||||||
description:
|
description:
|
||||||
- Full name of interface to be managed, i.e. Ethernet1/1
|
- Full name of interface to be managed, i.e. I(Ethernet1/1).
|
||||||
required: true
|
required: true
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Manages desired state of the resource
|
- Manages desired state of the resource.
|
||||||
required: false
|
required: false
|
||||||
default: present
|
default: present
|
||||||
choices: ['present','absent']
|
choices: ['present','absent']
|
||||||
|
|
|
@ -26,40 +26,42 @@ short_description: Manages VRRP configuration on NX-OS switches
|
||||||
description:
|
description:
|
||||||
- Manages VRRP configuration on NX-OS switches
|
- Manages VRRP configuration on NX-OS switches
|
||||||
extends_documentation_fragment: nxos
|
extends_documentation_fragment: nxos
|
||||||
author: Jason Edelman (@jedelman8), Gabriele Gerbino (@GGabriele)
|
author:
|
||||||
|
- Jason Edelman (@jedelman8)
|
||||||
|
- Gabriele Gerbino (@GGabriele)
|
||||||
notes:
|
notes:
|
||||||
- VRRP feature needs to be enabled first on the system
|
- VRRP feature needs to be enabled first on the system.
|
||||||
- SVIs must exist before using this module
|
- SVIs must exist before using this module.
|
||||||
- Interface must be a L3 port before using this module
|
- Interface must be a L3 port before using this module.
|
||||||
- state=absent removes the vrrp group if it exists on the device
|
- C(state=absent) removes the vrrp group if it exists on the device.
|
||||||
- VRRP cannot be configured on loopback interfaces
|
- VRRP cannot be configured on loopback interfaces.
|
||||||
options:
|
options:
|
||||||
group:
|
group:
|
||||||
description:
|
description:
|
||||||
- vrrp group number
|
- The VRRP group number.
|
||||||
required: true
|
required: true
|
||||||
interface:
|
interface:
|
||||||
description:
|
description:
|
||||||
- Full name of interface that is being managed for vrrp
|
- Full name of interface that is being managed for VRRP.
|
||||||
required: true
|
required: true
|
||||||
priority:
|
priority:
|
||||||
description:
|
description:
|
||||||
- vrrp priority
|
- VRRP priority.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
vip:
|
vip:
|
||||||
description:
|
description:
|
||||||
- hsrp virtual IP address
|
- HSRP virtual IP address.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
authentication:
|
authentication:
|
||||||
description:
|
description:
|
||||||
- clear text authentication string
|
- Clear text authentication string.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Specify desired state of the resource
|
- Specify desired state of the resource.
|
||||||
required: false
|
required: false
|
||||||
default: present
|
default: present
|
||||||
choices: ['present','absent']
|
choices: ['present','absent']
|
||||||
|
|
Loading…
Reference in New Issue