mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-19 11:52:22 -06:00
Check that device has a platform set before rendering napalm tab
This commit is contained in:
committed by
Jeremy Stretch
parent
04edb4dcdd
commit
d19c57481d
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user