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

[Subnet] add try catch in delete subnet for subnet routing rule deletion if routing table is not exist #660

Merged
merged 3 commits into from
Jul 8, 2021

Conversation

yanmo96
Copy link
Contributor

@yanmo96 yanmo96 commented Jul 2, 2021

added try catch to 'delete subnet routing rule in route manager'.
From second part of issue #648

@yanmo96 yanmo96 requested review from xieus and cj-chung July 2, 2021 00:18
@cj-chung cj-chung added the bug Something isn't working label Jul 2, 2021
@cj-chung cj-chung changed the title Subnet rm [Subnet] add try catch in delete subnet for subnet routing rule deletion if routing table is not exist Jul 2, 2021
Copy link
Contributor

@cj-chung cj-chung left a comment

Choose a reason for hiding this comment

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

LGTM

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

@@ -537,7 +539,11 @@ public ResponseId deleteSubnetState(@PathVariable String projectId, @PathVariabl
}

// delete subnet routing rule in route manager
this.subnetService.deleteSubnetRoutingRuleInRM(projectId, subnetId);
try {
this.subnetService.deleteSubnetRoutingRuleInRM(projectId, subnetId);
Copy link
Contributor

@xieus xieus Jul 2, 2021

Choose a reason for hiding this comment

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

This method was to delete the entire routing table associated with this subnet in RM. Let us rename it to deleteSubnetRoutingTable.

@xieus xieus added this to the Version 0.17.2021.07.30 milestone Jul 2, 2021
@xieus
Copy link
Contributor

xieus commented Jul 7, 2021

@yanmo96 Could you update this PR? It has been a while.

@yanmo96
Copy link
Contributor Author

yanmo96 commented Jul 7, 2021

Will do, sorry miss the earlier comment.

@xieus xieus self-requested a review July 8, 2021 19:04
@xieus
Copy link
Contributor

xieus commented Jul 8, 2021

This is a workaround to fix Issue #660

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

@xieus xieus merged commit 091e158 into futurewei-cloud:master Jul 8, 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