summaryrefslogtreecommitdiff
path: root/python/enterprise.py
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2023-01-05 18:07:39 -0500
committerGlenn Smith <glenn@vector35.com>2023-01-10 14:59:04 -0500
commit80e927bd0b200904626cabf9bf6fa65a1bd4a6a8 (patch)
tree139aa426a190f46a665a51abbe1223c397d2fa9e /python/enterprise.py
parentd905254d75618736f4ac237f59f74d44520fdf8c (diff)
[Enterprise] Add api for IsFloatingLicense
Diffstat (limited to 'python/enterprise.py')
-rw-r--r--python/enterprise.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/enterprise.py b/python/enterprise.py
index fdd0bb74..23e7df71 100644
--- a/python/enterprise.py
+++ b/python/enterprise.py
@@ -250,6 +250,14 @@ def license_duration() -> int:
return core.BNGetEnterpriseServerLicenseDuration()
+def is_floating_license() -> bool:
+ """
+ Determine if a floating license is currently active
+ :return: True if a floating license is active
+ """
+ return core.BNIsEnterpriseServerFloatingLicense()
+
+
def is_license_still_activated() -> bool:
"""
Determine if your current license checkout is still valid.