def zentinelTabs(self, templateName):
    tabs = ZenModelBase.zentinelTabs(self, templateName)
    for i, tab in enumerate(tabs):
        if tab['name'] == 'Perf':
            tabs.insert(i+1, dict(
                id="custom",
                name="Custom",
                permissions=(ZEN_VIEW,),
                action="customTab"))
    return tabs
Exemple #2
0
def zentinelTabs(self, templateName):
    tabs = ZenModelBase.zentinelTabs(self, templateName)
    for i, tab in enumerate(tabs):
        if tab['name'] == 'Graphs' or tab['name'] == 'Perf':
            tabs.insert(i+1, dict(
                    id="interfaceGraphs",
                    name="Interface Graphs",
                    permissions=(ZEN_VIEW,),
                    action="interfaceGraphs"))
    return tabs