- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Option List for OpenStack Service Plan & Security ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2023 06:26 AM
02-08-2023 06:26 AM
Option List for OpenStack Service Plan & Security Groups
Hi,
I am trying to create option lists for service plans & security groups in an openstack environment. I am using the same for VMware environment as well which is working fine. For OpenStack, it does not load the service plans & security groups.
Dependent field is cloud input fieldname.
Service Plans
if (input.cloudlist && input.grouplist) {
results.zoneId = input.cloudlist
results.siteId = input.grouplist
results.provisionTypeCode = “openstack”
}
Translation script
for (var x = 0; x < data.length; x++) {
results.push({name: data.name,value:data.id});
}
**
**
if (input.cloudlist && input.grouplist) {
results.cloudId = input.cloudlist
results.groupId = input.grouplist
}
Translation
if (input.cloudlist && input.grouplist) {
for (var x = 0; x < data.length; x++) {
results.push({name: data.name,value:data.externalId});
}
}
- Tags:
- option-lists
- Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 01:17 AM
02-09-2023 01:17 AM
Re: Option List for OpenStack Service Plan & Security Groups
it’s working for me and I have recorded the same, please check if it helps you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 12:12 AM
02-09-2023 12:12 AM
Re: Option List for OpenStack Service Plan & Security Groups
I tried this as well but not working. The same works for VMware without issues.
Also I think we need to put all the parameters in request script, only the required ones are must.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2023 07:18 AM
02-08-2023 07:18 AM
Re: Option List for OpenStack Service Plan & Security Groups
Try it with Openstack (uppercase O)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 03:38 PM
02-09-2023 03:38 PM
Re: Option List for OpenStack Service Plan & Security Groups
Dependent field is looking for the customOption field name. Unless you have a customOption/Input on your form with the field name clouds, you are not refreshing that list off of a cloud selection. Looks like from your above you are needing to make it dependent on fnZones?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 07:31 PM
02-09-2023 07:31 PM
Re: Option List for OpenStack Service Plan & Security Groups
I have custom option for cloud and fieldname for the same in “clouds” (<%=customOptions.clouds%>). It does a refresh but did not find any service plan or security group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2023 06:57 AM
02-08-2023 06:57 AM
Re: Option List for OpenStack Service Plan & Security Groups
Service Plan
provisionTypeCode should be in number.
you can get it from /api/provision-types?code=openstack.
Security Groups
request script should have the below
results.siteId = input.fnGroups
results.zoneId = input.fnZones
results.poolId = input.fnResourcePools
results.networkId = input.fnNetworks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 02:41 AM
02-09-2023 02:41 AM
Re: Option List for OpenStack Service Plan & Security Groups
@vsenthilkarasu
Doing it the same way but still it does not load the value. I am putting the cloud input fieldname as the dependent filed