Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the network component to node pilot application #2994

Merged
merged 1 commit into from
Jun 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions packages/playground/src/weblets/tf_node_pilot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
:large="{ cpu: 8, memory: 32, disk: 2000 }"
v-model="solution"
/>
<Network
required
v-model:ipv4="ipv4"
v-model:ipv6="ipv6"
v-model:planetary="planetary"
v-model:mycelium="mycelium"
/>

<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Dedicated" v-model="dedicated" hide-details />
Expand Down Expand Up @@ -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";
Expand All @@ -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;
Expand Down Expand Up @@ -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: [
Expand Down
Loading