packet ip asn下发时加入用户自定义域ASN_ID,config_group_info表新增字段asn_id
This commit is contained in:
@@ -728,7 +728,7 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
||||
List<IpCfg> areaIpRegionList = new ArrayList<>();
|
||||
if(isAudit==Constants.AUDIT_YES) {
|
||||
ConfigGroupInfo group=specificServiceCfgDao.getConfigGroupInfoByGroupId(Integer.parseInt(entity.getUserRegion4()));
|
||||
if(group.getIsIssued()==1) {//复用,值下编译跟分组
|
||||
if(group.getIsIssued()==1) {//复用,只下编译跟分组
|
||||
maatCfg.initDefaultValue();
|
||||
BeanUtils.copyProperties(entity, maatCfg);
|
||||
maatCfg.setAction(entity.getAction());
|
||||
@@ -754,6 +754,9 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
||||
maatBean.setCreatorName(entity.getCurrentUser().getName());
|
||||
maatBean.setVersion(Constants.MAAT_VERSION);
|
||||
maatBean.setOpAction(Constants.INSERT_ACTION);
|
||||
if(group.getAsnId()!=null) {
|
||||
maatCfg.setUserRegion("ASN_ID="+group.getAsnId());
|
||||
}
|
||||
//调用服务接口下发配置数据
|
||||
String json=gsonToJson(maatBean);
|
||||
logger.info("ipaddr asn组复用配置下发配置参数:"+json);
|
||||
@@ -771,6 +774,9 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
||||
maatCfg.setGroupRelationList(groupRelationList);
|
||||
maatCfg.setAreaIpRegionList(areaIpRegionList);
|
||||
maatCfg.setIsValid(entity.getIsValid());
|
||||
if(group.getAsnId()!=null) {
|
||||
maatCfg.setUserRegion("ASN_ID="+group.getAsnId());
|
||||
}
|
||||
//group
|
||||
GroupCfg groupCfg=new GroupCfg();
|
||||
groupCfg.setCompileId(entity.getCompileId());
|
||||
|
||||
Reference in New Issue
Block a user