From e72c2c4f2ef53da8749f5925d5ee1a4f4e9a4f84 Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Sat, 1 Apr 2023 00:49:00 +0200 Subject: [PATCH] Add Apply Interfaces --- client/src/pages/network/Interfaces.vue | 11 ++++++++++- internal/api/network/interfaces.go | 23 +++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/client/src/pages/network/Interfaces.vue b/client/src/pages/network/Interfaces.vue index 9b66903..ae7f69e 100644 --- a/client/src/pages/network/Interfaces.vue +++ b/client/src/pages/network/Interfaces.vue @@ -40,6 +40,15 @@ async function load(){ loading = false } +async function apply(){ + let res = await apiCall("Network.ApplyInterfaces", {}); + if (res.Error === null) { + console.debug("apply log", res.Data.Log); + } else { + console.debug("error", res); + } +} + onMounted(async() => { load(); }); @@ -48,7 +57,7 @@ onMounted(async() => {