diff --git a/packages/frinx-dashboard/src/api/unistore/network-types.ts b/packages/frinx-dashboard/src/api/unistore/network-types.ts index a5ca07f59..b379e4414 100644 --- a/packages/frinx-dashboard/src/api/unistore/network-types.ts +++ b/packages/frinx-dashboard/src/api/unistore/network-types.ts @@ -224,14 +224,16 @@ export function decodeRoutingProtocolsOutput(value: unknown): RoutingProtocolsOu } const IPConnectionValidator = t.type({ - oam: t.type({ - bfd: optional( - t.type({ - enabled: optional(t.boolean), - 'profile-name': optional(t.string), - }), - ), - }), + oam: optional( + t.type({ + bfd: optional( + t.type({ + enabled: optional(t.boolean), + 'profile-name': optional(t.string), + }), + ), + }), + ), ipv4: optional( t.type({ 'address-allocation-type': optional(t.string), diff --git a/packages/frinx-gamma/src/network-types.ts b/packages/frinx-gamma/src/network-types.ts index dd4730bae..b34886dba 100644 --- a/packages/frinx-gamma/src/network-types.ts +++ b/packages/frinx-gamma/src/network-types.ts @@ -226,14 +226,16 @@ export function decodeRoutingProtocolsOutput(value: unknown): RoutingProtocolsOu } const IPConnectionValidator = t.type({ - oam: t.type({ - bfd: optional( - t.type({ - enabled: optional(t.boolean), - 'profile-name': optional(t.string), - }), - ), - }), + oam: optional( + t.type({ + bfd: optional( + t.type({ + enabled: optional(t.boolean), + 'profile-name': optional(t.string), + }), + ), + }), + ), ipv4: optional( t.type({ 'address-allocation-type': optional(t.string), diff --git a/packages/frinx-gamma/src/pages/create-site-network-access/create-site-network-access.tsx b/packages/frinx-gamma/src/pages/create-site-network-access/create-site-network-access.tsx index dce5a3d04..a53e8867f 100644 --- a/packages/frinx-gamma/src/pages/create-site-network-access/create-site-network-access.tsx +++ b/packages/frinx-gamma/src/pages/create-site-network-access/create-site-network-access.tsx @@ -53,6 +53,15 @@ const getDefaultNetworkAccess = (): SiteNetworkAccess => ({ qosProfiles: [''], }, vpnAttachment: null, + ipConnection: { + ipv4: { + addressAllocationType: 'static-address', + addresses: { + customerAddress: '', + providerAddress: '', + }, + }, + }, }); // TODO: to be defined