<%! import sys from splunk.clilib.bundle_paths import make_splunkhome_path sys.path.append(make_splunkhome_path(['etc', 'apps', 'SA-ITOA', 'lib'])) sys.path.append(make_splunkhome_path(['etc', 'apps', 'SA-ITOA', 'lib', 'itsi'])) sys.path = list(set(sys.path)) from feature_flagging.license_retriever import LicenseRetriever from feature_flagging.suite_content import SuiteContent from itsi_version_compare import VersionComparison version_compare = VersionComparison() if cherrypy.config['product_type'] == 'hunk': faviconFile = 'favicon_hunk.ico' elif cherrypy.config['product_type'] == 'enterprise': faviconFile = 'favicon.ico' else: faviconFile = 'favicon.ico' %> <% should_migrate = False if version_compare.is_version_consistent else version_compare.should_render_migration_page(cherrypy.session.get('sessionKey')) %> <% lic_retriever = LicenseRetriever(cherrypy.session.get('sessionKey')) suite = None try: suite = lic_retriever.get_suite() except: # in case any error occurs with reading suite information, treat it as the standard suite suite = SuiteContent.least_permissible_suite() destination = 'alerts_review' if suite == SuiteContent.least_permissible_suite(): destination = 'alerts_review' elif suite == SuiteContent.most_permissible_suite(): destination = 'itsi_event_management' %> <%include file="lib.html" /> % if destination == 'itsi_event_management' or not 'alerts_review' in cherrypy.request.path_info: % endif % if should_migrate and not '/itsi/app_upgrade' in cherrypy.request.path_info: % endif ${_('Loading...')} ${next.body() if hasattr(next, 'body') else ''} <% config_qs = dict(autoload=1) if hasattr(cherrypy.request, 'guest_pass') and cherrypy.request.guest_pass: config_qs['guest_pass'] = 1 %>