Java 类com.vmware.vim25.IpPool 实例源码

项目:contrail-vcenter-plugin    文件:VCenterDB.java   
public IpPool getIpPoolById(Integer poolid,  String nwName, Datacenter dc, String dcName)
        throws RemoteException {

    if (ipPools == null) {
        ipPools = ipPoolManager.queryIpPools(dc);
        if (ipPools == null || ipPools.length == 0) {
            s_logger.debug(" Datacenter: " + dcName + " IP Pools NOT configured");
            return null;
        }
    }

    // refresh cached pools and try again
    ipPools = ipPoolManager.queryIpPools(dc);
    if (ipPools == null || ipPools.length == 0) {
        s_logger.debug(" Datacenter: " + dcName + " IP Pools NOT configured");
        return null;
    }

    return getIpPool(poolid, nwName);
}
项目:contrail-vcenter-plugin    文件:VirtualNetworkInfo.java   
public void setIpPoolId(Integer poolId, VCenterDB vcenterDB)
        throws RuntimeFault, RemoteException {

    IpPool ipPool = vcenterDB.getIpPoolById(poolId, name, dc, dcName);
    if (ipPool != null) {
        IpPoolIpPoolConfigInfo ipConfigInfo = ipPool.getIpv4Config();

        subnetAddress = ipConfigInfo.getSubnetAddress();
        subnetMask = ipConfigInfo.getNetmask();
        gatewayAddress = ipConfigInfo.getGateway();
        ipPoolEnabled = ipConfigInfo.getIpPoolEnabled();
        range = ipConfigInfo.getRange();
        this.ipPoolId = ipPool.id;
        s_logger.info("Set ipPoolId to " + ipPoolId + " for " + this);
    } else {
        subnetAddress = null;
        subnetMask = null;
        gatewayAddress = null;
        ipPoolEnabled = false;
        range = null;
        this.ipPoolId = null;
        s_logger.info("Set ipPoolId to null for " + this);
    }
}
项目:vijava    文件:IpPoolManager.java   
public int createIpPool(Datacenter dc, IpPool pool) throws RuntimeFault, RemoteException
{
    return getVimService().createIpPool(getMOR(), dc.getMOR(), pool);
}
项目:vijava    文件:IpPoolManager.java   
public IpPool[] queryIpPools(Datacenter dc) throws RuntimeFault, RemoteException
{
    return getVimService().queryIpPools(getMOR(), dc.getMOR());
}
项目:vijava    文件:IpPoolManager.java   
public void updateIpPool(Datacenter dc, IpPool pool) throws RuntimeFault, RemoteException
{
    getVimService().updateIpPool(getMOR(), dc.getMOR(), pool);
}
项目:jcloud-vsphere    文件:IpPoolManagerApi.java   
int createIpPool(Datacenter dc, IpPool pool) throws RuntimeFault, RemoteException;
项目:jcloud-vsphere    文件:IpPoolManagerApi.java   
List<IpPool> queryIpPools(Datacenter dc) throws RuntimeFault, RemoteException;
项目:jcloud-vsphere    文件:IpPoolManagerApi.java   
void updateIpPool(Datacenter dc, IpPool pool) throws RuntimeFault, RemoteException;