From 9c8e87af9a31f93ba0e136ce150e9d781e1cf6e8 Mon Sep 17 00:00:00 2001 From: mayar osama Date: Wed, 19 Jun 2024 13:47:23 +0300 Subject: [PATCH] Adding the network component in node pilot --- .../playground/src/weblets/tf_node_pilot.vue | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/packages/playground/src/weblets/tf_node_pilot.vue b/packages/playground/src/weblets/tf_node_pilot.vue index bdc26b639a..1f9e927c31 100644 --- a/packages/playground/src/weblets/tf_node_pilot.vue +++ b/packages/playground/src/weblets/tf_node_pilot.vue @@ -35,6 +35,13 @@ :large="{ cpu: 8, memory: 32, disk: 2000 }" v-model="solution" /> + @@ -71,6 +78,7 @@ import { type Ref, ref } from "vue"; import { manual } from "@/utils/manual"; +import Network from "../components/networks.vue"; import { useLayout } from "../components/weblet_layout.vue"; import { useGrid } from "../stores"; import { type Flist, ProjectName } from "../types"; @@ -83,6 +91,10 @@ const flist: Flist = { value: "https://hub.grid.tf/tf-official-vms/node-pilot-zdbfs.flist", entryPoint: "/", }; +const ipv4 = ref(false); +const ipv6 = ref(false); +const planetary = ref(true); +const mycelium = ref(true); const dedicated = ref(false); const certified = ref(false); const rootFilesystemSize = 2; @@ -111,9 +123,10 @@ async function deploy() { memory: solution.value.memory, flist: flist.value, entryPoint: flist.entryPoint, - publicIpv4: true, - publicIpv6: true, - planetary: false, + publicIpv4: ipv4.value, + publicIpv6: ipv6.value, + planetary: planetary.value, + mycelium: mycelium.value, envs: [{ key: "SSH_KEY", value: selectedSSHKeys.value }], rootFilesystemSize, disks: [