Skip to content

Commit

Permalink
Comment rest call to of_stats that were removed
Browse files Browse the repository at this point in the history
  • Loading branch information
rmotitsuki committed Oct 22, 2021
1 parent 0587fd6 commit 729d6af
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 5 additions & 3 deletions src/components/kytos/switch/Interface.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ export default {
return this.interface_id.split(":").slice(0,-1).join(":")
},
endpoint () {
let url = this.$kytos_server_api + "kytos/of_stats/v1/"
return url + this.dpid + "/ports/" + Number(this.port_number)
// TODO: of_stats/kronos must implement the endpoint
//let url = this.$kytos_server_api + "kytos/of_stats/v1/"
//return url + this.dpid + "/ports/" + Number(this.port_number)
},
utilization_color_class: function () {
if (this.speed === null) return ''
Expand Down Expand Up @@ -100,7 +101,8 @@ export default {
}
},
update_chart() {
json(this.endpoint, this.parseInterfaceData)
// TODO: of_stats/kronos must implement the endpoint
//json(this.endpoint, this.parseInterfaceData)
}
},
mounted () {
Expand Down
8 changes: 5 additions & 3 deletions src/kytos/interfaceInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ export default {
},
computed: {
endpoint () {
let url = this.$kytos_server_api + "kytos/of_stats/v1/"
return url + this.metadata.dpid + "/ports/" + this.metadata.port_number
// TODO: of_stats/kronos must implement the endpoint
//let url = this.$kytos_server_api + "kytos/of_stats/v1/"
//return url + this.metadata.dpid + "/ports/" + this.metadata.port_number
}
},
methods: {
Expand Down Expand Up @@ -81,7 +82,8 @@ export default {
return endpoint_url;
},
update_chart() {
json(this.build_url(), this.parseInterfaceData)
// TODO: of_stats/kronos must implement the endpoint
//json(this.build_url(), this.parseInterfaceData)
},
change_plotRange(range) {
this.plotRange = range
Expand Down
8 changes: 5 additions & 3 deletions src/kytos/switchRadar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ export default {
},
computed: {
endpoint () {
let url = this.$kytos_server_api + "kytos/of_stats/v1/"
return url + this.dpid + "/ports"
// TODO: of_stats/kronos must implement the endpoint
//let url = this.$kytos_server_api + "kytos/of_stats/v1/"
//return url + this.dpid + "/ports"
}
},
methods: {
updateChart () {
json(this.endpoint, this.parseData)
// TODO: of_stats/kronos must implement the endpoint
// json(this.endpoint, this.parseData)
},
parseData (data) {
if (!data) {
Expand Down

0 comments on commit 729d6af

Please sign in to comment.