Commit Graph

3055 Commits

Author SHA1 Message Date
Brian Federle 431b8fe708 CS-15753:
Re-enable 'view all ip addresses' link on tier details.

--this was disabled previously due to a bug in the VPC widget, which
  is also fixed with this commit.
2012-07-30 15:10:48 -07:00
Brian Federle c10850e434 Add license header to tagger widget 2012-07-30 14:32:14 -07:00
Brian Federle 587189e302 CS-15726: Use custom validation for tagger widget
Show a generic dialog box for tagger validation, instead of using
jQuery validate

--it conflicted with the detail view's edit fields and prevented
submission unless the key and value fields were filled out.
2012-07-30 14:29:55 -07:00
Pranav Saxena 07344c7643 Merge branch '3.0.x' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 3.0.x 2012-07-31 02:06:04 +05:30
Pranav Saxena 2388bd8f82 CS-15044:API changes to provide UI option to view the list of instances which are part of the guestnetwork is not availble 2012-07-31 02:02:17 +05:30
Brian Federle 665829703f Clean up indentation/whitespace for autoscaler UI code 2012-07-30 11:08:04 -07:00
Brian Federle c11aab3c7e Merge Autoscaler UI implemetation
This change includes the new dialog box for the CloudStack Autoscaler
implementation. It is accessible by a button ('Autoscaler') that
appears under each LB rule.

This also contains changes to the multiEdit widget to support features
required for Autoscaler:

-Fixes context/data passing to custom button widgets
-Fixes data retrieval for select fields
2012-07-30 11:08:04 -07:00
Pranav Saxena 691dc9066f Merge branch '3.0.x' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 3.0.x 2012-07-30 17:54:08 +05:30
Pranav Saxena ac3dca4f6a CS-15746: S2S VPN: vpn connection details page does not show the vpn connection state 2012-07-30 17:51:31 +05:30
Koushik Das bb17d09e01 Support for local data disk (part 2)
- Zone level config to enable/disable local storage usage for service and disk offerings.
- Local storage gets discovered when a host is added/reconnected if zone level config is enabled. When disabled existing local storages are not removed but any new local storage is not added.
- Deploy VM command validates service and disk offerings based on local storage config.
- Upgrade uses the global config 'use.local.storage' to set the zone level config for local storage.

Reviewed-by: Abhi, Nitin
2012-07-30 13:59:14 +05:30
Pranav Saxena 05f4690807 Merge branch '3.0.x' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 3.0.x 2012-07-30 10:34:34 +05:30
Pranav Saxena 8ac846dcb3 CS-15720:S2S VPN: Adding vpn conenction is on customer gateway rather than in vpn connection page 2012-07-30 10:31:51 +05:30
Sanjay Tripathi 4afd85a930 Merge branch '3.0.x' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 3.0.x 2012-07-27 17:52:29 +05:30
Sanjay Tripathi a2e71a1add CS-15700: Not able to view Guest Network unable to view or add guest IPs from UI 2012-07-27 17:46:29 +05:30
Pranav Saxena a37e2d461c CS-15720 :S2S VPN Front end development: Adding vpn connection is on customer gateway rather than in vpn connection page 2012-07-27 17:44:01 +05:30
Brian Federle 5bde60743b VPC UI: IP address configuration fix
After acquiring a new IP, immeditaly clicking on its configuration tab
will show an enabled firewall, which is incorrect. This fix always
disables the firewall if in a VPC network.
2012-07-26 16:13:35 -07:00
Jessica Wang f9edca800c CS-15687: cloudstack 3.0 UI - zone wizard - change timer setting for adding netcaler provider. 2012-07-26 16:01:46 -07:00
Brian Federle f8bfead038 Cleanup formatting/whitespace 2012-07-26 15:38:56 -07:00
Brian Federle 099af7c283 Disable listView filters for PF/LB/Static NAT 2012-07-26 15:36:53 -07:00
Brian Federle 3d8f17119e Networks section: Only show VPC dropdown for Advanced zones 2012-07-26 15:21:52 -07:00
Brian Federle 3d2d1a2efc VPC tier UI: Fix loading state for other actions
Fix actions other than the add VM action, whose loading state was
never removed
2012-07-26 14:41:53 -07:00
Brian Federle dafbdcb838 VPC UI: Better launch VM loading state for tiers
When launching a VM via the 'add VM' button on a VPC tier, show
loading icon to the side of the VM count, so that the tier area isn't
blocked, allowing the user to add more VMs or do other actions to the
tier.
2012-07-26 14:32:10 -07:00
Koushik Das 266b8e5ee8 Support for local data disk (part 1)
Following changes are made:
- Create disk offering API now takes an extra parameter to denote storage type (local or shared). This is similar to storage type in service offering.
- Create/delete of data volume on local storage
- Attach/detach for local data volumes. Re-attach is allowed as long as vm host and data volume storage pool host is same.
- Migration of VM instance is not supported if it uses local root or data volumes.
- Migrate is not supported for local volumes.

Reviewed-by: Abhi
2012-07-25 15:16:42 +05:30
Brian Federle d202a491b6 Add tags to FW rule multi-edit 2012-07-24 15:21:54 -07:00
Pranav Saxena 17268517bb Merge branch '3.0.x' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 3.0.x 2012-07-25 03:12:28 +05:30
Pranav Saxena 109490c406 TAGS feature implementation throughout CloudStack UI 2012-07-25 03:11:30 +05:30
Brian Federle c30eb2fd75 Notifications widget: support custom interval
If 'interval' attribute is passed in notification object, use that
interval instead of the default.
2012-07-24 14:02:48 -07:00
Brian Federle eb68b40e7f Add tag UI support for VPC resource types:
-        Vpc,
-        NetworkACL,
-        StaticRoute
2012-07-24 13:58:07 -07:00
Brian Federle c67ca89abc Fix tag widget being appended to all dialogs 2012-07-24 13:58:07 -07:00
Brian Federle 7b05172473 Fix tag notification messages 2012-07-24 12:18:41 -07:00
Brian Federle c9b8d3a080 Add tags to edit PF dialog 2012-07-24 12:12:09 -07:00
Brian Federle fe3454bb61 Add tag edit to LB rule 2012-07-24 11:50:33 -07:00
Brian Federle cca7a2010c multiEdit: Pass context to tagger widget 2012-07-24 11:50:33 -07:00
Brian Federle 7ca481f4ea Always make tags editable 2012-07-24 11:21:58 -07:00
Brian Federle e2750d8c76 Pass projectId to listTags, when viewing a project resource 2012-07-24 11:16:49 -07:00
bfederle 622206bf44 Implement tags for project detail view 2012-07-23 15:05:00 -07:00
bfederle dc93651547 UI: Add tag API call generator
Adds a helper to return an object to pass to the 'tagger' widget,
including all required data and action functions.

Syntax is as follows, just include anywhere were the tags widget is
supported:

tags: cloudStack.api.tags({
  resourceType: 'Project',
  contextId: 'projects'
})
2012-07-23 15:04:43 -07:00
bfederle 9d3c694601 Tag UI: Make sure data is passed to remove action 2012-07-23 15:03:03 -07:00
bfederle d23a829c2e Fix tags widget overlap with long detail views 2012-07-23 13:59:20 -07:00
bfederle ebabb15105 Implement tag UI widget
Create UI for handling new tag API. This currently supports the detail view and multi-edit

To enable tags UI, add a 'tags' object to each detailView/multiEdit configuration:

tabs: {
...
details: {
...

tags: {
  actions: {
    add: function(args) {
      setTimeout(function() {
        args.response.success({
          notification: {
            desc: 'Add tags for instance',
            poll: testData.notifications.testPoll
          }
        });
      }, 500);
    },

    remove: function(args) {
      args.response.success({
        notification: {
          desc: 'Remove tags for instance',
          poll: testData.notifications.testPoll
        }
      });
    }
  },
  dataProvider: function(args) {
    args.response.success({
      data: [
        {
          id: '1',
          key: 'user',
          value: 'brian'
        },
        {
          id: '2',
          key: 'region',
          value: 'usa'
        }
      ]
    });
  }
}

...
2012-07-23 13:59:20 -07:00
Jessica Wang 3133f8bf9b cloudstack 3.0 UI - VPN Customer Gateway - Create VPN Connection action - if selected VPC does not have a VPN gateway, action won't proceed. 2012-07-20 12:59:43 -07:00
Jessica Wang 9dfe6eaf53 cloudstack 3.0 UI - VPN Customer Gateway - detailView - add new action "Create VPN Connection". 2012-07-20 11:05:44 -07:00
Jessica Wang 8f11a882e0 cloudstack 3.0 UI - site to site VPN - VPN Gateway - implement Add VPN Gateway action. 2012-07-19 17:40:58 -07:00
Jessica Wang 1fc67e4990 cloudstack 3.0 UI - site to site VPN - VPN Gateway - implement Delete VPN Gateway action. 2012-07-19 16:55:44 -07:00
Jessica Wang 56bbb6c5ae cloudstack 3.0 UI - VPN Customer Gateway - implement Delete VPN Customer Gateway action. 2012-07-19 16:45:35 -07:00
Jessica Wang 343a587cfd cloudstack 3.0 UI - VPN Customer Gateway - implement Add VPN Customer Gateway action. 2012-07-19 16:37:05 -07:00
Jessica Wang b08e3a0fc4 cloudstack 3.0 UI - site to site VPN - VPN connection - when delete action is clicked, only call deleteVpnConnection API (no calling deleteVpnCustomerGateway any more). 2012-07-19 16:20:58 -07:00
Jessica Wang 4114b1cce7 cloudstack 3.0 UI - network page - add new section "VPN customer gateway". 2012-07-19 16:09:34 -07:00
Jessica Wang 7825e82260 cloudstack 3.0 UI - VPC - site to site VPN - add new section "Customer Gateway". 2012-07-19 15:36:42 -07:00
Brian Federle ce536daffa CS-15619: Concatenate long tier names, to prevent overlap 2012-07-19 14:31:23 -07:00
Jessica Wang bcaa706197 cloudstack 3.0 UI - call getExtaPropertiesForIpObj() to get extra properties for IP Address object when every time it's refreshed by listPublicIpAddresses API call. 2012-07-19 11:21:04 -07:00
Jessica Wang de4d5cdc94 cloudstack 3.0 UI - multiEdit widget - make headerFields hidden as default. 2012-07-18 11:40:09 -07:00
Jessica Wang a4f1ecff64 cloudstack 3.0 UI - Guest Network section - detailView - add VPC ID field. 2012-07-18 11:33:41 -07:00
bfederle c69da45217 UI: Implement tagging widget
Implement a special form on input text field, for handling tag-based
fields. This will tags as a set of list items, which can be removed
and added to. This is for any comma-delimited field.

Currently, this is only supported on detail view widgets, by adding
'isTag: true' as a new attribute for any tag field. Tags are modified
when clicking the 'edit' action.
2012-07-18 11:33:12 -07:00
Jessica Wang ba7d0ba4f9 cloudstack 3.0 UI - "listPublicIpAddresses&id=N" API has been fixed to return a record. Here is related UI change. 2012-07-18 11:13:13 -07:00
Jessica Wang 3c58197de2 cloudstack 3.0 UI - VPC - add LB rule - fix a JS error "args.context.networks is undefined" when configure stickiness. 2012-07-18 10:40:40 -07:00
Jessica Wang 86fee33b41 cloudstack 3.0 UI - bypass an error caused by "listPublicIpAddresses&id=N" API until it is fixed to correctly return a record. 2012-07-17 16:40:06 -07:00
Jessica Wang e1e7780efc cloudstack 3.0 UI - multiEdit widget - make headerFields shown as default for now until "listPublicIpAddresses&id=N" API is fixed to return an object. 2012-07-17 15:51:51 -07:00
Jessica Wang 140768c82b cloudstack 3.0 UI - multiEdit widget - make headerFields hidden as default. 2012-07-17 15:42:01 -07:00
Jessica Wang 32fe57aa77 cloudstack 3.0 UI - VPC - IP Address - after a Port Forwarding rule is added, hide tier dropdown. 2012-07-17 15:22:50 -07:00
Jessica Wang f43a92a2af cloudstack 3.0 UI - VPC - IP Address - after a LB rule is added, hide tier dropdown. 2012-07-17 15:12:46 -07:00
bfederle 843b3dceaf CS-15572: Fix page index for list view filters
This fixes an issue where the page index is not reset back 1 when
activating the search or filter functionality, causing truncation when
trying to scroll down to later pages.
2012-07-17 11:38:56 -07:00
Jessica Wang d4f8d3b3a4 cloudstack 3.0 UI - network page - Guest Network section - select a VPC network - IP Address' configuration chart will be the same as the one from VPC section. 2012-07-16 17:05:39 -07:00
Jessica Wang b3aad47570 cloudstack 3.0 UI - VPC - private gateway - make root-admin able to see private gateways created by other people. 2012-07-16 16:06:57 -07:00
Jessica Wang 13fd9c9774 cloudstack 3.0 UI - VPC - private gateway - only root-admin is allowed to delete a private gateway. 2012-07-16 16:00:53 -07:00
Jessica Wang 845569b121 cloudstack 3.0 UI - VPC - create private gateway action - make it async instead of sync. 2012-07-16 15:17:44 -07:00
Jessica Wang 38e0c4b31a cloudstack 3.0 UI - VPC - create VPC action - make it async instead of sync. 2012-07-16 14:07:42 -07:00
Jessica Wang a36fc7a9fa cloudstack 3.0 UI - IP Address page – if it comes from Guest Network section and it’s a VPC network, remove “Acquire IP” button. 2012-07-16 13:49:28 -07:00
Jessica Wang dcea0a70f9 cloudstack 3.0 UI - listView widget - pass context from caller function. 2012-07-16 13:49:26 -07:00
Jessica Wang d623ee3dee cloudstack 3.0 UI - network page - Guest Network section - create Guest Network - If selected network offering includes forvpc = true, show VPC dropdown. Otherwise, hide VPC dropdown. 2012-07-16 13:25:30 -07:00
Jessica Wang 5a1bca8213 cloudstack 3.0 UI - VPC - create network offering - when service(s) has VPC Virtual Router as provider, remove Firewall service, SecurityGroup service. 2012-07-16 11:03:17 -07:00
Jessica Wang a8c883ba53 cloudstack 3.0 UI - VPC - IP Address - PF, LB, EnableStaticNAT dialogbox - tier dropdown - list only tiers that support corresponding service. 2012-07-13 13:50:24 -07:00
Brian Federle 9c59082658 Add tier name to ACL and VM list dialogs 2012-07-13 13:39:47 -07:00
Jessica Wang c73b29b2ee cloudstack 3.0 UI - VPC - IP Address - Enable static NAT - no VM listing until a tier is selected. 2012-07-13 13:30:12 -07:00
Jessica Wang 32873b3c4e cloudstack 3.0 UI - VPC - tier - tier detail - hide View IP Addresses until JS error "$browser is undefined" is fixed. 2012-07-13 13:07:31 -07:00
Jessica Wang f0815df712 cloudstack 3.0 UI - VPC - tier - implement tier detail with edit, delete, restart action. 2012-07-13 11:28:34 -07:00
Jessica Wang c3a854faf2 cloudstack 3.0 UI - VPC - Gateways - pass listAll=true to listPrivateGateways API. 2012-07-12 16:28:48 -07:00
Jessica Wang 3671d8c490 cloudstack 3.0 UI - VPC - implement restart VPC action. 2012-07-12 16:10:43 -07:00
Jessica Wang 1a48773c50 cloudstack 3.0 UI - VPC - implement update VPC action. 2012-07-12 16:05:05 -07:00
Brian Federle 183beaa8c3 Rename editVpc->configureVpc, for clarity 2012-07-12 15:59:35 -07:00
Brian Federle 3267553af1 Detail view: Fix layout of text actions 2012-07-12 15:26:07 -07:00
Brian Federle 4d6b5e6183 Add edit VPC action to detail view 2012-07-12 15:21:19 -07:00
Brian Federle 5af48ea6cf Detail view UI: Support for text action buttons
Currently, only icons are rendered on detail view actions. This change
adds support for showing a text label next to specified actions, which
has a button appearance. This is to allow certain actions to be more
visible, in the case where an icon isn't clear enough.

To make an action have a text label, add a 'textLabel' attribute to
the action properties:

editVpc: {
  label: 'Edit VPC',

  // textLabel property
  textLabel: 'label.configure',

  action: {
    ...
  }
}
2012-07-12 15:18:06 -07:00
Jessica Wang 1753480ff8 cloudstack 3.0 UI - VPC - implement Delete VPC action. 2012-07-12 15:09:30 -07:00
Jessica Wang f1283f7bb1 cloudstack 3.0 UI - VPC - IP Addresses - Load Balancer - tier dropdown - if the IP is already associated with a tier, only populate that tier in the dropdown and hide the dropdown whose value will still be used later in listing VM dialog. 2012-07-12 14:28:47 -07:00
Jessica Wang 738c647612 cloudstack 3.0 UI - VPC - IP Addresses - Port Forwarding - tier dropdown - if the IP is already associated with a tier, only populate that tier in the dropdown and hide the dropdown whose value will still be used later in listing VM dialog. 2012-07-12 14:15:12 -07:00
Brian Federle b5ce813a94 VPC list view: Add text label for configure VPC action 2012-07-12 13:45:16 -07:00
Brian Federle 35d93a66ad List view UI: Support for text action buttons
Currently, only icons are rendered on list view actions. This change
adds support for showing a text label next to specified actions, which
has a button appearance. This is to allow certain actions to be more
visible, in the case where an icon isn't clear enough.

To make an action have a text label, add a 'textLabel' attribute to
the action properties:

editVpc: {
  label: 'Edit VPC',

  // textLabel property
  textLabel: 'label.configure',

  action: {
   ...
  }
}
2012-07-12 13:43:54 -07:00
Jessica Wang 4d5db13555 cloudstack 3.0 UI - VPC - IP Addresses - not pass vpcid to API call if it's undefined. 2012-07-12 11:41:39 -07:00
Jessica Wang 9c36ba1ac4 cloudstack 3.0 UI - network page - Guest Network section - list all networks including VPC and non-VPC ones. 2012-07-12 10:34:37 -07:00
Jessica Wang 86bbba39cd cloudstack 3.0 UI - VPC - tier - Add VM - zone dropdown - exclude Basic zones (since VPC is not supported in Basic zone). 2012-07-12 10:17:37 -07:00
Jessica Wang 16e0ccd4c0 cloudstack 3.0 UI - VPC - Enable StaticNat - tier dropdown - rename default option to be blank. 2012-07-11 16:55:40 -07:00
Brian Federle ca63738ec1 Forgot to re-add VPC ID filter to tier select 2012-07-11 16:29:53 -07:00
Jessica Wang 99c28a58f6 cloudstack 3.0 UI - VPC - gateways - regular user and domain admin are not allowed to Add Gateway. 2012-07-11 16:27:23 -07:00
Brian Federle 7de7b86870 Static NAT UI: Have tier dropdown filter VMs
On VM select list view for static NAT, tier selection will filter the
VM listing by tier (networkid).

By default, VMs for all tiers are shown, until the drop-down is changed.
2012-07-11 16:19:57 -07:00
Brian Federle 9b1395ec0f List view widget: Pass $listView object to dataProvider 2012-07-11 16:19:57 -07:00
Jessica Wang d0b8e59ab4 cloudstack 3.0 UI - VPC - create tier dialog - check all tiers under the VPC. If any of them includes LB service, exclude network offering including LB service from network offering dropdown. 2012-07-11 16:00:48 -07:00
Jessica Wang 76b8407b69 cloudstack 3.0 UI - VPC - gateways - implement Remove Gateway action. 2012-07-11 15:16:18 -07:00
Jessica Wang b727c58497 cloudstack 3.0 UI - VPC - gateways - static route - implement Remove action. 2012-07-11 14:51:19 -07:00
Jessica Wang 37786a8325 cloudstack 3.0 UI - VPC - gateways - static route - implement Add action. 2012-07-11 14:42:23 -07:00