diff --git a/striker-ui/components/Network/Network.tsx b/striker-ui/components/Network/Network.tsx index 009c5b96..6f9515c4 100644 --- a/striker-ui/components/Network/Network.tsx +++ b/striker-ui/components/Network/Network.tsx @@ -37,6 +37,8 @@ const selectDecorator = (state: string): Colours => { return 'ok'; case 'degraded': return 'warning'; + case 'down': + return 'error'; default: return 'warning'; } diff --git a/striker-ui/types/AnvilNetwork.d.ts b/striker-ui/types/AnvilNetwork.d.ts index 2fcb8a49..3330c466 100644 --- a/striker-ui/types/AnvilNetwork.d.ts +++ b/striker-ui/types/AnvilNetwork.d.ts @@ -2,7 +2,7 @@ declare type AnvilNetworkBondLink = { link_name: string; link_uuid: string; link_speed: number; - link_state: 'optimal' | 'degraded'; + link_state: 'optimal' | 'degraded' | 'down'; is_active: boolean; }; @@ -26,7 +26,7 @@ declare type ProcessedBond = { bond_name: string; bond_uuid: string; bond_speed: number; - bond_state: 'optimal' | 'degraded'; + bond_state: 'optimal' | 'degraded' | 'down'; hosts: Array<{ host_name: string; host_uuid: string; @@ -34,7 +34,7 @@ declare type ProcessedBond = { link_name: string; link_uuid: string; link_speed: number; - link_state: 'optimal' | 'degraded'; + link_state: 'optimal' | 'degraded' | 'down'; is_active: boolean; }; }>;