|
|
@ -19,7 +19,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|
|
|
ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|
|
|
'status': ['preview'],
|
|
|
|
'status': ['deprecated'],
|
|
|
|
'supported_by': 'community'}
|
|
|
|
'supported_by': 'community'}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -29,6 +29,10 @@ module: pn_trunk
|
|
|
|
author: "Pluribus Networks (@amitsi)"
|
|
|
|
author: "Pluribus Networks (@amitsi)"
|
|
|
|
version_added: "2.2"
|
|
|
|
version_added: "2.2"
|
|
|
|
short_description: CLI command to create/delete/modify a trunk.
|
|
|
|
short_description: CLI command to create/delete/modify a trunk.
|
|
|
|
|
|
|
|
deprecated:
|
|
|
|
|
|
|
|
removed_in: '2.12'
|
|
|
|
|
|
|
|
why: Doesn't support latest Pluribus Networks netvisor
|
|
|
|
|
|
|
|
alternative: Latest modules will be pushed in Ansible future versions.
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Execute trunk-create or trunk-delete command.
|
|
|
|
- Execute trunk-create or trunk-delete command.
|
|
|
|
- Trunks can be used to aggregate network links at Layer 2 on the local
|
|
|
|
- Trunks can be used to aggregate network links at Layer 2 on the local
|
|
|
@ -46,6 +50,7 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Target switch(es) to run the cli on.
|
|
|
|
- Target switch(es) to run the cli on.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
|
|
|
|
default: 'local'
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- State the action to perform. Use 'present' to create trunk,
|
|
|
|
- State the action to perform. Use 'present' to create trunk,
|
|
|
@ -70,6 +75,7 @@ options:
|
|
|
|
pn_jumbo:
|
|
|
|
pn_jumbo:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Specify if the port can receive jumbo frames.
|
|
|
|
- Specify if the port can receive jumbo frames.
|
|
|
|
|
|
|
|
type: bool
|
|
|
|
pn_lacp_mode:
|
|
|
|
pn_lacp_mode:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Specify the LACP mode for the configuration.
|
|
|
|
- Specify the LACP mode for the configuration.
|
|
|
@ -94,18 +100,22 @@ options:
|
|
|
|
pn_edge_switch:
|
|
|
|
pn_edge_switch:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Specify if the switch is an edge switch.
|
|
|
|
- Specify if the switch is an edge switch.
|
|
|
|
|
|
|
|
type: bool
|
|
|
|
pn_pause:
|
|
|
|
pn_pause:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Specify if pause frames are sent.
|
|
|
|
- Specify if pause frames are sent.
|
|
|
|
|
|
|
|
type: bool
|
|
|
|
pn_description:
|
|
|
|
pn_description:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Specify a description for the trunk configuration.
|
|
|
|
- Specify a description for the trunk configuration.
|
|
|
|
pn_loopback:
|
|
|
|
pn_loopback:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Specify loopback if you want to use loopback.
|
|
|
|
- Specify loopback if you want to use loopback.
|
|
|
|
|
|
|
|
type: bool
|
|
|
|
pn_mirror_receive:
|
|
|
|
pn_mirror_receive:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Specify if the configuration receives mirrored traffic.
|
|
|
|
- Specify if the configuration receives mirrored traffic.
|
|
|
|
|
|
|
|
type: bool
|
|
|
|
pn_unknown_ucast_level:
|
|
|
|
pn_unknown_ucast_level:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Specify an unknown unicast level in percent. The default value is 100%.
|
|
|
|
- Specify an unknown unicast level in percent. The default value is 100%.
|
|
|
@ -124,9 +134,11 @@ options:
|
|
|
|
pn_routing:
|
|
|
|
pn_routing:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Specify if the port participates in routing on the network.
|
|
|
|
- Specify if the port participates in routing on the network.
|
|
|
|
|
|
|
|
type: bool
|
|
|
|
pn_host:
|
|
|
|
pn_host:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Host facing port control setting.
|
|
|
|
- Host facing port control setting.
|
|
|
|
|
|
|
|
type: bool
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES = """
|
|
|
|
EXAMPLES = """
|
|
|
@ -294,7 +306,7 @@ def main():
|
|
|
|
pn_lacp_mode=dict(type='str', choices=[
|
|
|
|
pn_lacp_mode=dict(type='str', choices=[
|
|
|
|
'off', 'passive', 'active']),
|
|
|
|
'off', 'passive', 'active']),
|
|
|
|
pn_lacp_priority=dict(type='int'),
|
|
|
|
pn_lacp_priority=dict(type='int'),
|
|
|
|
pn_lacp_timeout=dict(type='str'),
|
|
|
|
pn_lacp_timeout=dict(type='str', choices=['slow', 'fast']),
|
|
|
|
pn_lacp_fallback=dict(type='str', choices=[
|
|
|
|
pn_lacp_fallback=dict(type='str', choices=[
|
|
|
|
'bundle', 'individual']),
|
|
|
|
'bundle', 'individual']),
|
|
|
|
pn_lacp_fallback_timeout=dict(type='str'),
|
|
|
|
pn_lacp_fallback_timeout=dict(type='str'),
|