Skip to content

Commit ae2c158

Browse files
committed
add method rebuildServer
1 parent 4aa3685 commit ae2c158

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

pluginsdk/plugin_handler_interface.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,6 @@ type HandlerVim interface {
9292
UpdateNetwork(vimInstance interface{}, network catalogue.BaseNetworkInt) (catalogue.BaseNetworkInt, error)
9393

9494
UpdateSubnet(vimInstance interface{}, createdNetwork catalogue.BaseNetworkInt, subnet *catalogue.Subnet) (*catalogue.Subnet, error)
95+
96+
RebuildServer(vimInstance interface{}, serverId string, imageId string) (*catalogue.Server, error)
9597
}

pluginsdk/worker.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ func (w worker) matchFunc(fname string, args []json.RawMessage) (reflect.Value,
219219
case "updateSubnet":
220220
fVal = reflect.ValueOf(w.h.UpdateSubnet)
221221

222+
case "rebuildServer":
223+
fVal = reflect.ValueOf(w.h.RebuildServer)
224+
222225
default:
223226
return fVal, ErrProtocolFail
224227
}

0 commit comments

Comments
 (0)