-
Notifications
You must be signed in to change notification settings - Fork 33
[Subnet] add try catch in delete subnet for subnet routing rule deletion if routing table is not exist #660
Conversation
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
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
@@ -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); |
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.
This method was to delete the entire routing table associated with this subnet in RM. Let us rename it to deleteSubnetRoutingTable.
@yanmo96 Could you update this PR? It has been a while. |
Will do, sorry miss the earlier comment. |
added try catch to 'delete subnet routing rule in route manager'
This is a workaround to fix Issue #660 |
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
added try catch to 'delete subnet routing rule in route manager'.
From second part of issue #648