Skip to content

Commit 0140032

Browse files
authored
Merge pull request #692 from netbox-community/devel
Release 3.5.0
2 parents 3867f53 + 409ae95 commit 0140032

File tree

178 files changed

+8600
-1283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+8600
-1283
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
python-version: [3.6, 3.7, 3.8, 3.9]
12+
python-version: ["3.8", "3.9", "3.10"]
1313
steps:
1414
- name: Checkout repo
1515
uses: actions/checkout@v2
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
- name: Install and configure Poetry
21-
uses: snok/install-poetry@v1.1.1
21+
uses: snok/install-poetry@v1
2222
with:
2323
virtualenvs-create: false
2424
- name: Install Python packages
@@ -28,15 +28,15 @@ jobs:
2828
ansible-galaxy collection build .
2929
ansible-galaxy collection install netbox*.tar.gz -p /home/runner/.ansible/collections
3030
- name: Run Black
31-
run: black . --check --diff
31+
run: poetry run black . --check --diff
3232
- name: Run Ansible Sanity tests
33-
run: ansible-test sanity -v --requirements --python ${{ matrix.python-version }} --skip-test pep8 plugins/
33+
run: poetry run ansible-test sanity -v --requirements --python ${{ matrix.python-version }} --skip-test pep8 plugins/
3434
working-directory: /home/runner/.ansible/collections/ansible_collections/netbox/netbox
3535
- name: Run Ansible Unit tests
36-
run: ansible-test units -vvv --coverage --python ${{ matrix.python-version }}
36+
run: poetry run ansible-test units -vvv --coverage --python ${{ matrix.python-version }}
3737
working-directory: /home/runner/.ansible/collections/ansible_collections/netbox/netbox
3838
- name: Run Ansible Coverage
39-
run: ansible-test coverage report --all --omit "tests/*,hacking/*,docs/*" --show-missing
39+
run: poetry run ansible-test coverage report --all --omit "tests/*,hacking/*,docs/*" --show-missing
4040
working-directory: /home/runner/.ansible/collections/ansible_collections/netbox/netbox
4141
integration:
4242
runs-on: ubuntu-latest
@@ -45,82 +45,83 @@ jobs:
4545
fail-fast: false
4646
matrix:
4747
include:
48-
- python-version: 3.8
49-
VERSION: "v2.10"
50-
INTEGRATION_TESTS: "v2.10"
5148
- python-version: 3.8
5249
VERSION: "v2.11"
5350
INTEGRATION_TESTS: "v2.11"
5451
- python-version: 3.8
5552
VERSION: "v3.0"
5653
INTEGRATION_TESTS: "v3.0"
54+
- python-version: 3.8
55+
VERSION: "v3.1"
56+
INTEGRATION_TESTS: "v3.1"
5757
steps:
5858
- name: Checkout repo
5959
uses: actions/checkout@v2
6060
- name: Set up Python ${{ matrix.python-version }}
6161
uses: actions/setup-python@v2
6262
with:
6363
python-version: ${{ matrix.python-version }}
64-
- name: Clone & Start netbox-docker containers - 2.10
64+
if: matrix.VERSION == 'v2.11'
65+
- name: Clone & Start netbox-docker containers - 2.11
6566
env:
6667
VERSION: ${{ matrix.VERSION }}
6768
run: |
6869
cd ..
6970
git clone https://github.com/netbox-community/netbox-docker.git
7071
cd netbox-docker
71-
git checkout 1.1.0
72+
git checkout 1.2.0
7273
tee docker-compose.override.yml <<EOF
7374
version: '3.4'
7475
services:
7576
netbox:
76-
image: netboxcommunity/netbox:v2.10
77+
image: netboxcommunity/netbox:v2.11
7778
ports:
7879
- 32768:8080
7980
EOF
8081
docker-compose up -d --quiet-pull
8182
docker container ls
8283
cd ..
83-
if: matrix.VERSION == 'v2.10'
84-
- name: Clone & Start netbox-docker containers - 2.11
84+
if: matrix.VERSION == 'v2.11'
85+
- name: Clone & Start netbox-docker containers - 3.0
8586
env:
8687
VERSION: ${{ matrix.VERSION }}
8788
run: |
8889
cd ..
8990
git clone https://github.com/netbox-community/netbox-docker.git
9091
cd netbox-docker
91-
git checkout 1.2.0
92+
git checkout 1.3.1
9293
tee docker-compose.override.yml <<EOF
9394
version: '3.4'
9495
services:
9596
netbox:
96-
image: netboxcommunity/netbox:v2.11
97+
image: netboxcommunity/netbox:v3.0
9798
ports:
9899
- 32768:8080
99100
EOF
100101
docker-compose up -d --quiet-pull
101102
docker container ls
102103
cd ..
103-
if: matrix.VERSION == 'v2.11'
104-
- name: Clone & Start netbox-docker containers - 3.0
104+
if: matrix.VERSION == 'v3.0'
105+
- name: Clone & Start netbox-docker containers - 3.1
105106
env:
106107
VERSION: ${{ matrix.VERSION }}
107108
run: |
108109
cd ..
109110
git clone https://github.com/netbox-community/netbox-docker.git
110111
cd netbox-docker
111-
git checkout 1.3.1
112+
git checkout 1.4.1
112113
tee docker-compose.override.yml <<EOF
113114
version: '3.4'
114115
services:
115116
netbox:
116-
image: netboxcommunity/netbox:v3.0
117+
image: netboxcommunity/netbox:v3.1
117118
ports:
118119
- 32768:8080
119120
EOF
120121
docker-compose up -d --quiet-pull
121122
docker container ls
122123
cd ..
123-
if: matrix.VERSION == 'v3.0'
124+
if: matrix.VERSION == 'v3.1'
124125
- name: Install and configure Poetry
125126
uses: snok/[email protected]
126127
with:

CHANGELOG.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,39 @@ NetBox.NetBox Release Notes
55
.. contents:: Topics
66

77

8+
v3.5.0
9+
======
10+
11+
Release Summary
12+
---------------
13+
14+
First release with some NetBox 3.1 modules, and new wireless endpoint support. Remember to update your pynetbox to utilise the wireless endpoint support.
15+
16+
Minor Changes
17+
-------------
18+
19+
- nb_inventory - Pull extended inventory data for prefixes and site [#646](https://github.com/netbox-community/ansible_modules/pull/646)
20+
- nb_lookup - Add endpoints for wireless (new in NetBox 3.1) [#673](https://github.com/netbox-community/ansible_modules/pull/673)
21+
- netbox_circuit_termination - Add mark_connected field to module [#686](https://github.com/netbox-community/ansible_modules/pull/686)
22+
- netbox_contact, netbox_contact_group, netbox_contact_role - Add modules [#671](https://github.com/netbox-community/ansible_modules/pull/671)
23+
- netbox_inventory_item - Add parent field to module [#682](https://github.com/netbox-community/ansible_modules/pull/682)
24+
- netbox_region - Add description, tags, custom_fields to module [#689](https://github.com/netbox-community/ansible_modules/pull/689)
25+
- netbox_wireless_lan, netbox_wireless_lan_group, netbox_wireless_link - Add modules [#678](https://github.com/netbox-community/ansible_modules/pull/678)
26+
27+
Bugfixes
28+
--------
29+
30+
- Use individual list items when looking for objects [#570](https://github.com/netbox-community/ansible_modules/pull/570)
31+
32+
New Modules
33+
-----------
34+
35+
- netbox.netbox.netbox_contact - Create, update or delete Contact objects in NetBox
36+
- netbox.netbox.netbox_contact_group - Create, update or delete Contact Group objects in NetBox
37+
- netbox.netbox.netbox_wireless_lan - Create, update or delete Wireless LAN objects in NetBox
38+
- netbox.netbox.netbox_wireless_lan_group - Create, update or delete Wireless LAN Group objects in NetBox
39+
- netbox.netbox.netbox_wireless_link - Create, update or delete Wireless Link objects in NetBox
40+
841
v3.4.0
942
======
1043

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
![Release](https://img.shields.io/github/v/release/netbox-community/ansible_modules)
44
[![Talk to us: Slack](https://img.shields.io/badge/Slack-blue.svg)](https://netdev-community.slack.com/join/shared_invite/zt-mtts8g0n-Sm6Wutn62q_M4OdsaIycrQ#/shared-invite/email)
55

6-
# Looking for New Maintainers
7-
8-
We are in search of a few maintainers for this project. Please see discussion [Looking for maintainers](https://github.com/netbox-community/ansible_modules/discussions/526). Our previous single maintainer was unable to keep up with the project to the high bar set by @FragmentedPacket. The reality is that this is not a project that should be held by a single maintainer. Reach out in the discussion or on our slack if you are interested in helping out.
9-
10-
While we look for maintainers who have shown a willingness to provide inputs/ides, contribute code, and review contributions, the netbox-community team will do its best to maintain this repo in the interim. Prioritization will given to bug fixes, NetBox compatibility, and Ansible requirements/compatibility. New features (associated to the project or NetBox core)will be developed as a best effort, but rest assured, no releases will be cut that are not stable and tested.
11-
126
# NetBox modules for Ansible using Ansible Collections
137

148
We have moved this collection to a different namespace and collection name on Ansible Galaxy. The new versions will be at `netbox.netbox`.
@@ -17,12 +11,12 @@ To keep the code simple, we only officially support the two latest releases of N
1711

1812
## Requirements
1913

20-
- NetBox 2.6+ or the two latest NetBox releases
21-
- Python 3.6+
14+
- NetBox 2.11+ or the two latest NetBox releases
15+
- Python 3.8+
2216
- Python modules:
23-
- `pynetbox 5.0.4+`
17+
- `pynetbox 5.0.4+`, `pynetbox 6.4.0` if using 3.1 features
2418
- `packages` if using Ansible < 2.10, as it's included in Ansible 2.10+
25-
- Ansible 2.9+
19+
- Ansible 2.10+
2620
- NetBox write-enabled token when using modules or read-only token for `nb_lookup/nb_inventory`
2721

2822
## Docs

changelogs/changelog.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,3 +604,39 @@ releases:
604604
name: netbox_provider_network
605605
namespace: ''
606606
release_date: '2021-11-28'
607+
3.5.0:
608+
changes:
609+
release_summary:
610+
First release with some NetBox 3.1 modules, and new wireless endpoint support. Remember to update your pynetbox
611+
to utilise the wireless endpoint support.
612+
minor_changes:
613+
- netbox_contact, netbox_contact_group, netbox_contact_role - Add modules [#671](https://github.com/netbox-community/ansible_modules/pull/671)
614+
- netbox_wireless_lan, netbox_wireless_lan_group, netbox_wireless_link - Add modules [#678](https://github.com/netbox-community/ansible_modules/pull/678)
615+
- nb_inventory - Pull extended inventory data for prefixes and site [#646](https://github.com/netbox-community/ansible_modules/pull/646)
616+
- nb_lookup - Add endpoints for wireless (new in NetBox 3.1) [#673](https://github.com/netbox-community/ansible_modules/pull/673)
617+
- netbox_inventory_item - Add parent field to module [#682](https://github.com/netbox-community/ansible_modules/pull/682)
618+
- netbox_circuit_termination - Add mark_connected field to module [#686](https://github.com/netbox-community/ansible_modules/pull/686)
619+
- netbox_region - Add description, tags, custom_fields to module [#689](https://github.com/netbox-community/ansible_modules/pull/689)
620+
621+
bugfixes:
622+
- Use individual list items when looking for objects [#570](https://github.com/netbox-community/ansible_modules/pull/570)
623+
624+
modules:
625+
- description: Create, update or delete Contact objects in NetBox
626+
name: netbox_contact
627+
namespace: ''
628+
- description: Create, update or delete Contact Group objects in NetBox
629+
name: netbox_contact_group
630+
namespace: ''
631+
- description: Create, update or delete Contact Role objects in NetBox
632+
name: netbox_contact_role
633+
- description: Create, update or delete Wireless LAN objects in NetBox
634+
name: netbox_wireless_lan
635+
namespace: ''
636+
- description: Create, update or delete Wireless LAN Group objects in NetBox
637+
name: netbox_wireless_lan_group
638+
namespace: ''
639+
- description: Create, update or delete Wireless Link objects in NetBox
640+
name: netbox_wireless_link
641+
namespace: ''
642+
relese_data: '2022-01-11'

docs/_extensions/pygments_lexer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ class AnsibleOutputPrimaryLexer(RegexLexer):
7070
# #########################################
7171
# # BEGIN: states from JSON lexer #########
7272
# #########################################
73-
"whitespace": [(r"\s+", token.Text),],
73+
"whitespace": [
74+
(r"\s+", token.Text),
75+
],
7476
# represents a simple terminal value
7577
"simplevalue": [
7678
(r"(true|false|null)\b", token.Keyword.Constant),

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
author = "Mikhail Yohman <@FragmentedPacket>"
2828

2929
# The full version, including alpha/beta/rc tags
30-
release = "2.0.0"
30+
release = "3.5.0"
3131

3232

3333
# -- General configuration ---------------------------------------------------

docs/plugins/index.rst

Lines changed: 80 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
:orphan:
21

32
.. _plugins_in_netbox.netbox:
43

54
Netbox.Netbox
65
=============
76

8-
Collection version 3.4.0
7+
Collection version 3.5.0
98

109
.. toctree::
1110
:maxdepth: 1
1211

12+
1313
Plugin Index
1414
------------
1515

@@ -42,6 +42,9 @@ Modules
4242
* :ref:`netbox_console_port_template <ansible_collections.netbox.netbox.netbox_console_port_template_module>` -- Create, update or delete console port templates within NetBox
4343
* :ref:`netbox_console_server_port <ansible_collections.netbox.netbox.netbox_console_server_port_module>` -- Create, update or delete console server ports within NetBox
4444
* :ref:`netbox_console_server_port_template <ansible_collections.netbox.netbox.netbox_console_server_port_template_module>` -- Create, update or delete console server port templates within NetBox
45+
* :ref:`netbox_contact <ansible_collections.netbox.netbox.netbox_contact_module>` -- Creates or removes contacts from NetBox
46+
* :ref:`netbox_contact_group <ansible_collections.netbox.netbox.netbox_contact_group_module>` -- Creates or removes contact groups from NetBox
47+
* :ref:`netbox_contact_role <ansible_collections.netbox.netbox.netbox_contact_role_module>` -- Creates or removes contact roles from NetBox
4548
* :ref:`netbox_device <ansible_collections.netbox.netbox.netbox_device_module>` -- Create, update or delete devices within NetBox
4649
* :ref:`netbox_device_bay <ansible_collections.netbox.netbox.netbox_device_bay_module>` -- Create, update or delete device bays within NetBox
4750
* :ref:`netbox_device_bay_template <ansible_collections.netbox.netbox.netbox_device_bay_template_module>` -- Create, update or delete device bay templates within NetBox
@@ -86,8 +89,82 @@ Modules
8689
* :ref:`netbox_vlan_group <ansible_collections.netbox.netbox.netbox_vlan_group_module>` -- Create, update or delete vlans groups within NetBox
8790
* :ref:`netbox_vm_interface <ansible_collections.netbox.netbox.netbox_vm_interface_module>` -- Creates or removes interfaces from virtual machines in NetBox
8891
* :ref:`netbox_vrf <ansible_collections.netbox.netbox.netbox_vrf_module>` -- Create, update or delete vrfs within NetBox
92+
* :ref:`netbox_wireless_lan <ansible_collections.netbox.netbox.netbox_wireless_lan_module>` -- Creates or removes Wireless LANs from NetBox
93+
* :ref:`netbox_wireless_lan_group <ansible_collections.netbox.netbox.netbox_wireless_lan_group_module>` -- Creates or removes Wireless LAN Groups from NetBox
94+
* :ref:`netbox_wireless_link <ansible_collections.netbox.netbox.netbox_wireless_link_module>` -- Creates or removes Wireless links from NetBox
95+
8996

9097

9198
.. seealso::
9299

93-
List of :ref:`collections <list_of_collections>` with docs hosted here.
100+
List of :ref:`collections <list_of_collections>` with docs hosted here.
101+
102+
.. toctree::
103+
:maxdepth: 1
104+
:hidden:
105+
106+
nb_inventory_inventory
107+
nb_lookup_lookup
108+
netbox_aggregate_module
109+
netbox_cable_module
110+
netbox_circuit_module
111+
netbox_circuit_termination_module
112+
netbox_circuit_type_module
113+
netbox_cluster_module
114+
netbox_cluster_group_module
115+
netbox_cluster_type_module
116+
netbox_config_context_module
117+
netbox_console_port_module
118+
netbox_console_port_template_module
119+
netbox_console_server_port_module
120+
netbox_console_server_port_template_module
121+
netbox_contact_module
122+
netbox_contact_group_module
123+
netbox_contact_role_module
124+
netbox_device_module
125+
netbox_device_bay_module
126+
netbox_device_bay_template_module
127+
netbox_device_interface_module
128+
netbox_device_interface_template_module
129+
netbox_device_role_module
130+
netbox_device_type_module
131+
netbox_front_port_module
132+
netbox_front_port_template_module
133+
netbox_inventory_item_module
134+
netbox_ip_address_module
135+
netbox_ipam_role_module
136+
netbox_location_module
137+
netbox_manufacturer_module
138+
netbox_platform_module
139+
netbox_power_feed_module
140+
netbox_power_outlet_module
141+
netbox_power_outlet_template_module
142+
netbox_power_panel_module
143+
netbox_power_port_module
144+
netbox_power_port_template_module
145+
netbox_prefix_module
146+
netbox_provider_module
147+
netbox_provider_network_module
148+
netbox_rack_module
149+
netbox_rack_group_module
150+
netbox_rack_role_module
151+
netbox_rear_port_module
152+
netbox_rear_port_template_module
153+
netbox_region_module
154+
netbox_rir_module
155+
netbox_route_target_module
156+
netbox_service_module
157+
netbox_site_module
158+
netbox_site_group_module
159+
netbox_tag_module
160+
netbox_tenant_module
161+
netbox_tenant_group_module
162+
netbox_virtual_chassis_module
163+
netbox_virtual_machine_module
164+
netbox_vlan_module
165+
netbox_vlan_group_module
166+
netbox_vm_interface_module
167+
netbox_vrf_module
168+
netbox_wireless_lan_module
169+
netbox_wireless_lan_group_module
170+
netbox_wireless_link_module

0 commit comments

Comments
 (0)