From 80e927bd0b200904626cabf9bf6fa65a1bd4a6a8 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 5 Jan 2023 18:07:39 -0500 Subject: [Enterprise] Add api for IsFloatingLicense --- python/enterprise.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python') 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. -- cgit v1.3.1