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

Conversation

@chenpiaoping
Copy link
Contributor

@chenpiaoping chenpiaoping commented Dec 18, 2020

  1. One port supports multiple neighbors
  2. Fix the failure to update port

@chenpiaoping
Copy link
Contributor Author

@xieus Sorry that the previous PR led to the failure to update the port. This PR will solve the problem.

@xieus xieus requested review from cj-chung and xieus and removed request for xieus December 22, 2020 01:03
@xieus xieus added the enhancement New feature or request label Dec 22, 2020
@xieus xieus added this to the Version 0.11.2020.12.30 milestone Dec 22, 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.

LGTM.

private ICache<String, PortNeighbors> neighborCache;
private CacheFactory cacheFactory;

public NeighborRepository(CacheFactory cacheFactory) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@chenpiaoping When you get a chance, please update the PM design doc and list the repositories used in Port? It is time for us to sync the doc with the implementation as we are looking into perf optimization.

subnetPortIdsCache.put(subnetId, subnetPortIds);
}

neighborRepository.createNeighbors(neighbors);
Copy link
Contributor

Choose a reason for hiding this comment

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

Good refactor.

@xieus xieus merged commit 97315da into futurewei-cloud:master Dec 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants