Skip to content

Instantly share code, notes, and snippets.

View thefreakquency's full-sized avatar

thefreakquency

  • Montreal, Qc, Canada
  • 04:50 (UTC -04:00)
View GitHub Profile
@candlerb
candlerb / missing-device-ports.py
Last active March 31, 2023 14:33
Netbox report to highlight devices which are missing components that are defined in the Device Type
# Install as reports/missing-device-ports.py
# Run as: python3 manage.py runreport missing-device-ports
from extras.reports import Report
from dcim.models import Device
class MissingDevicePorts(Report):
description = "Find devices which are missing ports that are in the device type template"
def test_add_ports(self):