mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
Check that device has a platform set before rendering napalm tab
This commit is contained in:
parent
5202d0add9
commit
977b79ecee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user