From 2512e30b1d1406212851841ac94a92c60973ca95 Mon Sep 17 00:00:00 2001 From: Vinicius Arcanjo Date: Wed, 12 Jun 2024 09:48:25 -0300 Subject: [PATCH] feat: UI enable INT checkbox --- ui/k-toolbar/main.kytos | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/k-toolbar/main.kytos b/ui/k-toolbar/main.kytos index 9a4d4413..3d90531c 100644 --- a/ui/k-toolbar/main.kytos +++ b/ui/k-toolbar/main.kytos @@ -60,6 +60,10 @@ + + @@ -233,6 +237,7 @@ module.exports = { service_level: "", sb_priority: "", queue_id: "", + enable_int: [], dpids: [""], hasAutoComplete:false, link_options: [], @@ -430,6 +435,7 @@ module.exports = { this.service_level = ""; this.sb_priority = ""; this.queue_id = ""; + this.enable_int = [], this.link_options = []; this.init_path_constraints(); @@ -488,6 +494,9 @@ module.exports = { if (this.queue_id !== undefined && this.queue_id !== "") { request.queue_id = parseInt(this.queue_id) } + if (this.enable_int.includes('enable')) { + request.metadata = {telemetry_request: {}} + } ['primary_constraints', 'secondary_constraints'].forEach(_type => { request[_type] = {};