-
Notifications
You must be signed in to change notification settings - Fork 34
[Micro service] Consolidate web-related entities under AlcorWeb, add validation to VPC/Sunet Manager #195
Conversation
Replace Redis with Apache Ignite for in memory cache and db (futurewei-cloud#129)
xieus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some initial feedback. Will keep looking.
services/port_manager/src/main/java/com/futurewei/alcor/portmanager/proxy/IpManagerProxy.java
Show resolved
Hide resolved
|
|
||
| import com.futurewei.alcor.web.entity.ip.IpAddrRequest; | ||
| import com.futurewei.alcor.web.restclient.IpManagerRestClient; | ||
| import com.futurewei.alcor.portmanager.restclient.IpManagerRestClient; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh why do we want to move rest clients from AlcroWeb back to Port Manager?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Piaoping make the change I think ~
services/port_manager/src/main/java/com/futurewei/alcor/portmanager/util/SpringContextUtil.java
Show resolved
Hide resolved
| #apache.kafka.address=172.17.0.1:9092 | ||
| #server.port=9000 | ||
| #Ignite configuration | ||
| #ignite.host=192.168.137.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switching back and forward on different host ip is kind of headache. Let us create a new set of application.properties to be more developer friendly :-) when you get a chance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
services/route_manager/src/main/resources/application.properties
Outdated
Show resolved
Hide resolved
services/route_manager/src/main/resources/application.properties
Outdated
Show resolved
Hide resolved
xieus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more minor comments. I think this PR is good shape. Let us address the comments and merge it soon.
services/subnet_manager/src/main/java/com/futurewei/alcor/subnet/dao/SubnetRepository.java
Outdated
Show resolved
Hide resolved
| return true; | ||
| } | ||
|
|
||
| public static String localToUTC(String localTime, String format) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering if we could get a UTC time directly, instead of time zone conversion.
services/subnet_manager/src/main/resources/application.properties
Outdated
Show resolved
Hide resolved
...es/vpc_manager/src/main/java/com/futurewei/alcor/vpcmanager/utils/SegmentManagementUtil.java
Outdated
Show resolved
Hide resolved
services/vpc_manager/src/main/java/com/futurewei/alcor/vpcmanager/utils/VpcManagementUtil.java
Outdated
Show resolved
Hide resolved
…API is now completed
web/src/main/java/com/futurewei/alcor/web/entity/subnet/SubnetEntity.java
Show resolved
Hide resolved
services/port_manager/src/main/java/com/futurewei/alcor/portmanager/proxy/IpManagerProxy.java
Show resolved
Hide resolved
# Conflicts: # services/mac_manager/pom.xml # services/mac_manager/src/main/java/com/futurewei/alcor/macmanager/controller/MacController.java # services/mac_manager/src/main/java/com/futurewei/alcor/macmanager/dao/MacPoolRepository.java # services/mac_manager/src/main/java/com/futurewei/alcor/macmanager/dao/MacRangeRepository.java # services/mac_manager/src/main/java/com/futurewei/alcor/macmanager/service/MacService.java # services/mac_manager/src/main/java/com/futurewei/alcor/macmanager/service/implement/MacServiceImpl.java # services/mac_manager/src/main/java/com/futurewei/alcor/macmanager/utils/RestPreconditionsUtil.java # services/mac_manager/src/main/resources/application.properties # services/mac_manager/src/test/java/com/futurewei/alcor/macmanager/controller/MacControllerTest.java # services/node_manager/src/main/resources/application.properties # web/src/main/java/com/futurewei/alcor/web/entity/mac/MacPool.java
# Conflicts: # services/mac_manager/src/main/resources/application.properties
xieus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for consolidating all the entities into one place, which take a lot of efforts but save us time when comes to integration :-)
This PR proposes the following changes: