mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Added netbox functions
This commit is contained in:
parent
4fbe62a733
commit
f71507f7ef
8 changed files with 49 additions and 25 deletions
|
|
@ -827,3 +827,24 @@ end
|
|||
function prefsSkipRedis(skip)
|
||||
skip_redis = skip
|
||||
end
|
||||
|
||||
function isNetBoxEnabled()
|
||||
if not ntop.isEnterpriseXL() then
|
||||
return false
|
||||
end
|
||||
return (ntop.getPref("ntopng.prefs.toggle_netbox") == "1")
|
||||
end
|
||||
|
||||
function getNetBoxURL()
|
||||
if not ntop.isEnterpriseXL() or not ntop.getPref("ntopng.prefs.toggle_netbox") == "1" then
|
||||
return ""
|
||||
end
|
||||
return ntop.getPref("ntopng.prefs.netbox_activation_url")
|
||||
end
|
||||
|
||||
function getNetBoxToken()
|
||||
if not ntop.isEnterpriseXL() or not ntop.getPref("ntopng.prefs.toggle_netbox") == "1" then
|
||||
return ""
|
||||
end
|
||||
return ntop.getPref("ntopng.prefs.netbox_personal_access_token")
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue