Merge "Constraint port property range from 0 to 655535"
This commit is contained in:
commit
6e8f3237a9
|
@ -664,7 +664,10 @@ class LoadBalancer(resource.Resource):
|
|||
PROTOCOL_PORT: properties.Schema(
|
||||
properties.Schema.INTEGER,
|
||||
_('Port number on which the servers are running on the members.'),
|
||||
required=True
|
||||
required=True,
|
||||
constraints=[
|
||||
constraints.Range(0, 65535),
|
||||
]
|
||||
),
|
||||
MEMBERS: properties.Schema(
|
||||
properties.Schema.LIST,
|
||||
|
|
|
@ -66,14 +66,20 @@ class SecurityGroup(neutron.NeutronResource):
|
|||
'security group rule. If the protocol is TCP or UDP, this '
|
||||
'value must be less than or equal to the value of the '
|
||||
'port_range_max attribute. If the protocol is ICMP, this '
|
||||
'value must be an ICMP type.')
|
||||
'value must be an ICMP type.'),
|
||||
constraints=[
|
||||
constraints.Range(0, 65535)
|
||||
]
|
||||
),
|
||||
RULE_PORT_RANGE_MAX: properties.Schema(
|
||||
properties.Schema.INTEGER,
|
||||
_('The maximum port number in the range that is matched by the '
|
||||
'security group rule. The port_range_min attribute constrains '
|
||||
'the port_range_max attribute. If the protocol is ICMP, this '
|
||||
'value must be an ICMP type.')
|
||||
'value must be an ICMP type.'),
|
||||
constraints=[
|
||||
constraints.Range(0, 65535)
|
||||
]
|
||||
),
|
||||
RULE_PROTOCOL: properties.Schema(
|
||||
properties.Schema.STRING,
|
||||
|
|
Loading…
Reference in New Issue