sushma_alethea.test.icx_firmware_upgrade (1.0.0) — module

Upgrades firmware of ICX switches

| "added in version" 1.3.0 of sushma_alethea.test"

Authors: Ruckus Wireless (@Commscope)

Install collection

Install with ansible-galaxy collection install sushma_alethea.test:==1.0.0


Add to requirements.yml

  collections:
    - name: sushma_alethea.test
      version: 1.0.0

Description

This module copies new firmware to switch, flashes it to primary/secondary and reboots the switch.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: upgrade firmware using scp
  community.network.icx_firmware_upgrade:
    server_type: scp
    server_address: 10.20.1.1
    partition: secondary
    filename: SPR08030.bin
    boot_only: false
    save_running_config: False
    scp_user: alethea
    scp_pass: alethea123
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: upgrade firmware using tftp
  community.network.icx_firmware_upgrade:
    server_type: tftp
    server_address: 2001:db8::1
    partition: fips-ufi-primary-sig
    filename: signature_ufi.sig
    boot_only: False
    save_running_config: False
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: upgrade firmware using https
  community.network.icx_firmware_upgrade:
    server_type: https
    server_address: 10.20.1.8
    partition: primary
    filename: SPR08030.bin
    boot_only: False
    save_running_config: False
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: run only boot command
  community.network.icx_firmware_upgrade:
    boot_only: True
    save_running_config: True

Inputs

    
filename:
    description:
    - The path of the .bin/.sig file.
    type: str

scp_pass:
    description:
    - remote password to be used for scp login.
    type: str

scp_user:
    description:
    - remote username to be used for scp login.
    type: str

boot_only:
    default: false
    description:
    - Boot the switch if True.
    required: true
    type: bool

partition:
    choices:
    - primary
    - secondary
    - fips-ufi-primary-sig
    - fips-ufi-secondary-sig
    description:
    - Partition to be used for upgrade.
    required: true
    type: str

server_port:
    description:
    - The port number of the server. Default values will be selected based on protocol
      type. Default scp:22, https:443
    type: int

server_type:
    choices:
    - scp
    - https
    - tftp
    description:
    - Data transfer protocol to be used.
    type: str

server_address:
    description:
    - IPV4/IPV6 address of the scp/https/tftp server.
    type: str

save_running_config:
    default: false
    description:
    - execute Write memory Command.
    type: bool

Outputs

changed:
  description: C(true) when file is copied and switch flashed with it. C(false) otherwise.
  returned: always
  type: bool