Skip to content

Using cisco.dnac.sda_virtual_network_ip_pool to delete ip pools from VN does not work #80

@jianm12007

Description

@jianm12007

The dnac version is 2.3.3.5 and dnac collection is 6.6.0.
I try to delete IP pools from VN using cisco.dnac.sda_virtual_network_ip_pool, it show the below error messages.

TASK [Assign IP Pool to VN and fabric sites.] **************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: get_ip_pool_from_sda_virtual_network() missing 1 required positional argument: 'site_name_hierarchy'
fatal: [10.100.0.1]: FAILED! => {"msg": "Unexpected failure during module execution.", "stdout": ""}

===================================================================================
My playbook is as below:


Release IP Pool to VN and fabric sites.

  • hosts: dnac_servers
    vars_files:

    • vars.yml
      connection: local
      gather_facts: no

    tasks:

    • name: Assign IP Pool to VN and fabric sites.
      cisco.dnac.sda_virtual_network_ip_pool:
      dnac_host: "{{dnac_host}}"
      dnac_username: "{{dnac_username}}"
      dnac_password: "{{dnac_password}}"
      dnac_verify: "{{dnac_verify}}"
      dnac_port: "{{dnac_port}}"
      dnac_version: "{{dnac_version}}"
      dnac_debug: "{{dnac_debug}}"
      state: absent
      virtualNetworkName: "OT"
      ipPoolName: "HQ_VN_OT"
      siteNameHierarchy: "Global/Shanghai/SHA-17/SH_Floor_1"

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingin-progressTeam is working to solve issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions