Skip to content

Commit

Permalink
Merge pull request #55 from cisco-en-programmability/develop
Browse files Browse the repository at this point in the history
Develop v2.4.10
  • Loading branch information
fmunozmiranda authored May 12, 2022
2 parents a490531 + f4396f3 commit 9763a77
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [2.4.10] - 2022-05-12
### Added
- Add following parameters to `delete_ip_pool_from_sda_virtual_network` and `get_ip_pool_from_sda_virtual_network`:
+ site_name_hierarchy

## [2.4.9] - 2022-04-20
### Added
- Add following parameters to `claim_a_device_to_a_site`:
Expand Down Expand Up @@ -289,4 +295,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[2.4.7]: https://github.com/cisco-en-programmability/dnacentersdk/compare/v2.4.6...v2.4.7
[2.4.8]: https://github.com/cisco-en-programmability/dnacentersdk/compare/v2.4.7...v2.4.8
[2.4.9]: https://github.com/cisco-en-programmability/dnacentersdk/compare/v2.4.8...v2.4.9
[Unreleased]: https://github.com/cisco-en-programmability/dnacentersdk/compare/v2.4.9...master
[2.4.10]: https://github.com/cisco-en-programmability/dnacentersdk/compare/v2.4.9...v2.4.10
[Unreleased]: https://github.com/cisco-en-programmability/dnacentersdk/compare/v2.4.10...master
12 changes: 12 additions & 0 deletions dnacentersdk/api/v2_2_3_3/sda.py
Original file line number Diff line number Diff line change
Expand Up @@ -2615,12 +2615,14 @@ def add_vn(self,

def get_ip_pool_from_sda_virtual_network(self,
ip_pool_name,
site_name_hierarchy,
virtual_network_name,
headers=None,
**request_parameters):
"""Get IP Pool from SDA Virtual Network .
Args:
site_name_hierarchy(basestring): siteNameHierarchy query parameter.
ip_pool_name(basestring): ipPoolName query parameter.
virtual_network_name(basestring): virtualNetworkName query parameter.
headers(dict): Dictionary of HTTP Headers to send with the Request
Expand All @@ -2638,6 +2640,8 @@ def get_ip_pool_from_sda_virtual_network(self,
ApiError: If the DNA Center cloud returns an error.
"""
check_type(headers, dict)
check_type(site_name_hierarchy, basestring,
may_be_none=False)
check_type(ip_pool_name, basestring,
may_be_none=False)
check_type(virtual_network_name, basestring,
Expand All @@ -2648,6 +2652,8 @@ def get_ip_pool_from_sda_virtual_network(self,
basestring, may_be_none=False)

_params = {
'siteNameHierarchy':
site_name_hierarchy,
'ipPoolName':
ip_pool_name,
'virtualNetworkName':
Expand Down Expand Up @@ -2677,6 +2683,7 @@ def get_ip_pool_from_sda_virtual_network(self,

def delete_ip_pool_from_sda_virtual_network(self,
ip_pool_name,
site_name_hierarchy,
virtual_network_name,
headers=None,
**request_parameters):
Expand All @@ -2685,6 +2692,7 @@ def delete_ip_pool_from_sda_virtual_network(self,
Args:
ip_pool_name(basestring): ipPoolName query parameter.
virtual_network_name(basestring): virtualNetworkName query parameter.
site_name_hierarchy(basestring): siteNameHierarchy query parameter.
headers(dict): Dictionary of HTTP Headers to send with the Request
.
**request_parameters: Additional request parameters (provides
Expand All @@ -2704,6 +2712,8 @@ def delete_ip_pool_from_sda_virtual_network(self,
may_be_none=False)
check_type(virtual_network_name, basestring,
may_be_none=False)
check_type(site_name_hierarchy, basestring,
may_be_none=False)
if headers is not None:
if 'X-Auth-Token' in headers:
check_type(headers.get('X-Auth-Token'),
Expand All @@ -2714,6 +2724,8 @@ def delete_ip_pool_from_sda_virtual_network(self,
ip_pool_name,
'virtualNetworkName':
virtual_network_name,
'siteNameHierarchy':
site_name_hierarchy,
}
_params.update(request_parameters)
_params = dict_from_items_with_values(_params)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dnacentersdk"
version = "2.4.9"
version = "2.4.10"
description = "Cisco DNA Center Platform SDK"
authors = ["Jose Bogarin Solano <[email protected]>", "William Astorga <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 9763a77

Please sign in to comment.