mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-30 22:50:10 +03:00
Feature #4215: Remove reservation from the topology
This commit is contained in:
parent
47c7d8f38b
commit
546301463c
@ -131,6 +131,10 @@ define(function(require) {
|
||||
var vnet = element.VNET;
|
||||
var vnetId = vnet.ID;
|
||||
|
||||
if (vnet.PARENT_NETWORK_ID.length > 0){
|
||||
vnetId = vnet.PARENT_NETWORK_ID;
|
||||
}
|
||||
|
||||
// VNet node
|
||||
// ----------------
|
||||
|
||||
@ -138,22 +142,14 @@ define(function(require) {
|
||||
|
||||
var group = "vnet";
|
||||
|
||||
if (vnet.PARENT_NETWORK_ID.length > 0){
|
||||
group = "reservation";
|
||||
|
||||
edges.push({
|
||||
from: "vnet"+vnet.PARENT_NETWORK_ID,
|
||||
to: vnetNodeId,
|
||||
dashes: true,
|
||||
color: "#0098c3"
|
||||
});
|
||||
if (!nodeIndex[vnetNodeId]){
|
||||
nodeIndex[vnetNodeId] = true;
|
||||
nodes.push({
|
||||
id: vnetNodeId,
|
||||
label: " VNet "+vnet.NAME + " ", // Spaces for padding, no other reason
|
||||
group: group});
|
||||
}
|
||||
|
||||
nodes.push({
|
||||
id: vnetNodeId,
|
||||
label: " VNet "+vnet.NAME + " ", // Spaces for padding, no other reason
|
||||
group: group});
|
||||
|
||||
// VRouter nodes
|
||||
// ----------------
|
||||
|
||||
@ -291,18 +287,6 @@ define(function(require) {
|
||||
color: "#fff"
|
||||
}
|
||||
},
|
||||
reservation: {
|
||||
shape: 'box',
|
||||
color: {
|
||||
border: "#007a9c",
|
||||
background: "#0098c3",
|
||||
hover: "#007a9c",
|
||||
highlight: "#007a9c"
|
||||
},
|
||||
font: {
|
||||
color: "#fff"
|
||||
}
|
||||
},
|
||||
vr: {
|
||||
shape: 'circle',
|
||||
color: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user