gds-operations/vcloud-core

It would be good to have validation of the form "optional, but if this then that"

Closed this issue · 3 comments

The 'original_port' setting for NAT rules is optional.

However, if you set a translated_port you also need to set an original_port. Our validation doesn't cover this, so you then get an unhelpful error from the vShield Edge if you accidentally forget one:

0:04  E, [2014-05-15T15:50:54.041789 #40884] ERROR -- : Could not update EdgeGateway d627d7c2-8e48-438e-9f77-98a7fb164ee9 : status: error, error: {:minorErrorCode=>"NETWORK_INTERNAL_SERVER", :message=>"Unable to perform this action. Contact your cloud administrator.", :majorErrorCode=>"500"}
E, [2014-05-15T15:50:54.041944 #40884] ERROR -- : status: error, error: {:minorErrorCode=>"NETWORK_INTERNAL_SERVER", :message=>"Unable to perform this action. Contact your cloud administrator.", :majorErrorCode=>"500"}

Raising this here because it potentially affects all gems. Could be in vCloud Edge Gateway instead.

This tool is no longer in active use and the repository will be archived so we're closing this pull request. Thank you for your interest and involvement in this project.