feat(region): support merging wire

1. support merging networks under a wire
2. auto merge networks under a wire when set 'merge_network' when merge
this wire
This commit is contained in:
rainzm
2021-02-03 14:40:54 +08:00
parent f654636e5f
commit 0aa5c2ef1c
10 changed files with 508 additions and 202 deletions
+4
View File
@@ -54,6 +54,10 @@ func (model SStatusResourceBase) GetStatus() string {
return model.Status
}
func StatusBaseSetStatus(model IStatusBaseModel, userCred mcclient.TokenCredential, status string, reason string) error {
return statusBaseSetStatus(model, userCred, status, reason)
}
func statusBaseSetStatus(model IStatusBaseModel, userCred mcclient.TokenCredential, status string, reason string) error {
if model.GetStatus() == status {
return nil