snat策略下发增加action、serivce、doLog.
This commit is contained in:
@@ -176,9 +176,9 @@ public class IpAddrPoolCfgService extends BaseService{
|
||||
}
|
||||
IpCfg c = cfgs.get(0);
|
||||
ip.setRegionId(ipcfg.getCompileId());
|
||||
//ip.setGroupId(ipcfg.getCompileId());
|
||||
|
||||
ip.setGroupId(cfg.getCfgId());
|
||||
ip.setAddrType(ipcfg.getIpType());
|
||||
|
||||
ip.setSrcIp(c.getSrcIp());
|
||||
ip.setMaskSrcIp(c.getSrcIpMask());
|
||||
ip.setSrcPort(c.getSrcPort());
|
||||
@@ -190,13 +190,12 @@ public class IpAddrPoolCfgService extends BaseService{
|
||||
ip.setProtocol(ipcfg.getProtocol());
|
||||
ip.setDirection(ipcfg.getDirection());
|
||||
|
||||
ip.setAddrPoolId(cfg.getCfgId());
|
||||
ip.setIsValid(cfg.getIsValid());
|
||||
ip.setAction(ipcfg.getAction());
|
||||
ip.setService(ipcfg.getServiceId());
|
||||
ip.setAddrPoolId(cfg.getCfgId());
|
||||
ip.setOpTime(auditTime);
|
||||
ip.setAreaEffectiveIds(cfg.getAreaEffectiveIds());//添加区域管控
|
||||
|
||||
ip.setOpTime(auditTime);
|
||||
resStrategyList.add(ip);
|
||||
}
|
||||
//调用服务接口下发配置数据
|
||||
@@ -224,7 +223,9 @@ public class IpAddrPoolCfgService extends BaseService{
|
||||
}
|
||||
IpCfg c = cfgs.get(0);
|
||||
ip.setRegionId(ipcfg.getCompileId());
|
||||
ip.setGroupId(cfg.getCfgId());
|
||||
ip.setAddrType(ipcfg.getIpType());
|
||||
|
||||
ip.setSrcIp(c.getSrcIp());
|
||||
ip.setMaskSrcIp(c.getSrcIpMask());
|
||||
ip.setSrcPort(c.getSrcPort());
|
||||
@@ -235,12 +236,13 @@ public class IpAddrPoolCfgService extends BaseService{
|
||||
ip.setMaskDstPort(c.getDstPortMask());
|
||||
ip.setProtocol(ipcfg.getProtocol());
|
||||
ip.setDirection(ipcfg.getDirection());
|
||||
|
||||
ip.setAddrPoolId(cfg.getCfgId());
|
||||
ip.setIsValid(cfg.getIsValid());
|
||||
ip.setAction(ipcfg.getAction());
|
||||
ip.setService(ipcfg.getServiceId());
|
||||
ip.setAddrPoolId(cfg.getCfgId());
|
||||
ip.setOpTime(auditTime);
|
||||
ip.setAreaEffectiveIds(cfg.getAreaEffectiveIds());
|
||||
ip.setOpTime(auditTime);
|
||||
resStrategyList.add(ip);
|
||||
}
|
||||
//调用服务接口取消配置
|
||||
|
||||
@@ -40,7 +40,7 @@ public class IpMultiplexService extends BaseService{
|
||||
}
|
||||
|
||||
public IpReusePolicyCfg getPolicyCfg(Long cfgId, Integer isValid) {
|
||||
List<IpReusePolicyCfg> list=ipMultiplexDao.findList(cfgId,isValid,null);
|
||||
List<IpReusePolicyCfg> list=ipMultiplexDao.findList(cfgId,isValid);
|
||||
IpReusePolicyCfg policyCfg=null;
|
||||
if(list != null && list.size()>0){
|
||||
policyCfg=list.get(0);
|
||||
@@ -119,6 +119,7 @@ public class IpMultiplexService extends BaseService{
|
||||
cfg.setIsAudit(isAudit);
|
||||
cfg.setAuditorId(UserUtils.getUser().getId());
|
||||
cfg.setAuditTime(auditTime);
|
||||
cfg.setDoLog(null);;
|
||||
ipMultiplexDao.updatePolicyCfg(cfg);
|
||||
|
||||
SysDictInfoService sysDictInfoService = SpringContextHolder.getBean(SysDictInfoService.class);
|
||||
@@ -132,6 +133,9 @@ public class IpMultiplexService extends BaseService{
|
||||
params.put("addrPoolId", cfg.getAddrPoolId());
|
||||
params.put("userType", cfg.getUserType());
|
||||
params.put("userId", cfg.getUserId());
|
||||
params.put("doLog", cfg.getDoLog());
|
||||
params.put("action", cfg.getAction());
|
||||
params.put("service", cfg.getServiceId());
|
||||
params.put("isValid", 1);
|
||||
params.put("opTime", auditTime);
|
||||
params.put("effectiveRange", areaEffectiveIds);
|
||||
@@ -159,6 +163,9 @@ public class IpMultiplexService extends BaseService{
|
||||
params.put("addrPoolId", cfg.getAddrPoolId());
|
||||
params.put("userType", cfg.getUserType());
|
||||
params.put("userId", cfg.getUserId());
|
||||
params.put("doLog", cfg.getDoLog());
|
||||
params.put("action", cfg.getAction());
|
||||
params.put("service", cfg.getServiceId());
|
||||
params.put("isValid", 0);
|
||||
params.put("opTime", auditTime);
|
||||
params.put("effectiveRange", areaEffectiveIds);
|
||||
|
||||
Reference in New Issue
Block a user