Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop dnac 2 2 3 3 #28

Merged
merged 18 commits into from
Dec 1, 2021
Prev Previous commit
Next Next commit
Add back payload param
  • Loading branch information
William Astorga committed Dec 1, 2021
commit 9b9c61de98c1712edc9e8a53eafc2685b155c047
4 changes: 4 additions & 0 deletions plugins/action/site_design_floormap.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
argument_spec.update(dict(
state=dict(type="str", default="present", choices=["present", "absent"]),
floorId=dict(type="str"),
payload=dict(type="dict"),
))

required_if = [
Expand All @@ -48,10 +49,12 @@ def __init__(self, params, dnac):
self.dnac = dnac
self.new_object = dict(
floor_id=params.get("floorId"),
payload=params.get("payload"),
)

def create_params(self):
new_object_params = {}
new_object_params['payload'] = self.new_object.get('payload')
return new_object_params

def delete_by_id_params(self):
Expand All @@ -62,6 +65,7 @@ def delete_by_id_params(self):
def update_by_id_params(self):
new_object_params = {}
new_object_params['floor_id'] = self.new_object.get('floor_id')
new_object_params['payload'] = self.new_object.get('payload')
return new_object_params

def get_object_by_name(self, name):
Expand Down
5 changes: 5 additions & 0 deletions plugins/modules/site_design_floormap.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
floorId:
description: FloorId path parameter. Group ID of floor to be deleted.
type: str
payload:
description: Site Design Floormap's payload
type: dict
requirements:
- dnacentersdk >= 2.3.1
- python >= 3.5
Expand All @@ -39,6 +42,7 @@
dnac_version: "{{dnac_version}}"
dnac_debug: "{{dnac_debug}}"
state: present
payload:

- name: Delete by id
cisco.dnac.site_design_floormap:
Expand All @@ -63,6 +67,7 @@
dnac_debug: "{{dnac_debug}}"
state: present
floorId: string
payload:

"""

Expand Down