I am trying to run a simple playbook that changes some STP parameters, but I cannot understand where the following error comes from:
fatal: [Sw3]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"pn_bpdus_bridge_ports": null,
"pn_bridge_id": null,
"pn_bridge_priority": "120",
"pn_cliswitch": "Sw3",
"pn_enable": null,
"pn_forwarding_delay": "15",
"pn_hello_time": "2",
"pn_max_age": "20",
"pn_mst_config_name": null,
"pn_mst_max_hops": "20",
"pn_root_guard_wait_time": "20",
"pn_stp_mode": null,
"state": "update"
}
},
"msg": "ime 20 mst-max-hops 20 max-age 20 forwarding-delay 15 bridge-priority 120\r\n switch Sw3 stp-modify hello-time 2 root-guard-wait-time 20 mst-max-hops 20 max-age 20 forwarding-delay 15 bridge-priority 120\r\n ^\r\n% Invalid input detected at '^' marker.\r\n\r\nSw3#",
"rc": -32603
}
This is my playbook and my switch is a Cisco 7200:
---
- name: STP switch configuration
gather_facts: no
hosts: Sw3
connection: network_cli
tasks:
- name: STP bridge priority
community.network.pn_stp:
pn_cliswitch: "{{ inventory_hostname }}"
pn_bridge_priority: "120" # default 32768
state: update
tags: stp_bridge_priority