Skip to content

Commit 980eac6

Browse files
JayapalDaanHoogland
authored andcommitted
CLOUDSTACK-6582: fixed network acl cidr issues
1 parent 94415b8 commit 980eac6

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎engine/schema/src/com/cloud/network/vpc/dao/NetworkACLItemDaoImpl.java‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public List<NetworkACLItemVO> listByACL(long aclId) {
115115
for(NetworkACLItemVO item :list) {
116116
loadCidrs(item);
117117
}
118-
return listBy(sc);
118+
return list;
119119
}
120120

121121
@Override
@@ -132,7 +132,9 @@ public NetworkACLItemVO findByAclAndNumber(long aclId, int number) {
132132
sc.setParameters("aclId", aclId);
133133
sc.setParameters("number", number);
134134
NetworkACLItemVO vo = findOneBy(sc);
135-
loadCidrs(vo);
135+
if(vo != null) {
136+
loadCidrs(vo);
137+
}
136138
return vo;
137139
}
138140

‎setup/db/db/schema-430to440.sql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1654,7 +1654,7 @@ CREATE TABLE `cloud`.`op_vpc_distributed_router_sequence_no` (
16541654

16551655
INSERT INTO `cloud`.`configuration`(category, instance, component, name, value, description, default_value) VALUES ('Advanced', 'DEFAULT', 'NetworkOrchestrationService', 'router.aggregation.command.each.timeout', '3', 'timeout in seconds for each Virtual Router command being aggregated. The final aggregation command timeout would be determined by this timeout * commands counts ', '3') ON DUPLICATE KEY UPDATE category='Advanced';
16561656

1657-
CREATE TABLE `cloud`.`network_acl_item_cidr` (
1657+
CREATE TABLE `cloud`.`network_acl_item_cidrs` (
16581658
`id` bigint unsigned UNIQUE NOT NULL auto_increment,
16591659
`network_acl_item_id` bigint unsigned NOT NULL COMMENT 'Network ACL Item id',
16601660
`cidr` varchar(255) NOT NULL,

0 commit comments

Comments
 (0)