Skip to content

Commit

Permalink
feat: UI enable INT checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
viniarck committed Jun 12, 2024
1 parent 96c0ab4 commit 2512e30
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ui/k-toolbar/main.kytos
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@

<k-dropdown icon="arrow-right" title="QoS Egress Queue" :options="get_queue_ids"
v-model:value="queue_id"></k-dropdown>

<k-checkbox title="Enable INT" v-model:model="enable_int" :value="'enable'"
tooltip="Enable In-band Network Telemetry (INT)"
></k-checkbox>
</k-accordion-item>

<span v-for="constraint in ['primary_constraints', 'secondary_constraints']">
Expand Down Expand Up @@ -233,6 +237,7 @@ module.exports = {
service_level: "",
sb_priority: "",
queue_id: "",
enable_int: [],
dpids: [""],
hasAutoComplete:false,
link_options: [],
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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] = {};
Expand Down

0 comments on commit 2512e30

Please sign in to comment.