From 977b79ecee4d1d8054c0fd9528c563376fe3bcd9 Mon Sep 17 00:00:00 2001 From: kkthxbye-code Date: Thu, 17 Nov 2022 11:14:40 +0100 Subject: [PATCH] Check that device has a platform set before rendering napalm tab --- netbox/dcim/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/netbox/dcim/views.py b/netbox/dcim/views.py index efedc58ab..a1c11bb3d 100644 --- a/netbox/dcim/views.py +++ b/netbox/dcim/views.py @@ -2072,6 +2072,7 @@ class NAPALMViewTab(ViewTab): if not ( instance.status == 'active' and instance.primary_ip and + instance.platform and instance.platform.napalm_driver ): return None