cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pran...@apache.org
Subject git commit: refs/heads/master - CLOUDSTACK-1539:Editing any parameter in the Network UI results in implementation of IP Reservation.
Date Tue, 12 Mar 2013 14:09:16 GMT
Updated Branches:
  refs/heads/master 594bb9b5a -> 9abb4d5f4


CLOUDSTACK-1539:Editing any parameter in the Network UI results in implementation of IP Reservation.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/9abb4d5f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/9abb4d5f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/9abb4d5f

Branch: refs/heads/master
Commit: 9abb4d5f4b9a5afca7be1ffa17c005a9e6ede3a2
Parents: 594bb9b
Author: Pranav Saxena <pranav.saxena@citrix.com>
Authored: Tue Mar 12 19:38:46 2013 +0530
Committer: Pranav Saxena <pranav.saxena@citrix.com>
Committed: Tue Mar 12 19:38:46 2013 +0530

----------------------------------------------------------------------
 ui/scripts/network.js |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/9abb4d5f/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index 6fcd460..2353a03 100755
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -629,8 +629,20 @@
 										  networkdomain: args.data.networkdomain
 										});
 									} 
+                                   
+                  var oldcidr;
+                   $.ajax({
+                    url: createURL("listNetworks&id=" + args.context.networks[0].id ),
+                    dataType: "json",
+                    async: false,
+                    success: function(json) {
+                       oldcidr = json.listnetworksresponse.network[0].cidr;
+                 
+                                }
+                          });
+
 
-                 if(args.data.cidr !="" ){
+                 if(args.data.cidr !="" && args.data.cidr != oldcidr ){
                                           $.extend(data, {
                                                               guestvmcidr: args.data.cidr
                                            });


Mime
View raw message