This might be considered an enhancement but I think it should be in 0.8.
When a bigip is unlicenced getting the list of iRules returns only the sys supplied iRules.
So what I should do is convert the list of iRules from an array to a list. Then as I go through the list I can pull each sys rule out of it. Then if my list length = zero I can do a quick call to check the licence status and if it's unlicenced throw an error into the notices box instead of trying to build the list. If it's really empty build an empty list and put something like "No editable iRules found"
This might be considered an enhancement but I think it should be in 0.8.
When a bigip is unlicenced getting the list of iRules returns only the sys supplied iRules.
So what I should do is convert the list of iRules from an array to a list. Then as I go through the list I can pull each sys rule out of it. Then if my list length = zero I can do a quick call to check the licence status and if it's unlicenced throw an error into the notices box instead of trying to build the list. If it's really empty build an empty list and put something like "No editable iRules found"
Actually starting with that will be good.
Checking LTM for expiration would be a good place to start. https://devcentral.f5.com/wiki/iControl.Management__LicenseAdministration__get_module_expiry.ashx
General licence stuff https://devcentral.f5.com/wiki/iControl.Management__LicenseAdministration.ashx