Skip to content

Commit

Permalink
Improve meraki_mx_switchport response documentation (#240)
Browse files Browse the repository at this point in the history
* Add documentation for new response fields in meraki_ms_switchport
  • Loading branch information
kbreit committed Jun 8, 2021
1 parent 45fb13c commit 367921b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/switchport-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- meraki_mx_switchport - Improve documentation for response
20 changes: 20 additions & 0 deletions plugins/modules/meraki_ms_switchport.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,16 @@
returned: success
type: complex
contains:
access_policy_type:
description: Type of access policy assigned to port
returned: success, when assigned
type: str
sample: "MAC allow list"
allowed_vlans:
description: List of VLANs allowed on an access port
returned: success, when port is set as access
type: str
sample: all
number:
description: Number of port.
returned: success
Expand Down Expand Up @@ -365,6 +375,16 @@
returned: success
type: list
sample: ["11:aa:bb:bb:cc:cc", "22:aa:bb:bb:cc:cc", "33:aa:bb:bb:cc:cc"]
port_schedule_id:
description: Unique ID of assigned port schedule
returned: success
type: str
sample: null
udld:
description: Alert state of UDLD
returned: success
type: str
sample: "Alert only"
'''

from ansible.module_utils.basic import AnsibleModule, json
Expand Down
1 change: 0 additions & 1 deletion tests/sanity/ignore-2.10.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
plugins/modules/meraki_mx_intrusion_prevention.py validate-modules:invalid-argument-name
plugins/modules/meraki_intrusion_prevention.py validate-modules:invalid-argument-name

0 comments on commit 367921b

Please sign in to comment.