{{cindex}} |
@@ -36,7 +36,7 @@
-
+
{{cindex}} |
@@ -57,7 +57,7 @@
-
+
{{cindex}} |
@@ -75,7 +75,7 @@
@@ -157,8 +157,8 @@
{{constraint_labels['spf_attribute']}} |
-
-
+
|
@@ -385,7 +385,7 @@ module.exports = {
dataType: "json",
contentType: "application/json; charset=utf-8"
});
-
+
request.done(function(data) {
_this.buidEvcView(data);
_this.forceRerender();
@@ -455,7 +455,7 @@ module.exports = {
this.endpoints_data["Interface"][0]["value"] = splitted_dpid[0];
this.endpoints_data["DPID"][0]["value"] = splitted_dpid[2];
}
-
+
let dpid_z = this.endpoints_data["DPID"][1]["value"];
if(dpid_z.lastIndexOf(' ') > 0) {
let splitted_dpid = dpid_z.split(' ');
@@ -466,7 +466,7 @@ module.exports = {
buidEvcView: function(data) {
/**
* Build new EVC object for exibition.
- * Parameter:
+ * Parameter:
* data: evc json from mef_eline
*/
this.circuit = data;
@@ -478,25 +478,25 @@ module.exports = {
this.endpoints_data = {
'DPID': [
- {'value': uni_a, 'editable':true, 'name':'uni_a'},
+ {'value': uni_a, 'editable':true, 'name':'uni_a'},
{'value': uni_z, 'editable':true, 'name':'uni_z'}],
- 'Node': [
- {'value': uni_a_data['node_name']},
+ 'Node': [
+ {'value': uni_a_data['node_name']},
{'value': uni_z_data['node_name']}],
- 'Interface': [
- {'value': uni_a_data['interface_name']},
+ 'Interface': [
+ {'value': uni_a_data['interface_name']},
{'value': uni_z_data['interface_name']}],
- 'Port':[
- {'value': uni_a_data['port_name']},
+ 'Port':[
+ {'value': uni_a_data['port_name']},
{'value': uni_z_data['port_name']}]
};
// Tag is optional, but can be edited
- let tag_a = {'value': this.circuit['uni_a']['tag'] ? JSON.stringify(this.circuit['uni_a']['tag']['value']) : "",
- 'editable':true,
+ let tag_a = {'value': this.circuit['uni_a']['tag'] ? JSON.stringify(this.circuit['uni_a']['tag']['value']) : "",
+ 'editable':true,
'name':'tag_a'};
- let tag_z = {'value': this.circuit['uni_z']['tag'] ? JSON.stringify(this.circuit['uni_z']['tag']['value']) : "",
- 'editable':true,
+ let tag_z = {'value': this.circuit['uni_z']['tag'] ? JSON.stringify(this.circuit['uni_z']['tag']['value']) : "",
+ 'editable':true,
'name':'tag_z'};
this.endpoints_data['VLAN'] = [tag_a, tag_z];
@@ -527,7 +527,7 @@ module.exports = {
this.links = {"Primary links": data['primary_links'],
"Backup links": data['backup_links']
};
-
+
this.circuit_scheduler = data['circuit_scheduler'];
this.constraints = {
@@ -589,7 +589,7 @@ module.exports = {
}
if(sw.interfaces) {
$.each(sw.interfaces, function(j , k_interface) {
- // store interface name data
+ // store interface name data
let metadata = k_interface.metadata;
_interface_data[k_interface.id] = {
"name": k_interface.name,
@@ -626,7 +626,7 @@ module.exports = {
buildPathConstraintsView: function(data) {
/**
- * Build path constraint data for exibition
+ * Build path constraint data for exibition
* (primary and secondary constraints paths).
* Parameter:
* constraints_data: json with path constraint data
@@ -664,7 +664,7 @@ module.exports = {
'spf_max_path_cost': data['spf_max_path_cost'],
'minimum_flexible_hits': data['minimum_flexible_hits'],
};
-
+
if(data['mandatory_metrics']) {
_constraint.mandatory_metrics = {
'bandwidth': data['mandatory_metrics']['bandwidth'],
@@ -681,7 +681,7 @@ module.exports = {
'delay': '', 'reliability': '', 'ownership': '',
'not_ownership': [],
};
- }
+ }
if(data['flexible_metrics']) {
_constraint.flexible_metrics = {
'bandwidth': data['flexible_metrics']['bandwidth'],
@@ -724,7 +724,7 @@ module.exports = {
link_name = ("link_name" in _data) ? _data["link_name"] : "";
port_name = ("port_name" in _data) ? _data["port_name"] : "";
}
-
+
let result = {
"dpid": dpid,
"node_name": node_name,
@@ -773,7 +773,7 @@ module.exports = {
let payload = {
name: this.basics["Name"]["value"],
enabled: this.flags["Enabled"]["value"],
- dynamic_backup_path: this.flags["Dynamic backup path"]["value"],
+ dynamic_backup_path: this.flags["Dynamic backup path"]["value"],
sb_priority: parseInt(this.others["Southbound priority"]["value"]) || null,
bandwidth: parseInt(this.others["Bandwidth"]["value"]) || 0,
queue_id: parseInt(this.others["Queue"]["value"]),
@@ -785,7 +785,7 @@ module.exports = {
interface_id: this.endpoints_data["DPID"][1]["value"],
},
};
-
+
// Tag is optional
if(this.endpoints_data["VLAN"][0]["value"]) {
payload["uni_a"]["tag"] = {
@@ -801,7 +801,7 @@ module.exports = {
}
['primary_constraints', 'secondary_constraints'].forEach(_type => {
- let _constraint_payload = {};
+ let _constraint_payload = {};
// Dropdown forms
if(this.constraints[_type].undesired_links !== undefined && this.constraints[_type].undesired_links.length > 0) {
_constraint_payload.undesired_links = [].concat(
@@ -856,7 +856,6 @@ module.exports = {
});
payload[_type] = _constraint_payload;
});
- $payload = payload;
var request = $.ajax({
url: this.$kytos_server_api + "kytos/mef_eline/v2/evc/" + id,
@@ -901,7 +900,7 @@ module.exports = {
// Make the panel fill the screen except the left menu width
$('.k-info-panel:has(.mef_circuit_container)').addClass('mef-k-info-panel');
-
+
this.$kytos.dpids = this.dpids;
}
['primary_constraints', 'secondary_constraints'].forEach( s => {
@@ -939,7 +938,7 @@ module.exports = {
| |
---|
|