Dashboard cards: rebuild deployable dists
This commit is contained in:
@@ -192,17 +192,13 @@ class NetworkPlugin(BasePlugin):
|
||||
|
||||
return [networkcli]
|
||||
|
||||
def get_dashboard_widgets(self) -> List[Dict]:
|
||||
"""Return dashboard widget definitions."""
|
||||
return [
|
||||
{
|
||||
'name': 'Network Status',
|
||||
'component': 'NetworkStatusWidget',
|
||||
'endpoint': '/api/network/dashboard/summary',
|
||||
'size': 'medium',
|
||||
'position': 7,
|
||||
},
|
||||
]
|
||||
# NO dashboard card, deliberately. This plugin declared one for months
|
||||
# naming a component nobody wrote, so nothing rendered. Converting it would
|
||||
# have meant inventing a card: network devices carry no live status - there
|
||||
# is no polling, no reachability check, nothing that can be WRONG - so the
|
||||
# only card possible is a count of how many exist, which is the kind of
|
||||
# always-true number this dashboard exists to get away from. If reachability
|
||||
# is ever collected, that is the card.
|
||||
|
||||
def get_navigation_items(self) -> List[Dict]:
|
||||
"""Return navigation menu items."""
|
||||
|
||||
Reference in New Issue
Block a user