�
�Udac @` s� d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
m Z d d l m
Z
m Z d d
l m Z d � Z e d k r� e � n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bysY
---
module: pn_fabric_local
author: "Pluribus Networks (@rajaspachipulusu17)"
version_added: "2.9"
short_description: CLI command to modify fabric-local
description:
- This module can be used to modify fabric local information.
options:
pn_cliswitch:
description:
- Target switch to run the CLI on.
required: true
type: str
state:
description:
- State the action to perform. Use C(update) to modify the fabric-local.
required: false
type: str
choices: ['update']
default: 'update'
pn_fabric_network:
description:
- fabric administration network.
required: false
choices: ['in-band', 'mgmt', 'vmgmt']
default: 'mgmt'
pn_vlan:
description:
- VLAN assigned to fabric.
required: false
type: str
pn_control_network:
description:
- control plane network.
required: false
choices: ['in-band', 'mgmt', 'vmgmt']
pn_fabric_advertisement_network:
description:
- network to send fabric advertisements on.
required: false
choices: ['inband-mgmt', 'inband-only', 'inband-vmgmt', 'mgmt-only']
s�
- name: Fabric local module
pn_fabric_local:
pn_cliswitch: "sw01"
pn_vlan: "500"
- name: Fabric local module
pn_fabric_local:
pn_cliswitch: "sw01"
pn_fabric_advertisement_network: "mgmt-only"
s�
command:
description: the CLI command run on the target node.
returned: always
type: str
stdout:
description: set of responses from the fabric-local command.
returned: always
type: list
stderr:
description: set of error responses from the fabric-local command.
returned: on error
type: list
changed:
description: indicates whether the CLI caused changes on the target.
returned: always
type: bool
( t
AnsibleModule( t pn_clit run_cli( t run_commandsc C` s� t d d � } t d t d t d d � d t d t d d d | j � d d � d
t d t d d d d d d
g d d � d t d t d d � d t d t d d d d d d
g � d t d t d d d d d d d g � � } t d | d d
d d d g g � } | j d } | j d } | j d
} | j d } | j d } | j d } | | } | rt | � d k s�t | � d k r�| j d t d d � n t | | � }
|
d 7}
t | |
� d j
� } | | k r| d k r| j d t d d | � qn t | | � }
| d k r�|
d | 7}
| rG|
d | 7}
n | r^|
d! | 7}
n | ru|
d"