mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6231 allow for cidr list entry of more than 256 chars
This commit is contained in:
parent
8937434fce
commit
1dc2bbdc37
|
|
@ -71,7 +71,7 @@ public class NetworkACLItemVO implements NetworkACLItem {
|
|||
@Enumerated(value = EnumType.STRING)
|
||||
TrafficType trafficType;
|
||||
|
||||
@Column(name = "cidr")
|
||||
@Column(name = "cidr", length = 2048)
|
||||
String sourceCidrs;
|
||||
|
||||
@Column(name = "uuid")
|
||||
|
|
@ -88,20 +88,20 @@ public class NetworkACLItemVO implements NetworkACLItem {
|
|||
protected boolean display = true;
|
||||
|
||||
public NetworkACLItemVO() {
|
||||
this.uuid = UUID.randomUUID().toString();
|
||||
uuid = UUID.randomUUID().toString();
|
||||
}
|
||||
|
||||
public NetworkACLItemVO(Integer portStart, Integer portEnd, String protocol, long aclId, List<String> sourceCidrs, Integer icmpCode, Integer icmpType,
|
||||
TrafficType trafficType, Action action, int number) {
|
||||
this.sourcePortStart = portStart;
|
||||
this.sourcePortEnd = portEnd;
|
||||
sourcePortStart = portStart;
|
||||
sourcePortEnd = portEnd;
|
||||
this.protocol = protocol;
|
||||
this.aclId = aclId;
|
||||
this.state = State.Staged;
|
||||
state = State.Staged;
|
||||
this.icmpCode = icmpCode;
|
||||
this.icmpType = icmpType;
|
||||
setSourceCidrList(sourceCidrs);
|
||||
this.uuid = UUID.randomUUID().toString();
|
||||
uuid = UUID.randomUUID().toString();
|
||||
this.trafficType = trafficType;
|
||||
this.action = action;
|
||||
this.number = number;
|
||||
|
|
@ -191,7 +191,7 @@ public class NetworkACLItemVO implements NetworkACLItem {
|
|||
|
||||
@Override
|
||||
public String getUuid() {
|
||||
return this.uuid;
|
||||
return uuid;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue