meraki_ms_switchport: link negotation has not all options
y0rune opened this issue · 0 comments
y0rune commented
Hello!
I would like to change the link negotiation to 1 Gigabit full duplex (auto)
and I got the error:
failed: [localhost] (item=XXXXXXXXXXXXX) => {
"ansible_loop_var": "item", "changed": false,
"invocation": { "module_args": {
"access_policy_number": null,
"access_policy_type": null,
"allowed_vlans": [
"all"
],
"auth_key": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"enabled": true,
"flexible_stacking_enabled": null,
"host": "api.meraki.com",
"internal_error_retry_time": 60,
"isolation_enabled": false,
"link_negotiation": "1 Gigabit full duplex (auto)",
"mac_allow_list": null,
"name": "UP LINK",
"number": "49",
"org_id": null,
"org_name": null,
"output_format": "snakecase",
"output_level": "normal",
"poe_enabled": false,
"rate_limit_retry_time": 165,
"rstp_enabled": true,
"serial": "XXXXXXXXXXXXX",
"state": "present",
"sticky_mac_allow_list": null,
"sticky_mac_allow_list_limit": null,
"stp_guard": "disabled",
"tags": null,
"timeout": 30,
"type": "trunk",
"use_https": true,
"use_proxy": false,
"validate_certs": true,
"vlan": 0,
"voice_vlan": null,
"voice_vlan_state": "present"
}
},
"item": "XXXXXXXXXXXXX",
"msg": "value of link_negotiation must be one of: Auto negotiate, 100 Megabit (auto), 100 Megabit full duplex (forced), got: 1 Gigabit full duplex (auto)"
When I query the configured port I got:
ok: [localhost] => (item=XXXXXXXXXXXXXXXXXX) => {
"ansible_loop_var": "item",
"changed": false,
"data": {
"access_policy_type": "Open",
"allowed_vlans": "XXXXXXXXXXXXXXXXXX",
"dai_trusted": false,
"enabled": true,
"isolation_enabled": false,
"link_negotiation": "1 Gigabit full duplex (auto)",
"link_negotiation_capabilities": [
"Auto negotiate",
"1 Gigabit full duplex (auto)",
"1 Gigabit full duplex (forced)"
],
"name": "UP LINK",
"poe_enabled": false,
"port_id": "49",
"port_schedule_id": null,
"rstp_enabled": true,
"stp_guard": "disabled",
"tags": [],
"type": "trunk",
"udld": "Alert only",
"vlan": 1,
"voice_vlan": null
},
"invocation": {
"module_args": {
"access_policy_number": null,
"access_policy_type": null,
"allowed_vlans": [
"all"
],
"auth_key": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"enabled": true,
"flexible_stacking_enabled": null,
"follow_redirects": "all",
"host": "api.meraki.com",
"internal_error_retry_time": 60,
"isolation_enabled": false,
"link_negotiation": "Auto negotiate",
"mac_allow_list": null,
"name": "UP LINK",
"number": "49",
"org_id": null,
"org_name": null,
"output_format": "snakecase",
"output_level": "normal",
"poe_enabled": false,
"protocol": "https",
"rate_limit_retry_time": 165,
"rstp_enabled": true,
"serial": "XXXXXXXXXXXXXXXXXX",
"state": "query",
"sticky_mac_allow_list": null,
"sticky_mac_allow_list_limit": null,
"stp_guard": "disabled",
"tags": null,
"timeout": 30,
"type": "trunk",
"use_https": true,
"use_proxy": false,
"validate_certs": true, "vlan": 0,
"voice_vlan": null, "voice_vlan_state": "present" } }, "item": "XXXXXXXXXXXXXXXXXX",
"response": "OK (unknown bytes)", "status": 200 }