From a3e958b529a2218d98992662e7c0ae900b7457b3 Mon Sep 17 00:00:00 2001 From: Samuel Rowe Date: Fri, 29 Jul 2022 21:25:16 +0530 Subject: [PATCH] feat(frontend): created `IPAMConfig` interface --- services/frontend/src/types/index.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/services/frontend/src/types/index.ts b/services/frontend/src/types/index.ts index 0ecf0ff..88d69b0 100644 --- a/services/frontend/src/types/index.ts +++ b/services/frontend/src/types/index.ts @@ -82,6 +82,13 @@ export interface IVolumeTopLevel { name: string; } +export interface IPAMConfig { + subnet?: string; + ip_range?: string; + gateway?: string; + aux_addresses?: Record; +} + export interface INetworkTopLevel { driver: string; driver_opts: KeyValPair; @@ -89,12 +96,7 @@ export interface INetworkTopLevel { enable_ipv6: boolean; ipam?: { driver?: string; - config?: { - subnet?: string; - ip_range?: string; - gateway?: string; - aux_addresses?: Record; - }[]; + config?: IPAMConfig[]; options?: Record; }; internal: boolean;