Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop into main #148

Merged
merged 14 commits into from
Jul 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ Dockerfile
docker-compose.yml
*.md
.env
.venv
.vscode/
.github/
.github/
18 changes: 18 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ networktocode.nautobot Release Notes
.. contents:: Topics


v4.0.0
======

Release Summary
---------------

This release refactors the GraphQL inventory plugin to allow fetching virtual machines and a more flexible approach to allow users to use most of GraphQL's native capabilities.

Breaking Changes / Porting Guide
--------------------------------

- (#130) Refactors GraphQL Inventory plugin to allow custom GraphQL queries with nested levels. Allows virtual machines to be fetched as well. The following options; additonal_variables (all top level keys are now set as host_vars) and filters (these are set within the query now).

New Modules
-----------

- networktocode.nautobot.relationship_association - Creates or removes a relationship association from Nautobot

v3.4.1
======

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ COPY pyproject.toml poetry.lock ./
# Install only package Dependencies
RUN poetry install --no-dev

# Copy in the application source and everything not explicitly banned by .dockerignore
COPY . .

#########
# Linting
#
Expand All @@ -40,6 +37,9 @@ FROM base AS lint
# Install dev dependencies
RUN poetry install

# Copy in the application source and everything not explicitly banned by .dockerignore
COPY . .

RUN echo 'Running Black' && \
black --check --diff . && \
echo 'Running Bandit' && \
Expand Down
9 changes: 9 additions & 0 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -318,3 +318,12 @@ releases:
release_summary:
"This release adds a deprecation notice for the GraphQL Inventory Plugin. There will be changes to the structure
requiring changes to the inventory file."
4.0.0:
changes:
breaking_changes:
- (#130) Refactors GraphQL Inventory plugin to allow custom GraphQL queries with nested levels. Allows virtual machines to be fetched as well. The following options; additonal_variables (all top level keys are now set as host_vars) and filters (these are set within the query now).
release_summary: "This release refactors the GraphQL inventory plugin to allow fetching virtual machines and a more flexible approach to allow users to use most of GraphQL's native capabilities."
modules:
- description: Creates or removes a relationship association from Nautobot
name: relationship_association
namespace: ""
15 changes: 10 additions & 5 deletions docs/plugins/aggregate_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ networktocode.nautobot.aggregate module -- Creates or removes aggregates from Na
.. Collection note

.. note::
This module is part of the `networktocode.nautobot collection <https://galaxy.ansible.com/networktocode/nautobot>`_ (version 3.4.1).
This module is part of the `networktocode.nautobot collection <https://galaxy.ansible.com/networktocode/nautobot>`_ (version 4.0.0).

You might already have this collection installed if you are using the ``ansible`` package.
It is not included in ``ansible-core``.
Expand Down Expand Up @@ -83,11 +83,16 @@ The below requirements are needed on the host that executes this module.
- pynautobot






.. Options

Parameters
----------


.. rst-class:: ansible-option-table

.. list-table::
Expand Down Expand Up @@ -226,7 +231,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw` / :ansible-option-required:`required`
:ansible-option-type:`any` / :ansible-option-required:`required`

:ansible-option-versionadded:`added in 3.0.0 of networktocode.nautobot`

Expand Down Expand Up @@ -304,7 +309,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw`
:ansible-option-type:`any`

:ansible-option-versionadded:`added in 3.0.0 of networktocode.nautobot`

Expand Down Expand Up @@ -382,7 +387,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`list` / :ansible-option-elements:`elements=raw`
:ansible-option-type:`list` / :ansible-option-elements:`elements=any`

:ansible-option-versionadded:`added in 3.0.0 of networktocode.nautobot`

Expand Down Expand Up @@ -487,7 +492,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw`
:ansible-option-type:`any`

.. raw:: html

Expand Down
13 changes: 9 additions & 4 deletions docs/plugins/cable_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ networktocode.nautobot.cable module -- Create, update or delete cables within Na
.. Collection note

.. note::
This module is part of the `networktocode.nautobot collection <https://galaxy.ansible.com/networktocode/nautobot>`_ (version 3.4.1).
This module is part of the `networktocode.nautobot collection <https://galaxy.ansible.com/networktocode/nautobot>`_ (version 4.0.0).

You might already have this collection installed if you are using the ``ansible`` package.
It is not included in ``ansible-core``.
Expand Down Expand Up @@ -83,11 +83,16 @@ The below requirements are needed on the host that executes this module.
- pynautobot






.. Options

Parameters
----------


.. rst-class:: ansible-option-table

.. list-table::
Expand Down Expand Up @@ -393,7 +398,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw` / :ansible-option-required:`required`
:ansible-option-type:`any` / :ansible-option-required:`required`

:ansible-option-versionadded:`added in 3.0.0 of networktocode.nautobot`

Expand Down Expand Up @@ -481,7 +486,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw` / :ansible-option-required:`required`
:ansible-option-type:`any` / :ansible-option-required:`required`

:ansible-option-versionadded:`added in 3.0.0 of networktocode.nautobot`

Expand Down Expand Up @@ -699,7 +704,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw`
:ansible-option-type:`any`

.. raw:: html

Expand Down
19 changes: 12 additions & 7 deletions docs/plugins/circuit_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ networktocode.nautobot.circuit module -- Create, update or delete circuits withi
.. Collection note

.. note::
This module is part of the `networktocode.nautobot collection <https://galaxy.ansible.com/networktocode/nautobot>`_ (version 3.4.1).
This module is part of the `networktocode.nautobot collection <https://galaxy.ansible.com/networktocode/nautobot>`_ (version 4.0.0).

You might already have this collection installed if you are using the ``ansible`` package.
It is not included in ``ansible-core``.
Expand Down Expand Up @@ -83,11 +83,16 @@ The below requirements are needed on the host that executes this module.
- pynautobot






.. Options

Parameters
----------


.. rst-class:: ansible-option-table

.. list-table::
Expand Down Expand Up @@ -152,7 +157,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw`
:ansible-option-type:`any`

:ansible-option-versionadded:`added in 3.0.0 of networktocode.nautobot`

Expand Down Expand Up @@ -374,7 +379,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw`
:ansible-option-type:`any`

:ansible-option-versionadded:`added in 3.0.0 of networktocode.nautobot`

Expand Down Expand Up @@ -493,7 +498,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw`
:ansible-option-type:`any`

:ansible-option-versionadded:`added in 3.0.0 of networktocode.nautobot`

Expand Down Expand Up @@ -532,7 +537,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`list` / :ansible-option-elements:`elements=raw`
:ansible-option-type:`list` / :ansible-option-elements:`elements=any`

:ansible-option-versionadded:`added in 3.0.0 of networktocode.nautobot`

Expand Down Expand Up @@ -569,7 +574,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw`
:ansible-option-type:`any`

:ansible-option-versionadded:`added in 3.0.0 of networktocode.nautobot`

Expand Down Expand Up @@ -674,7 +679,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw`
:ansible-option-type:`any`

.. raw:: html

Expand Down
13 changes: 9 additions & 4 deletions docs/plugins/circuit_termination_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ networktocode.nautobot.circuit_termination module -- Create, update or delete ci
.. Collection note

.. note::
This module is part of the `networktocode.nautobot collection <https://galaxy.ansible.com/networktocode/nautobot>`_ (version 3.4.1).
This module is part of the `networktocode.nautobot collection <https://galaxy.ansible.com/networktocode/nautobot>`_ (version 4.0.0).

You might already have this collection installed if you are using the ``ansible`` package.
It is not included in ``ansible-core``.
Expand Down Expand Up @@ -83,11 +83,16 @@ The below requirements are needed on the host that executes this module.
- pynautobot






.. Options

Parameters
----------


.. rst-class:: ansible-option-table

.. list-table::
Expand Down Expand Up @@ -115,7 +120,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw` / :ansible-option-required:`required`
:ansible-option-type:`any` / :ansible-option-required:`required`

:ansible-option-versionadded:`added in 3.0.0 of networktocode.nautobot`

Expand Down Expand Up @@ -304,7 +309,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw`
:ansible-option-type:`any`

:ansible-option-versionadded:`added in 3.0.0 of networktocode.nautobot`

Expand Down Expand Up @@ -531,7 +536,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw`
:ansible-option-type:`any`

.. raw:: html

Expand Down
9 changes: 7 additions & 2 deletions docs/plugins/circuit_type_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ networktocode.nautobot.circuit_type module -- Create, update or delete circuit t
.. Collection note

.. note::
This module is part of the `networktocode.nautobot collection <https://galaxy.ansible.com/networktocode/nautobot>`_ (version 3.4.1).
This module is part of the `networktocode.nautobot collection <https://galaxy.ansible.com/networktocode/nautobot>`_ (version 4.0.0).

You might already have this collection installed if you are using the ``ansible`` package.
It is not included in ``ansible-core``.
Expand Down Expand Up @@ -83,11 +83,16 @@ The below requirements are needed on the host that executes this module.
- pynautobot






.. Options

Parameters
----------


.. rst-class:: ansible-option-table

.. list-table::
Expand Down Expand Up @@ -341,7 +346,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw`
:ansible-option-type:`any`

.. raw:: html

Expand Down
9 changes: 7 additions & 2 deletions docs/plugins/cluster_group_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ networktocode.nautobot.cluster_group module -- Create, update or delete cluster
.. Collection note

.. note::
This module is part of the `networktocode.nautobot collection <https://galaxy.ansible.com/networktocode/nautobot>`_ (version 3.4.1).
This module is part of the `networktocode.nautobot collection <https://galaxy.ansible.com/networktocode/nautobot>`_ (version 4.0.0).

You might already have this collection installed if you are using the ``ansible`` package.
It is not included in ``ansible-core``.
Expand Down Expand Up @@ -83,11 +83,16 @@ The below requirements are needed on the host that executes this module.
- pynautobot






.. Options

Parameters
----------


.. rst-class:: ansible-option-table

.. list-table::
Expand Down Expand Up @@ -341,7 +346,7 @@ Parameters

.. rst-class:: ansible-option-type-line

:ansible-option-type:`raw`
:ansible-option-type:`any`

.. raw:: html

Expand Down
Loading