We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a71a517 commit 4694134Copy full SHA for 4694134
Integrations/NetBox/netbox.py
@@ -5,6 +5,13 @@
5
name='rule_netbox',
6
)
7
def rule_netbox(configuration, commands, device, netbox):
8
+ # The next lines are used to disable SSL certificate verification
9
+ # https://pynetbox.readthedocs.io/en/stable/advanced.html#ssl-verification
10
+ import requests
11
+ my_cert_ignoring_session = requests.Session()
12
+ my_cert_ignoring_session.verify = False
13
+ netbox.http_session = my_cert_ignoring_session
14
+
15
devices = netbox.dcim.devices.all()
16
device_names = [device.name for device in devices]
17
0 commit comments