Skip to content

Commit

Permalink
create site network access fix (#229)
Browse files Browse the repository at this point in the history
Co-authored-by: Pavol Porubský <[email protected]>
  • Loading branch information
soson and Paulooze authored Oct 21, 2021
1 parent 308bd4b commit b1c3fce
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 16 deletions.
18 changes: 10 additions & 8 deletions packages/frinx-dashboard/src/api/unistore/network-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
18 changes: 10 additions & 8 deletions packages/frinx-gamma/src/network-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ const getDefaultNetworkAccess = (): SiteNetworkAccess => ({
qosProfiles: [''],
},
vpnAttachment: null,
ipConnection: {
ipv4: {
addressAllocationType: 'static-address',
addresses: {
customerAddress: '',
providerAddress: '',
},
},
},
});

// TODO: to be defined
Expand Down

0 comments on commit b1c3fce

Please sign in to comment.