Files
cloudpods/pkg/apis/compute/cdrom.go
wanyaoqi ab1e535e0f feat(region,host): support assign bootindex for cdrom or disks
If bootindex is assigned, legacy boot order cdn/dcn will be disabled.
each device bootindex is accquire uniqued. default bootindex -1 is mean
bootindex not assign. If all of the devices not assigned bootindex,
guest will use the legacy boot order.

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-10-31 10:20:17 +08:00

25 lines
841 B
Go

// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package compute
type GuestcdromJsonDesc struct {
Ordinal int `json:"ordinal"`
ImageId string `json:"image_id"`
Path string `json:"path"`
Name string `json:"name"`
Size int64 `json:"size"`
BootIndex int8 `json:"boot_index"`
}