|
1 | 1 | # Changelog
|
2 | 2 |
|
| 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 | + |
3 | 65 | ## v0.2.3
|
4 | 66 |
|
5 | 67 | ### Documentation
|
|
8 | 70 | - [#180](https://github.com/netbox-community/ansible_modules/issues/180) - Fix documentation errors when using ansible-lint `validate-modules`
|
9 | 71 |
|
10 | 72 | ### Enchancements
|
| 73 | + |
11 | 74 | - [#216](https://github.com/netbox-community/ansible_modules/issues/216) - Allows private key to be passed in to `validate_certs` within modules
|
12 | 75 | - [#187](https://github.com/netbox-community/ansible_modules/issues/187) - Adds `discovered` field to `netbox_inventory_item`
|
13 | 76 | - [#219](https://github.com/netbox-community/ansible_modules/pull/219) - Adds `tenant` field to `netbox_cluster`
|
14 | 77 | - [#215](https://github.com/netbox-community/ansible_modules/issues/215) - Adds `query_params` to all modules to allow users to define the `query_params`
|
15 | 78 | - [#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
|
16 | 79 |
|
17 | 80 | ### Bug Fixes
|
| 81 | + |
18 | 82 | - [#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`
|
19 | 83 | - [#228](https://github.com/netbox-community/ansible_modules/issues/228) - Fixes bug in `netbox_prefix` failing when using `check_mode`
|
20 | 84 | - [#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
|
21 | 85 |
|
22 | 86 | ### New Modules
|
| 87 | + |
23 | 88 | - [#235](https://github.com/netbox-community/ansible_modules/pull/235) - `netbox_power_feed`
|
24 | 89 | - [#235](https://github.com/netbox-community/ansible_modules/pull/235) - `netbox_power_outlet`
|
25 | 90 | - [#235](https://github.com/netbox-community/ansible_modules/pull/235) - `netbox_power_outlet_template`
|
|
0 commit comments