René's URL Explorer Experiment


Title: Add offering preset variables for `Network` and `VPC` Quota tariffs by hsato03 · Pull Request #11810 · apache/cloudstack · GitHub

Open Graph Title: Add offering preset variables for `Network` and `VPC` Quota tariffs by hsato03 · Pull Request #11810 · apache/cloudstack

X Title: Add offering preset variables for `Network` and `VPC` Quota tariffs by hsato03 · Pull Request #11810 · apache/cloudstack

Description: Description This PR adds two new preset variables for Network and VPC usage type Quota tariffs. For Network tariffs, the variables value.networkOffering.id and value.networkOffering.name have been created. For VPC tariffs, the variables value.vpcOffering.id and value.vpcOffering.name have been added. They represent the resource's offering ID and name, respectively. Types of changes Breaking change (fix or feature that would cause existing functionality to change) New feature (non-breaking change which adds functionality) Bug fix (non-breaking change which fixes an issue) Enhancement (improves an existing feature and functionality) Cleanup (Code refactoring and cleanup, that may add test cases) Build/CI Test (unit or integration test code) Feature/Enhancement Scale or Bug Severity Feature/Enhancement Scale Major Minor Bug Severity BLOCKER Critical Major Minor Trivial Screenshots (if appropriate): How Has This Been Tested? I created an isolated network and a VPC with the following offerings. Offering ID Name Network 30b8c61a-f75a-4b65-8ff3-52a20b179333 DefaultIsolatedNetworkOfferingWithSourceNatService VPC 2128acd0-9753-4e2a-8c99-2815da566873 Default VPC offering Then, I created a Network tariff (offering-test-network) with the following activation rule. if (value.networkOffering.id === '30b8c61a-f75a-4b65-8ff3-52a20b179333 && value.networkOffering.name === 'DefaultIsolatedNetworkOfferingWithSourceNatService') { 300 } else { 0 } Next, I created a VPC tariff (offering-test-vpc) with the following activation rule. if (value.vpcOffering.id === '2128acd0-9753-4e2a-8c99-2815da566873 && value.vpcOffering.name === 'Default VPC offering') { 500 } else { 0 } I called the quotaUpdate API and verified that the value 300 was returned by the offering-test-network activation rule, while offering-test-vpc returned 500. How did you try to break this feature and the system with this change?

Open Graph Description: Description This PR adds two new preset variables for Network and VPC usage type Quota tariffs. For Network tariffs, the variables value.networkOffering.id and value.networkOffering.name have been...

X Description: Description This PR adds two new preset variables for Network and VPC usage type Quota tariffs. For Network tariffs, the variables value.networkOffering.id and value.networkOffering.name have been...

Opengraph URL: https://github.com/apache/cloudstack/pull/11810

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits/:range(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:084b26ab-f0e5-d98c-998f-8ef6c3e0e283
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBE7A:1E0BA3:34F7073:463802E:6A6557C8
html-safe-nonce4c1f68ffd80149157c0010dfc075f72604de30d39985cfd67f209dd10cf8919e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTdBOjFFMEJBMzozNEY3MDczOjQ2MzgwMkU6NkE2NTU3QzgiLCJ2aXNpdG9yX2lkIjoiNzk2NjU3OTM0ODQzNDQwOTQxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac85498db7c4ffa4ec3f82be131fabbbaad42b99d8d6e44df2b7709a7ecc34288e
hovercard-subject-tagpull_request:2898820836
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9
twitter:imagehttps://avatars.githubusercontent.com/u/39202678?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/39202678?s=400&v=4
og:image:altDescription This PR adds two new preset variables for Network and VPC usage type Quota tariffs. For Network tariffs, the variables value.networkOffering.id and value.networkOffering.name have been...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/apache/cloudstack git https://github.com/apache/cloudstack.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id9759448
octolytics-dimension-repository_nwoapache/cloudstack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9759448
octolytics-dimension-repository_network_root_nwoapache/cloudstack
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release309153364422b3c499922d1a2a6404910a58ed8e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fpull%2F11810%2Fcommits%2F61715c42b39ef2ff919bf9311174fe90507ad0f9
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fpull%2F11810%2Fcommits%2F61715c42b39ef2ff919bf9311174fe90507ad0f9
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=apache%2Fcloudstack
Reloadhttps://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9
Reloadhttps://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9
Reloadhttps://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9
Please reload this pagehttps://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9
apache https://github.com/apache
cloudstackhttps://github.com/apache/cloudstack
Notifications https://github.com/login?return_to=%2Fapache%2Fcloudstack
Fork 1.4k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Star 3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Code https://github.com/apache/cloudstack
Issues 555 https://github.com/apache/cloudstack/issues
Pull requests 271 https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality 0 https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Code https://github.com/apache/cloudstack
Issues https://github.com/apache/cloudstack/issues
Pull requests https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fapache%2Fcloudstack%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fapache%2Fcloudstack%2Fissues%2Fnew%2Fchoose
winterhazelhttps://github.com/winterhazel
apache:mainhttps://github.com/apache/cloudstack/tree/main
scclouds:add-offering-to-network-and-vpc-presetshttps://github.com/scclouds/cloudstack/tree/add-offering-to-network-and-vpc-presets
Conversation 31 https://github.com/apache/cloudstack/pull/11810
Commits 6 https://github.com/apache/cloudstack/pull/11810/commits
Checks 28 https://github.com/apache/cloudstack/pull/11810/checks
Files changed https://github.com/apache/cloudstack/pull/11810/files
Please reload this pagehttps://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9
Add offering preset variables for Network and VPC Quota tariffs https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9#top
Show all changes 6 commits https://github.com/apache/cloudstack/pull/11810/files
e443959 Add offering preset variable to Network and VPC tariffs hsato03 Oct 8, 2025 https://github.com/apache/cloudstack/pull/11810/commits/e44395915b4a981723d7dba6cdd7a41c5ec7b7f5
30aab35 Resolve conflicts hsato03 Jan 19, 2026 https://github.com/apache/cloudstack/pull/11810/commits/30aab35ed63e840d5cf69a5c014eee1870c294b7
6df5728 Merge branch 'main' into add-offering-to-network-and-vpc-presets hsato03 Mar 11, 2026 https://github.com/apache/cloudstack/pull/11810/commits/6df572827528404d05f25f8e1825a4ff704250c3
d09628c Apply suggestions from code review hsato03 Mar 30, 2026 https://github.com/apache/cloudstack/pull/11810/commits/d09628c8e1dcce4db21a18b2b15dfb9c355af988
d3907fe Merge branch 'main' into add-offering-to-network-and-vpc-presets hsato03 Mar 30, 2026 https://github.com/apache/cloudstack/pull/11810/commits/d3907fe6d80a4c6502d65e488bcebd79a986059d
61715c4 Add tests hsato03 Mar 30, 2026 https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9
Clear filters https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9
Please reload this pagehttps://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9
Please reload this pagehttps://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9
Prev https://github.com/apache/cloudstack/pull/11810/commits/d3907fe6d80a4c6502d65e488bcebd79a986059d
Please reload this pagehttps://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9
https://github.com/hsato03
hsato03https://github.com/apache/cloudstack/commits?author=hsato03
.../org/apache/cloudstack/quota/activationrule/presetvariables/PresetVariableHelperTest.javahttps://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9#diff-0d6abcea30affe7388d00584d678283faa8517fabbd70ab3a5874bdff39d2f03
View file https://github.com/scclouds/cloudstack/blob/61715c42b39ef2ff919bf9311174fe90507ad0f9/framework/quota/src/test/java/org/apache/cloudstack/quota/activationrule/presetvariables/PresetVariableHelperTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/cloudstack/pull/11810/commits/{{ revealButtonHref }}
https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9#diff-0d6abcea30affe7388d00584d678283faa8517fabbd70ab3a5874bdff39d2f03
https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9#diff-0d6abcea30affe7388d00584d678283faa8517fabbd70ab3a5874bdff39d2f03
https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9#diff-0d6abcea30affe7388d00584d678283faa8517fabbd70ab3a5874bdff39d2f03
https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9#diff-0d6abcea30affe7388d00584d678283faa8517fabbd70ab3a5874bdff39d2f03
https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9#diff-0d6abcea30affe7388d00584d678283faa8517fabbd70ab3a5874bdff39d2f03
https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9#diff-0d6abcea30affe7388d00584d678283faa8517fabbd70ab3a5874bdff39d2f03
https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9#diff-0d6abcea30affe7388d00584d678283faa8517fabbd70ab3a5874bdff39d2f03
https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9#diff-0d6abcea30affe7388d00584d678283faa8517fabbd70ab3a5874bdff39d2f03
https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9#diff-0d6abcea30affe7388d00584d678283faa8517fabbd70ab3a5874bdff39d2f03
https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9#diff-0d6abcea30affe7388d00584d678283faa8517fabbd70ab3a5874bdff39d2f03
https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9#diff-0d6abcea30affe7388d00584d678283faa8517fabbd70ab3a5874bdff39d2f03
https://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9#diff-0d6abcea30affe7388d00584d678283faa8517fabbd70ab3a5874bdff39d2f03
Please reload this pagehttps://github.com/apache/cloudstack/pull/11810/commits/61715c42b39ef2ff919bf9311174fe90507ad0f9
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.