欺骗ip配置新增,发送给配置转换层时补上classify、attribute等信息
This commit is contained in:
@@ -20,7 +20,7 @@ public class ToMaatDnsIpBean implements Serializable {
|
||||
@Expose
|
||||
private String lable;
|
||||
@Expose
|
||||
private Integer requestId;
|
||||
private Long requestId;
|
||||
|
||||
public List<MaatDnsIpCfg> getServiceCfg() {
|
||||
return serviceCfg;
|
||||
@@ -52,10 +52,10 @@ public class ToMaatDnsIpBean implements Serializable {
|
||||
public void setLable(String lable) {
|
||||
this.lable = lable;
|
||||
}
|
||||
public Integer getRequestId() {
|
||||
public Long getRequestId() {
|
||||
return requestId;
|
||||
}
|
||||
public void setRequestId(Integer requestId) {
|
||||
public void setRequestId(Long requestId) {
|
||||
this.requestId = requestId;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,14 @@ public class DnsIpCfgService extends CrudService<DnsIpCfgDao, DnsIpCfg>{
|
||||
ipCfg.setIpCfg(d1);
|
||||
ipCfgList.add(ipCfg);
|
||||
toMaatBean.setServiceCfg(ipCfgList);
|
||||
toMaatBean.setAttribute(dnsIpCfg.getAttribute());
|
||||
toMaatBean.setClassify(dnsIpCfg.getClassify());
|
||||
toMaatBean.setLable(dnsIpCfg.getLable());
|
||||
toMaatBean.setIsValid(1);
|
||||
toMaatBean.setRequestId(dnsIpCfg.getRequest().getId());
|
||||
|
||||
String sendJson = gson.toJson(toMaatBean);
|
||||
|
||||
logger.info("准备下发配置:" + sendJson);
|
||||
//下发配置、接收结果
|
||||
String recvJson = "";
|
||||
|
||||
Reference in New Issue
Block a user