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

Conversation

@DavidLiu506
Copy link
Contributor

@DavidLiu506 DavidLiu506 commented Oct 25, 2021

  1. Add application properties to dpm_manager.yaml.
  2. Data plane manger using grpc client to send goal state in GoalStateV2.
  3. Patch subnet state and router state for goal state v2.
  4. DPM process router configuration function using goal state v2.
  5. Allow empty routing rule for route state creation.

@DavidLiu506 DavidLiu506 requested review from cj-chung and xieus October 25, 2021 23:29
@lgtm-com
Copy link

lgtm-com bot commented Oct 25, 2021

This pull request introduces 3 alerts when merging 15a60e9 into d040632 - view on LGTM.com

new alerts:

  • 3 for Useless null check

@lgtm-com
Copy link

lgtm-com bot commented Oct 26, 2021

This pull request introduces 3 alerts when merging dcbe16c into d040632 - view on LGTM.com

new alerts:

  • 3 for Useless null check

@lgtm-com
Copy link

lgtm-com bot commented Oct 26, 2021

This pull request introduces 3 alerts when merging 4b5428e into d040632 - view on LGTM.com

new alerts:

  • 3 for Useless null check

@lgtm-com
Copy link

lgtm-com bot commented Oct 26, 2021

This pull request introduces 3 alerts when merging 3f98c40 into d040632 - view on LGTM.com

new alerts:

  • 3 for Useless null check

}

boolean fastPath = portEntity.getFastPath() == null ? false : portEntity.getFastPath();
//boolean fastPath = (portEntity.getFastPath() == null ? false : portEntity.getFastPath());
Copy link
Contributor

Choose a reason for hiding this comment

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

@DavidLiu506 Please remove the commented out code.

Comment on lines +160 to +161
if (routingRules != null && routingRules.size() > 0) {
for (InternalRoutingRule routingRule: routingRules) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@DavidLiu506 So we are allowing a RouterState with routing table but without routing rule entry? How ACA handle this scenario?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ACA not process routing rule entry and put subnet state to local storage.

//TODO: where does the hostDvrMacAddress come from ?
routerConfigBuilder.setHostDvrMacAddress(routerInfo.getRouterConfiguration().getHostDvrMac());
routerConfigBuilder.setId(routerInfo.getRouterConfiguration().getId());
routerConfigBuilder.setHostDvrMacAddress(HOST_DVR_MAC);
Copy link
Contributor

Choose a reason for hiding this comment

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

@DavidLiu506 Why not get hostDvrMac from routerInfo? if host_dvr_mac are different from router to router, we may need get host dvr mac from the routerInfo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In routing rule update, routerInfo no host_dvr_mac, this temperate fix has been talked with @xieus and @cj-chung

@lgtm-com
Copy link

lgtm-com bot commented Oct 27, 2021

This pull request introduces 3 alerts when merging ac1cab5 into d040632 - view on LGTM.com

new alerts:

  • 3 for Useless null check

@xieus xieus added the bug Something isn't working label Oct 27, 2021
@xieus xieus added this to the Version 1.0.2021.12.30 milestone Oct 27, 2021
@cj-chung
Copy link
Contributor

LGTM if @DavidLiu506 resolves the comments.

@cj-chung cj-chung self-requested a review October 27, 2021 17:21
@lgtm-com
Copy link

lgtm-com bot commented Oct 27, 2021

This pull request introduces 3 alerts when merging fd7b860 into d040632 - view on LGTM.com

new alerts:

  • 3 for Useless null check

@xieus xieus merged commit 77ff219 into futurewei-cloud:master Oct 28, 2021
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