Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.

Conversation

@kevin-zhonghao
Copy link
Contributor

@kevin-zhonghao kevin-zhonghao commented Jul 21, 2020

This PR fixes four identified issues in VPC mgr and Subnet Mgr:

  • API /v2.0/networks/{networkid}, subnets field in network object was empty even there exist some subnets in the network
  • When creating a network, if a user doesn't specify the network type and segmentation related parameters, POST /v2.0/networks API doesn't assign default value
  • When creating a subnet, allocation_pools and enable_dhcp was not populated.
  • Handling of gateway IP field was incorrect in some corner cases when GW_IP=null.

Liguang Xie and others added 19 commits May 21, 2020 21:47
# Conflicts:
#	README.md
#	docs/modules/ROOT/pages/comm_protocol/fast_path.adoc
#	docs/modules/ROOT/pages/comm_protocol/rescue_path.adoc
#	docs/modules/ROOT/pages/controller.adoc
#	docs/modules/ROOT/pages/db_services/data_store.adoc
#	docs/modules/ROOT/pages/deploy_related/deployment.adoc
#	docs/modules/ROOT/pages/deploy_related/integration_nova.adoc
#	docs/modules/ROOT/pages/high_level/system_flow.adoc
#	docs/modules/ROOT/pages/mgmt_services/private_ip_manager.adoc
#	docs/modules/ROOT/pages/mgmt_services/security_group_manager.adoc
#	docs/modules/ROOT/pages/mgmt_services/virtual_mac_manager.adoc
#	docs/modules/ROOT/pages/mgmt_services/vpc_manager.adoc
#	docs/modules/ROOT/pages/sys_monitoring/monitoring.adoc
@xieus xieus added the bug Something isn't working label Jul 21, 2020
@xieus xieus added this to the Version 0.7.2020.07.30 milestone Jul 21, 2020
Copy link
Contributor

@xieus xieus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very timely fix. Thank you @kevin-zhonghao.

I left a few comments. Please take a look.

return null;
}

String[] highIps = highIp.split("\\.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add the logic here?

cidrToFirstIpAndLastIp is used somewhere else that actually asks the first and last Ip, right? If so, then this new logic is going to break codes in those places.

I think we should have a new method that handles the cut explicitly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method is used for creating Ip Address Range, and Ip Address Range may also need this fix, right? let us talk about this.

response.setStatus(NetworkStatusEnum.ACTIVE.getNetworkStatus());
}

// mtu
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add //TDDO in the code to remind ourselves and community that the current logic will be updated and the plan

Copy link
Contributor

@xieus xieus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Signed off with some minor comments.

@xieus xieus changed the title Hotfix/issue [Microservice API] VPC Mgr and Subnet Mgr Issue Fix Jul 22, 2020
@xieus xieus merged commit 4cdfce6 into futurewei-cloud:master Jul 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants