4.10.1
This commit is contained in:
@@ -113,6 +113,7 @@ func flattenVinsData(d *schema.ResourceData, vinsRecord *vins.RecordVINS) {
|
||||
d.Set("vxlan_id", vinsRecord.VXLANID)
|
||||
d.Set("computes", flattenComputes(vinsRecord.Computes))
|
||||
d.Set("zone_id", vinsRecord.ZoneID)
|
||||
d.Set("enable_secgroups", vinsRecord.EnableSecGroups)
|
||||
|
||||
}
|
||||
|
||||
@@ -134,26 +135,28 @@ func flattenLibvirtSettings(libvirtSettings vins.LibvirtSettings) []map[string]i
|
||||
func flattenVinsVNFDev(vd vins.VNFDev) []map[string]interface{} {
|
||||
res := make([]map[string]interface{}, 0)
|
||||
temp := map[string]interface{}{
|
||||
"ckey": vd.CKey,
|
||||
"meta": flattens.FlattenMeta(vd.Meta),
|
||||
"account_id": vd.AccountID,
|
||||
"capabilities": vd.Capabilities,
|
||||
"config": flattenVinsConfig(vd.Config),
|
||||
"config_saved": vd.ConfigSaved,
|
||||
"custom_precfg": vd.CustomPreConfig,
|
||||
"description": vd.Description,
|
||||
"gid": vd.GID,
|
||||
"guid": vd.GUID,
|
||||
"id": vd.ID,
|
||||
"interfaces": flattenVinsListInterfaces(vd.Interfaces),
|
||||
"lock_status": vd.LockStatus,
|
||||
"milestones": vd.Milestones,
|
||||
"name": vd.Name,
|
||||
"status": vd.Status,
|
||||
"tech_status": vd.TechStatus,
|
||||
"type": vd.Type,
|
||||
"vnc_password": vd.VNCPassword,
|
||||
"vins": vd.VINS,
|
||||
"ckey": vd.CKey,
|
||||
"meta": flattens.FlattenMeta(vd.Meta),
|
||||
"account_id": vd.AccountID,
|
||||
"capabilities": vd.Capabilities,
|
||||
"config": flattenVinsConfig(vd.Config),
|
||||
"config_saved": vd.ConfigSaved,
|
||||
"custom_precfg": vd.CustomPreConfig,
|
||||
"description": vd.Description,
|
||||
"gid": vd.GID,
|
||||
"guid": vd.GUID,
|
||||
"id": vd.ID,
|
||||
"interfaces": flattenVinsListInterfaces(vd.Interfaces),
|
||||
"live_migration_job_id": vd.LiveMigrationJobID,
|
||||
"lock_status": vd.LockStatus,
|
||||
"milestones": vd.Milestones,
|
||||
"name": vd.Name,
|
||||
"status": vd.Status,
|
||||
"tech_status": vd.TechStatus,
|
||||
"type": vd.Type,
|
||||
"vnc_password": vd.VNCPassword,
|
||||
"vins": vd.VINS,
|
||||
"zone_id": vd.ZoneID,
|
||||
}
|
||||
res = append(res, temp)
|
||||
return res
|
||||
@@ -203,6 +206,7 @@ func flattenVinsRecordDHCP(rv vins.RecordDHCP) []map[string]interface{} {
|
||||
"status": rv.Status,
|
||||
"tech_status": rv.TechStatus,
|
||||
"type": rv.Type,
|
||||
"zone_id": rv.ZoneID,
|
||||
}
|
||||
res = append(res, temp)
|
||||
return res
|
||||
@@ -225,9 +229,11 @@ func flattenVinsRecordGW(rg vins.RecordGW) []map[string]interface{} {
|
||||
"owner_id": rg.OwnerID,
|
||||
"owner_type": rg.OwnerType,
|
||||
"pure_virtual": rg.PureVirtual,
|
||||
"routes": flattenVinsRoutes(rg.Routes),
|
||||
"status": rg.Status,
|
||||
"tech_status": rg.TechStatus,
|
||||
"type": rg.Type,
|
||||
"zone_id": rg.ZoneID,
|
||||
}
|
||||
res = append(res, temp)
|
||||
return res
|
||||
@@ -250,9 +256,11 @@ func flattenVinsRecordNAT(rn vins.RecordNAT) []map[string]interface{} {
|
||||
"owner_id": rn.OwnerID,
|
||||
"owner_type": rn.OwnerType,
|
||||
"pure_virtual": rn.PureVirtual,
|
||||
"routes": flattenVinsRoutes(rn.Routes),
|
||||
"status": rn.Status,
|
||||
"tech_status": rn.TechStatus,
|
||||
"type": rn.Type,
|
||||
"zone_id": rn.ZoneID,
|
||||
}
|
||||
res = append(res, temp)
|
||||
return res
|
||||
@@ -425,6 +433,7 @@ func flattenVinsListInterfaces(i vins.ListInterfaces) []map[string]interface{} {
|
||||
"conn_type": v.ConnType,
|
||||
"def_gw": v.DefGW,
|
||||
"enabled": v.Enabled,
|
||||
"enable_secgroups": v.EnableSecGroups,
|
||||
"flipgroup_id": v.FLIPGroupID,
|
||||
"guid": v.GUID,
|
||||
"ip_address": v.IPAddress,
|
||||
@@ -439,6 +448,7 @@ func flattenVinsListInterfaces(i vins.ListInterfaces) []map[string]interface{} {
|
||||
"pci_slot": v.PCISlot,
|
||||
"bus_number": v.BusNumber,
|
||||
"qos": flattenVinsQOS(v.QOS),
|
||||
"security_groups": v.SecGroups,
|
||||
"sdn_interface_id": v.SDNInterfaceID,
|
||||
"target": v.Target,
|
||||
"type": v.Type,
|
||||
@@ -463,6 +473,7 @@ func flattenVinsList(vl *vins.ListVINS) []map[string]interface{} {
|
||||
"deleted_by": v.DeletedBy,
|
||||
"deleted_time": v.DeletedTime,
|
||||
"description": v.Description,
|
||||
"enable_secgroups": v.EnableSecGroups,
|
||||
"external_ip": v.ExternalIP,
|
||||
"extnet_id": v.ExtnetId,
|
||||
"free_ips": v.FreeIPs,
|
||||
|
||||
Reference in New Issue
Block a user