Improve invalid port ranges error message
Improve error message that is shown when port ranges are specified for protocols that don't support port ranges. Change-Id: I70ad9bd01f986efaed6682928cc5579c75bd4f6e Closes-Bug: #1815478 Signed-off-by: Andreas Karis <akaris@redhat.com>
This commit is contained in:
parent
5bcca13f4a
commit
eb857c8e9d
@ -41,8 +41,9 @@ class SecurityGroupInvalidPortRange(nexception.InvalidInput):
|
||||
|
||||
|
||||
class SecurityGroupInvalidProtocolForPortRange(nexception.InvalidInput):
|
||||
message = _("Invalid protocol %(protocol)s for port range, only "
|
||||
"supported for TCP, UDP, UDPLITE, SCTP and DCCP.")
|
||||
message = _("Port range cannot be specified for protocol %(protocol)s. "
|
||||
"Port range is only supported for "
|
||||
"TCP, UDP, UDPLITE, SCTP and DCCP.")
|
||||
|
||||
|
||||
class SecurityGroupInvalidPortValue(nexception.InvalidInput):
|
||||
|
Loading…
Reference in New Issue
Block a user