Browse Source

Check that device has a platform set before rendering napalm tab

kkthxbye-code 3 years ago
parent
commit
977b79ecee
1 changed files with 1 additions and 0 deletions
  1. 1 0
      netbox/dcim/views.py

+ 1 - 0
netbox/dcim/views.py

@@ -2072,6 +2072,7 @@ class NAPALMViewTab(ViewTab):
         if not (
         if not (
             instance.status == 'active' and
             instance.status == 'active' and
             instance.primary_ip and
             instance.primary_ip and
+            instance.platform and
             instance.platform.napalm_driver
             instance.platform.napalm_driver
         ):
         ):
             return None
             return None