<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Ramon,<br>
<br>
I tested that and all the problems reported on #1008 are still
there.<br>
<br>
I create a VEPA network with eth0 and eth1:<br>
<br>
<img src="cid:part1.124759B9.C954606C@linux.vnet.ibm.com" alt=""><br>
<br>
While editing it, all the interfaces are checked;<br>
<br>
<img src="cid:part2.E0FA315B.D46EC317@linux.vnet.ibm.com" alt=""><br>
<br>
Also some in use interfaces are also listed and they should be not.<br>
<br>
<div class="moz-cite-prefix">On 10/06/2016 02:36 PM, Ramon Medeiros
wrote:<br>
</div>
<blockquote
cite="mid:1475775404-32346-1-git-send-email-ramonn@linux.vnet.ibm.com"
type="cite">
<pre wrap="">The javascript was iterating a dict without any propose, and copying the
same objects inside of it. Just remove the iteration and adequate the
correct vars.
Signed-off-by: Ramon Medeiros <a class="moz-txt-link-rfc2396E" href="mailto:ramonn@linux.vnet.ibm.com"><ramonn@linux.vnet.ibm.com></a>
---
ui/js/src/kimchi.network_edit_main.js | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/ui/js/src/kimchi.network_edit_main.js b/ui/js/src/kimchi.network_edit_main.js
index 4dd830a..ab1e285 100644
--- a/ui/js/src/kimchi.network_edit_main.js
+++ b/ui/js/src/kimchi.network_edit_main.js
@@ -93,16 +93,10 @@ kimchi.setupNetworkFormEventForEdit = function(network) {
var loadIfaces = function(interfaceFilterArray){
var buildInterfaceOpts = function(result) {
- var currentIfaces = network['interfaces'];
- for (var i = 0; i < currentIfaces.length; i++) {
- kimchi.getInterface(currentIfaces[i], function(iface) {
- result.push(iface);
- } , null, true);
- }
kimchi.createInterfacesOpts(result, interfaceFilterArray);
- for (var i = 0; i < currentIfaces.length; i++) {
- $("#networkDestinationID option[value='" + currentIfaces[i] + "']").attr('selected','selected');
+ for (var i = 0; i < result.length; i++) {
+ $("#networkDestinationID option[value='" + result[i]["name"] + "']").attr('selected','selected');
}
$('#networkDestinationID').selectpicker('refresh');
};
</pre>
</blockquote>
<br>
</body>
</html>