Skip to content

Commit a7cb32f

Browse files
Merge pull request #573 from ryanmerolle/devel
CI Fix
2 parents 4d3f69c + 4d1b7a1 commit a7cb32f

File tree

205 files changed

+13217
-369
lines changed

Some content is hidden

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

205 files changed

+13217
-369
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ jobs:
4949
VERSION: "v2.10"
5050
INTEGRATION_TESTS: "v2.10"
5151
- python-version: 3.6
52-
VERSION: "latest"
53-
INTEGRATION_TESTS: "latest"
52+
VERSION: "v2.11"
53+
INTEGRATION_TESTS: "v2.11"
54+
#- python-version: 3.6
55+
# VERSION: "v3.0"
56+
# INTEGRATION_TESTS: "v3.0"
5457
steps:
5558
- name: Checkout repo
5659
uses: actions/checkout@v2
@@ -70,31 +73,54 @@ jobs:
7073
version: '3.4'
7174
services:
7275
netbox:
76+
image: netboxcommunity/netbox:v2.10
7377
ports:
7478
- 32768:8080
7579
EOF
7680
docker-compose up -d --quiet-pull
7781
docker container ls
7882
cd ..
7983
if: matrix.VERSION == 'v2.10'
80-
- name: Clone & Start netbox-docker containers - latest
84+
- name: Clone & Start netbox-docker containers - 2.11
8185
env:
8286
VERSION: ${{ matrix.VERSION }}
8387
run: |
8488
cd ..
8589
git clone https://github.com/netbox-community/netbox-docker.git
8690
cd netbox-docker
91+
git checkout 1.2.0
8792
tee docker-compose.override.yml <<EOF
8893
version: '3.4'
8994
services:
9095
netbox:
96+
image: netboxcommunity/netbox:v2.11
9197
ports:
9298
- 32768:8080
9399
EOF
94100
docker-compose up -d --quiet-pull
95101
docker container ls
96102
cd ..
97-
if: matrix.VERSION == 'latest'
103+
if: matrix.VERSION == 'v2.11'
104+
- name: Clone & Start netbox-docker containers - 3.0
105+
env:
106+
VERSION: ${{ matrix.VERSION }}
107+
run: |
108+
cd ..
109+
git clone https://github.com/netbox-community/netbox-docker.git
110+
cd netbox-docker
111+
git checkout 1.3.1
112+
tee docker-compose.override.yml <<EOF
113+
version: '3.4'
114+
services:
115+
netbox:
116+
image: netboxcommunity/netbox:v3.0
117+
ports:
118+
- 32768:8080
119+
EOF
120+
docker-compose up -d --quiet-pull
121+
docker container ls
122+
cd ..
123+
if: matrix.VERSION == 'v3.0'
98124
- name: Install and configure Poetry
99125
uses: snok/install-poetry@v1.1.1
100126
with:

docs/getting_started/contributing/modules/new_module.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ Now we need to update the ``DOCUMENTATION`` variable to match the module we're c
150150
- Any tags that the device may need to be associated with
151151
required: false
152152
type: list
153+
elements: raw
153154
custom_fields:
154155
description:
155156
- must exist in Netbox
@@ -282,7 +283,7 @@ Let's move onto the ``main()`` function in the module and take a look at the req
282283
name=dict(required=True, type="str"),
283284
tenant=dict(required=False, type="raw"),
284285
description=dict(required=False, type="str"),
285-
tags=dict(required=False, type="list"),
286+
tags=dict(required=False, type="list", elements="raw"),
286287
custom_fields=dict(required=False, type="dict"),
287288
),
288289
),

plugins/module_utils/netbox_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,8 @@ def _connect_netbox_api(self, url, token, ssl_verify, cert):
542542
try:
543543
session = requests.Session()
544544
session.verify = ssl_verify
545-
session.cert = tuple(i for i in cert)
545+
if cert:
546+
session.cert = tuple(i for i in cert)
546547
nb = pynetbox.api(url, token=token)
547548
nb.http_session = session
548549
try:

plugins/modules/netbox_aggregate.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
- "The token created within Netbox to authorize API access"
3939
required: true
4040
type: str
41+
cert:
42+
description:
43+
- Certificate path
44+
required: false
45+
type: raw
4146
data:
4247
description:
4348
- "Defines the aggregate configuration"
@@ -68,6 +73,7 @@
6873
- "Any tags that the aggregate may need to be associated with"
6974
required: false
7075
type: list
76+
elements: raw
7177
custom_fields:
7278
description:
7379
- "must exist in Netbox"
@@ -170,7 +176,7 @@ def main():
170176
rir=dict(required=False, type="raw"),
171177
date_added=dict(required=False, type="str"),
172178
description=dict(required=False, type="str"),
173-
tags=dict(required=False, type="list"),
179+
tags=dict(required=False, type="list", elements="raw"),
174180
custom_fields=dict(required=False, type="dict"),
175181
),
176182
),

plugins/modules/netbox_cable.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
- The token created within Netbox to authorize API access
4040
required: true
4141
type: str
42+
cert:
43+
description:
44+
- Certificate path
45+
required: false
46+
type: raw
4247
data:
4348
type: dict
4449
required: true
@@ -150,7 +155,7 @@
150155
- Any tags that the cable may need to be associated with
151156
required: false
152157
type: list
153-
elements: str
158+
elements: raw
154159
state:
155160
description:
156161
- Use C(present) or C(absent) for adding or removing.
@@ -335,7 +340,7 @@ def main():
335340
length_unit=dict(
336341
required=False, choices=["m", "cm", "ft", "in"], type="str"
337342
),
338-
tags=dict(required=False, type="list", elements="str"),
343+
tags=dict(required=False, type="list", elements="raw"),
339344
),
340345
),
341346
)

plugins/modules/netbox_circuit.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
- The token created within Netbox to authorize API access
3939
required: true
4040
type: str
41+
cert:
42+
description:
43+
- Certificate path
44+
required: false
45+
type: raw
4146
data:
4247
type: dict
4348
required: true
@@ -94,6 +99,7 @@
9499
- Any tags that the device may need to be associated with
95100
required: false
96101
type: list
102+
elements: raw
97103
custom_fields:
98104
description:
99105
- must exist in Netbox
@@ -204,7 +210,7 @@ def main():
204210
commit_rate=dict(required=False, type="int"),
205211
description=dict(required=False, type="str"),
206212
comments=dict(required=False, type="str"),
207-
tags=dict(required=False, type="list"),
213+
tags=dict(required=False, type="list", elements="raw"),
208214
custom_fields=dict(required=False, type="dict"),
209215
),
210216
),

plugins/modules/netbox_circuit_termination.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
- The token created within Netbox to authorize API access
3939
required: true
4040
type: str
41+
cert:
42+
description:
43+
- Certificate path
44+
required: false
45+
type: raw
4146
data:
4247
required: true
4348
type: dict

plugins/modules/netbox_circuit_type.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
- The token created within Netbox to authorize API access
3939
required: true
4040
type: str
41+
cert:
42+
description:
43+
- Certificate path
44+
required: false
45+
type: raw
4146
data:
4247
required: true
4348
type: dict

plugins/modules/netbox_cluster.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
- The token created within Netbox to authorize API access
3939
required: true
4040
type: str
41+
cert:
42+
description:
43+
- Certificate path
44+
required: false
45+
type: raw
4146
data:
4247
required: true
4348
type: dict
@@ -79,6 +84,7 @@
7984
- Any tags that the cluster may need to be associated with
8085
required: false
8186
type: list
87+
elements: raw
8288
custom_fields:
8389
description:
8490
- must exist in Netbox
@@ -191,7 +197,7 @@ def main():
191197
site=dict(required=False, type="raw"),
192198
tenant=dict(required=False, type="raw"),
193199
comments=dict(required=False, type="str"),
194-
tags=dict(required=False, type="list"),
200+
tags=dict(required=False, type="list", elements="raw"),
195201
custom_fields=dict(required=False, type="dict"),
196202
),
197203
),

plugins/modules/netbox_cluster_group.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
- The token created within Netbox to authorize API access
3939
required: true
4040
type: str
41+
cert:
42+
description:
43+
- Certificate path
44+
required: false
45+
type: raw
4146
data:
4247
required: true
4348
type: dict

plugins/modules/netbox_cluster_type.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
- The token created within Netbox to authorize API access
3939
required: true
4040
type: str
41+
cert:
42+
description:
43+
- Certificate path
44+
required: false
45+
type: raw
4146
data:
4247
required: true
4348
type: dict

plugins/modules/netbox_console_port.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
- The token created within Netbox to authorize API access
4040
required: true
4141
type: str
42+
cert:
43+
description:
44+
- Certificate path
45+
required: false
46+
type: raw
4247
data:
4348
type: dict
4449
required: true
@@ -84,6 +89,7 @@
8489
- Any tags that the console port may need to be associated with
8590
required: false
8691
type: list
92+
elements: raw
8793
state:
8894
description:
8995
- Use C(present) or C(absent) for adding or removing.
@@ -197,7 +203,7 @@ def main():
197203
type="str",
198204
),
199205
description=dict(required=False, type="str"),
200-
tags=dict(required=False, type="list"),
206+
tags=dict(required=False, type="list", elements="raw"),
201207
),
202208
),
203209
)

plugins/modules/netbox_console_port_template.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
- The token created within Netbox to authorize API access
4040
required: true
4141
type: str
42+
cert:
43+
description:
44+
- Certificate path
45+
required: false
46+
type: raw
4247
data:
4348
type: dict
4449
required: true

plugins/modules/netbox_console_server_port.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
- The token created within Netbox to authorize API access
4040
required: true
4141
type: str
42+
cert:
43+
description:
44+
- Certificate path
45+
required: false
46+
type: raw
4247
data:
4348
type: dict
4449
required: true
@@ -84,6 +89,7 @@
8489
- Any tags that the console server port may need to be associated with
8590
required: false
8691
type: list
92+
elements: raw
8793
state:
8894
description:
8995
- Use C(present) or C(absent) for adding or removing.
@@ -197,7 +203,7 @@ def main():
197203
type="str",
198204
),
199205
description=dict(required=False, type="str"),
200-
tags=dict(required=False, type="list"),
206+
tags=dict(required=False, type="list", elements="raw"),
201207
),
202208
),
203209
)

plugins/modules/netbox_console_server_port_template.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
- The token created within Netbox to authorize API access
4040
required: true
4141
type: str
42+
cert:
43+
description:
44+
- Certificate path
45+
required: false
46+
type: raw
4247
data:
4348
type: dict
4449
required: true

plugins/modules/netbox_device.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
- The token created within Netbox to authorize API access
4141
required: true
4242
type: str
43+
cert:
44+
description:
45+
- Certificate path
46+
required: false
47+
type: raw
4348
data:
4449
description:
4550
- Defines the device configuration
@@ -149,6 +154,7 @@
149154
- Any tags that the device may need to be associated with
150155
required: false
151156
type: list
157+
elements: raw
152158
custom_fields:
153159
description:
154160
- must exist in Netbox
@@ -303,7 +309,7 @@ def main():
303309
vc_position=dict(required=False, type="int"),
304310
vc_priority=dict(required=False, type="int"),
305311
comments=dict(required=False, type="str"),
306-
tags=dict(required=False, type="list"),
312+
tags=dict(required=False, type="list", elements="raw"),
307313
local_context_data=dict(required=False, type="dict"),
308314
custom_fields=dict(required=False, type="dict"),
309315
),

0 commit comments

Comments
 (0)