mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user