Skip to content

Commit 5e3bb17

Browse files
V0.3.0 (#271)
1 parent 899cb51 commit 5e3bb17

File tree

8 files changed

+72
-7
lines changed

8 files changed

+72
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
global:
1111
- COLLECTION_NAMESPACE: netbox
1212
- COLLECTION_NAME: netbox
13-
- COLLECTION_VERSION: 0.2.3
13+
- COLLECTION_VERSION: 0.3.0
1414
- secure: "tE6GtwrRU+Kjobx/94xqR2MqM20pHCnrLcHgPzIHA3npdwuA+GjCBiBLTkEEQM4fUWIfzUTyjSr9bZErm1PTI1GcIRdniTgJ3ZzSSkE7tgeYALB/7xsusB57SlmbBQm2SGwU558uWZ3NHEsi0WTgD8GKZo77OpGX72FZKsVXOz6k2wve51sOtoSVjgCsvWTmZHx4ynGdiA5wFkZfaEcjXECahKtunW+MlB5kpJzkVeLRUEXFMhWlsIYiA5nj8OI/X3Nk9ugh1ribENX9LrjpgrqQ9YariZ8G6py1ONuKZIn2g7xs5kNQ3qL6HL6N7SoUxiwH16CfSyugFaYiMfaxQ4NUVGGRHS4vSGbNIf+gLHcYvP40miI1f/+pntCzqygZMhW73FX2o+KH2OGv09khOl8k1nDg2/XvW0kCc/FU6l+Jp5wCC8H9X2uiULtQpRqts5TzIonlPEzGIpfGFgJ5m54Emhv9gjG1Z5OOyL/qae1Wr+L/uhiFafcglZYh8NHEMWCUCkeqFqR2kDmUMtdgYLD7Q7NdwlL/PSVVs1l7UPiQHlnecQKEHN7CvR3eKByTEmkCKafRYh/JQ9rBt9sZc7aAPVu+w3wWUwbHS4o4vVnmyXvJb1PeJSiuynF7CBo4Qd6qj4YwX8gLK6PylGyaMOp169u6xw1mo5/CX0pJ3x4="
1515

1616
jobs:

CHANGELOG.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,67 @@
11
# Changelog
22

3+
## v0.3.0
4+
5+
### Breaking Changes
6+
7+
- [#270](https://github.com/netbox-community/ansible_modules/pull/270) - To pass in integers via Ansible Jinja filters for a key in `data` that requires querying an endpoint is now done by making it a dictionary with an `id` key.
8+
The previous behavior was to just pass in an integer and it was converted when normalizing the data, but some people may have names that are all integers and those were being converted erroneously so we made the decision to change
9+
the method to convert to an integer for the NetBox API.
10+
11+
```yaml
12+
tasks:
13+
- name: Create device within NetBox with only required information
14+
netbox_device:
15+
netbox_url: http://netbox-demo.org:32768
16+
netbox_token: 0123456789abcdef0123456789abcdef01234567
17+
data:
18+
name: Test66
19+
device_type:
20+
id: "{{ some_jinja_variable }}"
21+
device_role: Core Switch
22+
site: Test Site
23+
status: Staged
24+
state: present
25+
```
26+
27+
- [#269](https://github.com/netbox-community/ansible_modules/pull/269) - `pynetbox` changed to using `requests.Session()` to manage the HTTP session which broke passing in `ssl_verify` when building the NetBox API client.
28+
This PR makes `pynetbox 5.0.4+` the new required version of `pynetbox` for the Ansible modules and lookup plugin.
29+
30+
### Enhancements
31+
32+
- [#251](https://github.com/netbox-community/ansible_modules/pull/251) - Add `virtual_chassis`, `vc_position`, `vc_priority` to `netbox_device` options
33+
- [#258](https://github.com/netbox-community/ansible_modules/pull/258) - Add `local_context_data` and `flatten_local_context_data` option to `nb_inventory`
34+
- [#258](https://github.com/netbox-community/ansible_modules/pull/258) - Add `local_context_data` option to `netbox_device`
35+
36+
### Bugfix
37+
38+
- [#242](https://github.com/netbox-community/ansible_modules/issues/242) - Compares tags as a set to prevent issues with order difference between user supplied tags and NetBox API
39+
- [#243](https://github.com/netbox-community/ansible_modules/issues/243) - Normalize descriptions to remove any extra whitespace
40+
- [#246](https://github.com/netbox-community/ansible_modules/issues/246) - Allows OR operations in API fitlers for `nb_lookup` plugin
41+
- [#254](https://github.com/netbox-community/ansible_modules/issues/254) - Normalize `mac_address` to upper case
42+
- [#261](https://github.com/netbox-community/ansible_modules/pull/261) - Fixes typo for `CONVERT_TO_ID` mapping in `netbox_utils` for `dcim.rearport`
43+
- [#265](https://github.com/netbox-community/ansible_modules/pull/265) - Fixes typo for `CONVERT_TO_ID` mapping in `netbox_utils` for `dcim.powerport` and `dcim.poweroutlet`
44+
- [#262](https://github.com/netbox-community/ansible_modules/issues/262) - Build the `rear_port` and `rear_port_template` query_params to properly find rear port
45+
46+
### New Modules
47+
48+
- [#251](https://github.com/netbox-community/ansible_modules/pull/251) - `netbox_cable`
49+
- [#251](https://github.com/netbox-community/ansible_modules/pull/251) - `netbox_device_bay_template`
50+
- [#251](https://github.com/netbox-community/ansible_modules/pull/251) - `netbox_virtual_chassis`
51+
- [#259](https://github.com/netbox-community/ansible_modules/pull/259) - `netbox_interface_template`
52+
53+
### Thanks to the following contributors
54+
55+
- @toerb
56+
- @ThomasADavis
57+
- @monkz
58+
- @jkuzma07
59+
- @AdamMack2007
60+
- @smutel
61+
- @pugnacity
62+
- @adamwoolhether
63+
- @ghost
64+
365
## v0.2.3
466

567
### Documentation
@@ -8,18 +70,21 @@
870
- [#180](https://github.com/netbox-community/ansible_modules/issues/180) - Fix documentation errors when using ansible-lint `validate-modules`
971

1072
### Enchancements
73+
1174
- [#216](https://github.com/netbox-community/ansible_modules/issues/216) - Allows private key to be passed in to `validate_certs` within modules
1275
- [#187](https://github.com/netbox-community/ansible_modules/issues/187) - Adds `discovered` field to `netbox_inventory_item`
1376
- [#219](https://github.com/netbox-community/ansible_modules/pull/219) - Adds `tenant` field to `netbox_cluster`
1477
- [#215](https://github.com/netbox-community/ansible_modules/issues/215) - Adds `query_params` to all modules to allow users to define the `query_params`
1578
- [#238](https://github.com/netbox-community/ansible_modules/pull/238) - Better error handling if read-only token is provided for modules. Updated README as well to say that a `write-enabled` token is required
1679

1780
### Bug Fixes
81+
1882
- [#214](https://github.com/netbox-community/ansible_modules/issues/214) - Fixes bug in inventory plugin that fails if there are either no virtual machines, but devices defined in NetBox or vice versa from failing when `fetch_all` is set to `False`
1983
- [#228](https://github.com/netbox-community/ansible_modules/issues/228) - Fixes bug in `netbox_prefix` failing when using `check_mode`
2084
- [#231](https://github.com/netbox-community/ansible_modules/issues/231) - Normalize any string values that are passed in via Jinja into an integer within the `_normalize_data` method
2185

2286
### New Modules
87+
2388
- [#235](https://github.com/netbox-community/ansible_modules/pull/235) - `netbox_power_feed`
2489
- [#235](https://github.com/netbox-community/ansible_modules/pull/235) - `netbox_power_outlet`
2590
- [#235](https://github.com/netbox-community/ansible_modules/pull/235) - `netbox_power_outlet_template`

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace: netbox
99
name: netbox
1010

1111
# The version of the collection. Must be compatible with semantic versioning
12-
version: 0.2.3
12+
version: 0.3.0
1313

1414
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
1515
readme: README.md

plugins/inventory/nb_inventory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
- If flatten_local_context_data is set to True, the config context variables will be added directly to the host instead.
5656
default: False
5757
type: boolean
58-
version_added: "0.2.4"
58+
version_added: "0.3.0"
5959
flatten_custom_fields:
6060
description:
6161
- By default, host custom fields are added as a dictionary host var named custom_fields.

plugins/modules/netbox_cable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
- Tobias Groß (@toerb)
2828
requirements:
2929
- pynetbox
30-
version_added: '0.2.4'
30+
version_added: '0.3.0'
3131
options:
3232
netbox_url:
3333
description:

plugins/modules/netbox_device_bay_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
- Tobias Groß (@toerb)
2828
requirements:
2929
- pynetbox
30-
version_added: '0.2.4'
30+
version_added: '0.3.0'
3131
options:
3232
netbox_url:
3333
description:

plugins/modules/netbox_device_interface_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
- Tobias Groß (@toerb)
2828
requirements:
2929
- pynetbox
30-
version_added: "0.2.4"
30+
version_added: "0.3.0"
3131
options:
3232
netbox_url:
3333
description:

plugins/modules/netbox_virtual_chassis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
- Tobias Groß (@toerb)
2828
requirements:
2929
- pynetbox
30-
version_added: '0.2.4'
30+
version_added: '0.3.0'
3131
options:
3232
netbox_url:
3333
description:

0 commit comments

Comments
 (0)