From: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>
When create a network, start it and then stop it. It report this is
not a persistent network, it will delete it.
This is not right.
Every netowrk that kimchi create is persistent at present.
Js code should set the persistent attribute of network after a create
action.
Signed-off-by: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>
---
ui/js/src/kimchi.network.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/ui/js/src/kimchi.network.js b/ui/js/src/kimchi.network.js
index 7bb3f98..cbd967f 100644
--- a/ui/js/src/kimchi.network.js
+++ b/ui/js/src/kimchi.network.js
@@ -195,6 +195,7 @@ kimchi.initNetworkCreation = function() {
network.state = result.state === "active" ? "up" :
"down";
network.interface = result.interface ? result.interface :
i18n["KCHNET6001M"];
network.addrSpace = result.subnet ? result.subnet :
i18n["KCHNET6001M"];
+ network.persistent = result.persistent;
kimchi.addNetworkItem(network);
$("#networkConfig").dialog("close");
});
--
1.9.3
Show replies by date
Applied. Thanks.
Regards,
Aline Manera