You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2012/07/23 19:49:19 UTC

[4/15] git commit: Remove dummy VPC UI from networks section

Remove dummy VPC UI from networks section


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

Branch: refs/heads/vpc
Commit: 152b17b7f399acc0667845a137f3a4610292f774
Parents: 67bc9c8
Author: Brian Federle <br...@citrix.com>
Authored: Fri Jul 20 14:05:44 2012 -0700
Committer: Brian Federle <br...@citrix.com>
Committed: Fri Jul 20 14:05:44 2012 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/152b17b7/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index 6699d16..ed621d0 100644
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -177,7 +177,7 @@
           }
         });
 
-        var sectionsToShow = ['networks', 'vpc'];
+        var sectionsToShow = ['networks'];
         if(havingSecurityGroupNetwork == true)
           sectionsToShow.push('securityGroups');
 
@@ -3179,91 +3179,6 @@
             }
           }
         }
-      },
-      vpc: {
-        type: 'select',
-        title: 'VPC',
-        id: 'vpc',
-        listView: {
-          id: 'vpc',
-          label: 'VPC',
-          fields: {
-            name: { label: 'Name' },
-            zone: { label: 'Zone' },
-            cidr: { label: 'CIDR' }
-          },
-          dataProvider: function(args) {
-            args.response.success({
-              data: [
-                {
-                  name: 'VPC 1',
-                  zone: 'San Jose',
-                  cidr: '0.0.0.0/0',
-                  networkdomain: 'testdomain',
-                  accountdomain: 'testdomain'
-                },
-                {
-                  name: 'VPC 2',
-                  zone: 'San Jose',
-                  cidr: '0.0.0.0/0',
-                  networkdomain: 'testdomain',
-                  accountdomain: 'testdomain'
-                },
-                {
-                  name: 'VPC 3',
-                  zone: 'Cupertino',
-                  cidr: '0.0.0.0/0',
-                  networkdomain: 'testdomain',
-                  accountdomain: 'testdomain'
-                },
-                {
-                  name: 'VPC 4',
-                  zone: 'San Jose',
-                  cidr: '0.0.0.0/0',
-                  networkdomain: 'testdomain',
-                  accountdomain: 'testdomain'
-                }
-              ]
-            });
-          },
-          actions: {
-            add: {
-              label: 'Add VPC',
-              createForm: {
-                title: 'Add new VPC',
-                fields: {
-                  name: { label: 'Name', validation: { required: true } },
-                  zone: {
-                    label: 'Zone',
-                    validation: { required: true },
-                    select: function(args) {
-                      args.response.success({
-                        data: [
-                          { id: 'zone1', description: 'Zone 1' },
-                          { id: 'zone2', description: 'Zone 2' },
-                          { id: 'zone3', description: 'Zone 3' }
-                        ]
-                      });
-                    }
-                  }
-                }
-              },
-              messages: {
-                notification: function(args) { return 'Add new VPC'; }
-              },
-              action: function(args) {
-                args.response.success();
-              },
-              notification: { poll: function(args) { args.complete(); } }
-            },
-            editVpc: {
-              label: 'Edit VPC',
-              action: {
-                custom: cloudStack.uiCustom.vpc(cloudStack.vpc)
-              }
-            }
-          }
-        }
       }
     }
   };