mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-9805: Display VR list in network details
Displays a VR tab that lists VRs for the network in the detail views for isolated networks, shared networks and for VPCs. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
9bf428162d
commit
0ddcf0b175
|
|
@ -1818,7 +1818,6 @@
|
|||
<script type="text/javascript" src="scripts/ui-custom/securityRules.js"></script>
|
||||
<script type="text/javascript" src="scripts/ui-custom/vpc.js"></script>
|
||||
<script type="text/javascript" src="scripts/vpc.js"></script>
|
||||
<script type="text/javascript" src="scripts/network.js"></script>
|
||||
<script type="text/javascript" src="scripts/ui-custom/recurringSnapshots.js"></script>
|
||||
<script type="text/javascript" src="scripts/ui-custom/uploadVolume.js"></script>
|
||||
<script type="text/javascript" src="scripts/storage.js"></script>
|
||||
|
|
@ -1833,6 +1832,7 @@
|
|||
<script type="text/javascript" src="scripts/ui-custom/physicalResources.js"></script>
|
||||
<script type="text/javascript" src="scripts/ui-custom/zoneWizard.js"></script>
|
||||
<script type="text/javascript" src="scripts/system.js"></script>
|
||||
<script type="text/javascript" src="scripts/network.js"></script>
|
||||
<script type="text/javascript" src="scripts/domains.js"></script>
|
||||
<script type="text/javascript" src="scripts/docs.js"></script>
|
||||
<script type="text/javascript" src="scripts/vm_snapshots.js"></script>
|
||||
|
|
|
|||
|
|
@ -1194,6 +1194,10 @@
|
|||
hiddenTabs.push('egressRules');
|
||||
}
|
||||
|
||||
if (!isAdmin()) {
|
||||
hiddenTabs.push("virtualRouters");
|
||||
}
|
||||
|
||||
return hiddenTabs;
|
||||
},
|
||||
|
||||
|
|
@ -1892,6 +1896,11 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
virtualRouters: {
|
||||
title: "label.virtual.appliances",
|
||||
listView: cloudStack.sections.system.subsections.virtualRouters.sections.routerNoGroup.listView
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5738,8 +5747,10 @@
|
|||
tabFilter: function(args) {
|
||||
var hiddenTabs = [];
|
||||
var isRouterOwner = isAdmin();
|
||||
if (!isRouterOwner)
|
||||
if (!isRouterOwner) {
|
||||
hiddenTabs.push("router");
|
||||
hiddenTabs.push("virtualRouters");
|
||||
}
|
||||
return hiddenTabs;
|
||||
},
|
||||
|
||||
|
|
@ -5905,6 +5916,10 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
virtualRouters: {
|
||||
title: "label.virtual.routers",
|
||||
listView: cloudStack.sections.system.subsections.virtualRouters.sections.routerNoGroup.listView
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9769,6 +9769,16 @@
|
|||
domainid: args.context.routerGroupByAccount[0].domainid
|
||||
})
|
||||
}
|
||||
if ("networks" in args.context) {
|
||||
$.extend(data2, {
|
||||
networkid: args.context.networks[0].id
|
||||
})
|
||||
}
|
||||
if ("vpc" in args.context) {
|
||||
$.extend(data2, {
|
||||
vpcid: args.context.vpc[0].id
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
var routers =[];
|
||||
|
|
|
|||
Loading…
Reference in New Issue