mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-1963 New mapping model for CloudStack zone and Vmware datacenter
Support for custom field "cloud.zone" for datacenter object in vCenter. Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
This commit is contained in:
parent
af4177b86c
commit
99e9f5d308
|
|
@ -21,4 +21,5 @@ public interface CustomFieldConstants {
|
|||
public final static String CLOUD_GC = "cloud.gc";
|
||||
public final static String CLOUD_GC_DVP = "cloud.gc.dvp";
|
||||
public final static String CLOUD_NIC_MASK = "cloud.nic.mask";
|
||||
public final static String CLOUD_ZONE = "cloud.zone";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -488,4 +488,9 @@ public class DatacenterMO extends BaseMO {
|
|||
dvSwitchMor = _context.getVimClient().getDecendentMoRef(networkFolderMor, "VmwareDistributedVirtualSwitch", dvSwitchName);
|
||||
return dvSwitchMor;
|
||||
}
|
||||
|
||||
public boolean ensureCustomFieldDef(String fieldName) throws Exception {
|
||||
CustomFieldsManagerMO cfmMo = new CustomFieldsManagerMO(_context, _context.getServiceContent().getCustomFieldsManager());
|
||||
return cfmMo.ensureCustomFieldDef("Datacenter", fieldName) > 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue