Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
01889e2
Rename nsx mode to routing mode
weizhouapache Apr 29, 2024
0dc01b6
ROUTED mode: add network/vpc offerings
weizhouapache May 24, 2024
d496af0
Routed v8
weizhouapache May 25, 2024
c922a62
Routed v10
weizhouapache May 28, 2024
fa1918e
Routed v11
weizhouapache May 29, 2024
83e87a3
Routed v12
weizhouapache May 30, 2024
df8069d
Routed v13
weizhouapache May 31, 2024
b676317
Routed v14
weizhouapache May 31, 2024
946b618
Routed v15
weizhouapache Jun 7, 2024
9b22a31
Routed v16
weizhouapache Jun 8, 2024
7d8413d
Routed 21
weizhouapache Jun 18, 2024
1bbb16c
Routed 22
weizhouapache Jun 19, 2024
17f183e
Routed v23
weizhouapache Jun 20, 2024
6d44747
Routed v24
weizhouapache Jun 22, 2024
3ba853d
Routed v25
weizhouapache Jun 24, 2024
6a8bec2
Routed v26: implement subnet auto-allocation
weizhouapache Jun 25, 2024
77fa42d
Routed 27: add subnet for VPC
weizhouapache Jun 25, 2024
522e3a1
Routed v28: update smoke tests
weizhouapache Jun 25, 2024
fb3f3bf
Routed 29: fix vpc and add more tests
weizhouapache Jun 26, 2024
2db0192
Routed 31: ui and smoke tests
weizhouapache Jun 27, 2024
db9dea3
Routed 32: add chain OUTPUT and more rules
weizhouapache Jun 28, 2024
9387aef
Routed: fix dns search from VMs in Isolated networks
weizhouapache Jul 3, 2024
a6f7876
Routed: fix VPC dns issue due to gateway IP is missing in cloud.conf
weizhouapache Jul 3, 2024
648dcae
Routed: rename routing_mode to network_mode
weizhouapache Jul 4, 2024
42842c6
Routed: replace centos5.5 template in smoke test as dhclient does not…
weizhouapache Jul 4, 2024
a1b0b64
Routed: fix smoke test due to wrong cidrlist of egress rules and miss…
weizhouapache Jul 5, 2024
57de7cc
PR 9346: fix lint error schema-41910to42000.sql
weizhouapache Jul 5, 2024
27a2005
PR 9346: ui polish v1
weizhouapache Jul 5, 2024
9397b8d
PR 9346: create VPC with cidrsize
weizhouapache Jul 5, 2024
b8e3950
Routed: fix test failures with test_network_ipv6 and test_vpc_ipv6 du…
weizhouapache Jul 8, 2024
532319f
Routed: fix /usr/local/cloud/systemvm/ are removed after SSVM/CPVM re…
weizhouapache Jul 8, 2024
40c12bf
Routed: fix IP of additional nics of VPC VR is not gateway
weizhouapache Jul 8, 2024
720f57e
Merge remote-tracking branch 'apache/main' into 4.20-routed-mode
weizhouapache Jul 8, 2024
a599950
PR 9346: fix cidrsize check when create VPC with cidrsize
weizhouapache Jul 8, 2024
ef70262
Routed: fix test/integration/smoke/test_ipv4_routing.py:279:16: E713 …
weizhouapache Jul 8, 2024
5b77f02
Merge remote-tracking branch 'apache/main' into 4.20-routed-mode
weizhouapache Jul 9, 2024
e493196
Merge remote-tracking branch 'apache/main' into 4.20-routed-mode
weizhouapache Jul 12, 2024
c04bfb4
PR9346: fix/Update api
weizhouapache Jul 12, 2024
4579b49
PR 9346: set response object name
weizhouapache Jul 12, 2024
3763fd2
PR9346: UI refactor and small fixes
weizhouapache Jul 12, 2024
fd88a9e
Merge remote-tracking branch 'apache/main' into 4.20-routed-mode
weizhouapache Jul 14, 2024
21d52ec
PR9346: change return type of getNetworkMode
weizhouapache Jul 15, 2024
0795237
Merge remote-tracking branch 'apache/main' into 4.20-routed-mode
weizhouapache Jul 16, 2024
6d52a64
PR9346: move IPv4 subnet to seperated tab
weizhouapache Jul 13, 2024
f156f59
PR9346: revert IpRangesTabGuest.vue back to original
weizhouapache Jul 16, 2024
8901ddd
Merge remote-tracking branch 'apache/main' into 4.20-routed-mode
weizhouapache Jul 17, 2024
798074b
PR9346: fix remove ipv4 subnet on UI
weizhouapache Jul 17, 2024
bf21ff4
PR9346: fix test_ipv4_routing.py
weizhouapache Jul 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Routed v25
- add test_01_subnet_zone
- fix dedicate to domain/account failure
- list subnets for network by keyword and subnet
  • Loading branch information
weizhouapache committed Jul 5, 2024
commit 3ba853d6385aeabcf9d35449908205b60e221e66
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class CreateIpv4SubnetForGuestNetworkCmd extends BaseAsyncCmd {

@Parameter(name = ApiConstants.SUBNET,
type = CommandType.STRING,
description = "The CIDR for this Ipv4 subnet.")
description = "The CIDR of this Ipv4 subnet.")
private String subnet;

@Parameter(name = ApiConstants.CIDR_SIZE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ public class ListIpv4SubnetsForGuestNetworkCmd extends BaseListCmd {
description = "UUID of zone Ipv4 subnet which the IPv4 subnet belongs to.")
private Long parentId;

@Parameter(name = ApiConstants.SUBNET,
type = CommandType.STRING,
description = "The CIDR of the Ipv4 subnet.")
private String subnet;

@Parameter(name = ApiConstants.ZONE_ID,
type = CommandType.UUID,
entityType = ZoneResponse.class,
Expand All @@ -73,6 +78,10 @@ public Long getZoneId() {
return zoneId;
}

public String getSubnet() {
return subnet;
}

@Override
public void execute() {
List<? extends Ipv4GuestSubnetNetworkMap> subnets = routedIpv4Manager.listIpv4GuestSubnetsForGuestNetwork(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public void init() {
networkSearchBuilder.and("domainId", networkSearchBuilder.entity().getDomainId(), SearchCriteria.Op.NEQ);
networkSearchBuilder.and("accountId", networkSearchBuilder.entity().getAccountId(), SearchCriteria.Op.NEQ);
DomainAccountNeqSearch = createSearchBuilder();
DomainAccountNeqSearch.and("parentId", DomainAccountNeqSearch.entity().getParentId(), SearchCriteria.Op.EQ);
DomainAccountNeqSearch.join("network", networkSearchBuilder, networkSearchBuilder.entity().getId(),
DomainAccountNeqSearch.entity().getNetworkId(), JoinBuilder.JoinType.INNER);
DomainAccountNeqSearch.done();
Expand All @@ -97,13 +98,15 @@ public List<Ipv4GuestSubnetNetworkMapVO> listUsedByParent(long parentId) {
@Override
public List<Ipv4GuestSubnetNetworkMapVO> listUsedByOtherDomains(long parentId, Long domainId) {
SearchCriteria<Ipv4GuestSubnetNetworkMapVO> sc = DomainAccountNeqSearch.create();
sc.setParameters("parentId", parentId);
sc.setJoinParameters("network", "domainId", domainId);
return listBy(sc);
}

@Override
public List<Ipv4GuestSubnetNetworkMapVO> listUsedByOtherAccounts(long parentId, Long accountId) {
SearchCriteria<Ipv4GuestSubnetNetworkMapVO> sc = DomainAccountNeqSearch.create();
sc.setParameters("parentId", parentId);
sc.setJoinParameters("network", "accountId", accountId);
return listBy(sc);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ public List<? extends Ipv4GuestSubnetNetworkMap> listIpv4GuestSubnetsForGuestNet
Long id = cmd.getId();
Long zoneId = cmd.getZoneId();
Long parentId = cmd.getParentId();
String subnet = cmd.getSubnet();
String keyword = cmd.getKeyword();

SearchCriteria sc = ipv4GuestSubnetNetworkMapDao.createSearchCriteria();
if (id != null) {
Expand All @@ -434,6 +436,12 @@ public List<? extends Ipv4GuestSubnetNetworkMap> listIpv4GuestSubnetsForGuestNet
if (parentId != null) {
sc.addAnd("parentId", SearchCriteria.Op.EQ, parentId);
}
if (subnet != null) {
sc.addAnd("subnet", SearchCriteria.Op.EQ, subnet);
}
if (keyword != null) {
sc.addAnd("subnet", SearchCriteria.Op.LIKE, keyword);
}
return ipv4GuestSubnetNetworkMapDao.search(sc, null);
}

Expand Down
Loading