mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 22:00:22 -07:00
meraki_device - Support for creating and modifying device notes (#51100)
* Add support for notes * Add test for notes * Device notes changes - Renamed from notes to note - Modified tests to work * Comment device test since it only works once * Remove assertion stanza and move assertion to existing one * Add version_added to note documentation * Converted from tabs to spaces * Added changelog fragment * Remove changelog file since it's a feature * Add changelog fragment
This commit is contained in:
parent
c30bc24ba9
commit
d16dcb8dbb
3 changed files with 26 additions and 18 deletions
|
@ -86,6 +86,11 @@ options:
|
|||
serial_uplink:
|
||||
description:
|
||||
- Serial number of device to query uplink information from.
|
||||
note:
|
||||
description:
|
||||
- Informational notes about a device.
|
||||
- Limited to 255 characters.
|
||||
version_added: '2.8'
|
||||
|
||||
|
||||
author:
|
||||
|
@ -238,6 +243,7 @@ def main():
|
|||
lng=dict(type='float', aliases=['longitude']),
|
||||
address=dict(type='str'),
|
||||
move_map_marker=dict(type='bool'),
|
||||
note=dict(type='str'),
|
||||
)
|
||||
|
||||
# seed the result dict in the object
|
||||
|
@ -361,6 +367,7 @@ def main():
|
|||
'lng': meraki.params['lng'],
|
||||
'address': meraki.params['address'],
|
||||
'moveMapMarker': meraki.params['move_map_marker'],
|
||||
'notes': meraki.params['note'],
|
||||
}
|
||||
query_path = meraki.construct_path('get_device', net_id=net_id) + meraki.params['serial']
|
||||
device_data = meraki.request(query_path, method='GET')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue