Skip to content

Commit 1dc2bbd

Browse files
author
Daan Hoogland
committed
CLOUDSTACK-6231 allow for cidr list entry of more than 256 chars
1 parent 8937434 commit 1dc2bbd

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎engine/schema/src/com/cloud/network/vpc/NetworkACLItemVO.java‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class NetworkACLItemVO implements NetworkACLItem {
7171
@Enumerated(value = EnumType.STRING)
7272
TrafficType trafficType;
7373

74-
@Column(name = "cidr")
74+
@Column(name = "cidr", length = 2048)
7575
String sourceCidrs;
7676

7777
@Column(name = "uuid")
@@ -88,20 +88,20 @@ public class NetworkACLItemVO implements NetworkACLItem {
8888
protected boolean display = true;
8989

9090
public NetworkACLItemVO() {
91-
this.uuid = UUID.randomUUID().toString();
91+
uuid = UUID.randomUUID().toString();
9292
}
9393

9494
public NetworkACLItemVO(Integer portStart, Integer portEnd, String protocol, long aclId, List<String> sourceCidrs, Integer icmpCode, Integer icmpType,
9595
TrafficType trafficType, Action action, int number) {
96-
this.sourcePortStart = portStart;
97-
this.sourcePortEnd = portEnd;
96+
sourcePortStart = portStart;
97+
sourcePortEnd = portEnd;
9898
this.protocol = protocol;
9999
this.aclId = aclId;
100-
this.state = State.Staged;
100+
state = State.Staged;
101101
this.icmpCode = icmpCode;
102102
this.icmpType = icmpType;
103103
setSourceCidrList(sourceCidrs);
104-
this.uuid = UUID.randomUUID().toString();
104+
uuid = UUID.randomUUID().toString();
105105
this.trafficType = trafficType;
106106
this.action = action;
107107
this.number = number;
@@ -191,7 +191,7 @@ public Integer getIcmpType() {
191191

192192
@Override
193193
public String getUuid() {
194-
return this.uuid;
194+
return uuid;
195195
}
196196

197197
@Override

0 commit comments

Comments
 (0)