github netbox-community/ansible_modules v0.3.0

latest releases: v3.17.0, v3.16.0, v3.15.0...
3 years ago

v0.3.0

Breaking Changes

  • #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.
    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
    the method to convert to an integer for the NetBox API.

    tasks:
      - name: Create device within NetBox with only required information
        netbox_device:
          netbox_url: http://netbox-demo.org:32768
          netbox_token: 0123456789abcdef0123456789abcdef01234567
          data:
            name: Test66
            device_type:
              id: "{{ some_jinja_variable }}"
            device_role: Core Switch
            site: Test Site
            status: Staged
          state: present
  • #269 - pynetbox changed to using requests.Session() to manage the HTTP session which broke passing in ssl_verify when building the NetBox API client.
    This PR makes pynetbox 5.0.4+ the new required version of pynetbox for the Ansible modules and lookup plugin.

Enhancements

  • #251 - Add virtual_chassis, vc_position, vc_priority to netbox_device options
  • #258 - Add local_context_data and flatten_local_context_data option to nb_inventory
  • #258 - Add local_context_data option to netbox_device

Bugfix

  • #242 - Compares tags as a set to prevent issues with order difference between user supplied tags and NetBox API
  • #243 - Normalize descriptions to remove any extra whitespace
  • #246 - Allows OR operations in API fitlers for nb_lookup plugin
  • #254 - Normalize mac_address to upper case
  • #261 - Fixes typo for CONVERT_TO_ID mapping in netbox_utils for dcim.rearport
  • #265 - Fixes typo for CONVERT_TO_ID mapping in netbox_utils for dcim.powerport and dcim.poweroutlet
  • #262 - Build the rear_port and rear_port_template query_params to properly find rear port

New Modules

  • #251 - netbox_cable
  • #251 - netbox_device_bay_template
  • #251 - netbox_virtual_chassis
  • #259 - netbox_interface_template

Thanks to the following contributors

Don't miss a new ansible_modules release

NewReleases is sending notifications on new releases.