Exemplo n.º 1
0
  /**
   * 保存IP
   *
   * @param ipPool
   */
  @Transactional(readOnly = false)
  public void saveIpPool(IpPool ipPool) {

    // 同步至oneCMDB
    List<IpPool> ipPools = new ArrayList<IpPool>();
    ipPools.add(ipPool);
    comm.oneCmdbUtilService.saveIpPoolToOneCMDB(ipPools, ipPool.getPoolType());

    ipPoolDao.save(ipPool);
  }