(1)更改IP验证选择相关属性的选择方式,去掉各种parents
(2)ip range 限制C网段,并且网络位必须相同 (3)IPSEC协议调整,ESP,AH加入字典
This commit is contained in:
@@ -136,11 +136,7 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
||||
ipCfgDao.saveCfgIndex(entity);
|
||||
if(entity.getIpPortList()!=null){
|
||||
for(IpPortCfg cfg:entity.getIpPortList()){
|
||||
if(Constants.IPSEC_PROTOCOL.intValue()==cfg.getProtocol().intValue()) {
|
||||
BeanUtils.copyProperties(entity, cfg,new String[]{"userRegion1","cfgRegionCode","cfgType"});
|
||||
}else {
|
||||
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||
}
|
||||
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||
ipCfgDao.saveIpPortCfg(cfg);
|
||||
}
|
||||
}
|
||||
@@ -176,11 +172,7 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
||||
entity.setCreatorId(entity.getCurrentUser().getId());
|
||||
if(entity.getIpPortList()!=null){
|
||||
for(IpPortCfg cfg:entity.getIpPortList()){
|
||||
if(Constants.IPSEC_PROTOCOL.intValue()==cfg.getProtocol().intValue()) {
|
||||
BeanUtils.copyProperties(entity, cfg,new String[]{"userRegion1","cfgRegionCode","cfgType"});
|
||||
}else {
|
||||
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||
}
|
||||
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||
ipCfgDao.saveIpPortCfg(cfg);
|
||||
}
|
||||
}
|
||||
@@ -567,11 +559,6 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
||||
ipCfgDao.auditCfg(cfg);
|
||||
}
|
||||
if(isAudit==1&&maatType==Constants.MAAT_TYPE){
|
||||
for(IpPortCfg cfg:entity.getIpPortList()) {
|
||||
if(Constants.IPSEC_PROTOCOL==cfg.getProtocol().intValue()) {
|
||||
cfg.setProtocol(Integer.parseInt(cfg.getUserRegion1()));
|
||||
}
|
||||
}
|
||||
Map<String,List> map = cfgConvert(ipRegionList,entity.getIpPortList(),1,entity,groupRelationList);
|
||||
groupRelationList=map.get("groupList");
|
||||
ipRegionList=map.get("dstList");
|
||||
@@ -610,10 +597,7 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
||||
List<InlineIp> ipList=new ArrayList<>();
|
||||
for(IpPortCfg cfg :entity.getIpPortList()) {
|
||||
Integer ipsecProtocol=null;
|
||||
if(Constants.IPSEC_PROTOCOL==cfg.getProtocol().intValue()) {
|
||||
ipsecProtocol=Integer.parseInt(cfg.getUserRegion1());
|
||||
}
|
||||
BeanUtils.copyProperties(entity, cfg, new String[]{"userRegion1","cfgId"});
|
||||
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||
InlineIp ip=convertCallBackIp(cfg,null);
|
||||
if(ipsecProtocol!=null) {
|
||||
ip.setProtocol(ipsecProtocol);
|
||||
@@ -677,10 +661,7 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
||||
List<InlineIp> ipList=new ArrayList<>();
|
||||
for(IpPortCfg cfg :entity.getIpPortList()) {
|
||||
Integer ipsecProtocol=null;
|
||||
if(Constants.IPSEC_PROTOCOL==cfg.getProtocol().intValue()) {
|
||||
ipsecProtocol=Integer.parseInt(cfg.getUserRegion1());
|
||||
}
|
||||
BeanUtils.copyProperties(entity, cfg, new String[]{"userRegion1","cfgId"});
|
||||
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||
InlineIp ip=convertCallBackIp(cfg,null);
|
||||
if(ipsecProtocol!=null) {
|
||||
ip.setProtocol(ipsecProtocol);
|
||||
|
||||
Reference in New Issue
Block a user