community.general.pn_fabric_local (0.1.1) — module

CLI command to modify fabric-local

Authors: Pluribus Networks (@rajaspachipulusu17)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

This module can be used to modify fabric local information.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Fabric local module
  pn_fabric_local:
    pn_cliswitch: "sw01"
    pn_vlan: "500"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Fabric local module
  pn_fabric_local:
    pn_cliswitch: "sw01"
    pn_fabric_advertisement_network: "mgmt-only"

Inputs

    
state:
    choices:
    - update
    default: update
    description:
    - State the action to perform. Use C(update) to modify the fabric-local.
    required: false
    type: str

pn_vlan:
    description:
    - VLAN assigned to fabric.
    required: false
    type: str

pn_cliswitch:
    description:
    - Target switch to run the CLI on.
    required: true
    type: str

pn_fabric_network:
    choices:
    - in-band
    - mgmt
    - vmgmt
    default: mgmt
    description:
    - fabric administration network.
    required: false

pn_control_network:
    choices:
    - in-band
    - mgmt
    - vmgmt
    description:
    - control plane network.
    required: false

pn_fabric_advertisement_network:
    choices:
    - inband-mgmt
    - inband-only
    - inband-vmgmt
    - mgmt-only
    description:
    - network to send fabric advertisements on.
    required: false

Outputs

changed:
  description: indicates whether the CLI caused changes on the target.
  returned: always
  type: bool
command:
  description: the CLI command run on the target node.
  returned: always
  type: str
stderr:
  description: set of error responses from the fabric-local command.
  returned: on error
  type: list
stdout:
  description: set of responses from the fabric-local command.
  returned: always
  type: list