Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3723,6 +3723,10 @@ public NetworkOffering createNetworkOffering(CreateNetworkOfferingCmd cmd) {
throw new InvalidParameterValueException("Invalid value for Availability. Supported types: " + Availability.Required + ", " + Availability.Optional);
}

if (networkRate != null && networkRate < 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is networkRate == null a valid value?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. it means that networkRate parameter is not passed and networkRate for this offering will be taken from other global settings

networkRate = 0;
}

Long serviceOfferingId = cmd.getServiceOfferingId();

if (serviceOfferingId != null) {
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.