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
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