更新流量转发目的地址下发配置参数格式
This commit is contained in:
@@ -2,6 +2,7 @@ package com.nis.domain.callback;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
import com.google.gson.annotations.Expose;
|
import com.google.gson.annotations.Expose;
|
||||||
|
|
||||||
@@ -23,18 +24,13 @@ public class ProxyFileTrafficMirrorCfgAudit {
|
|||||||
@Expose
|
@Expose
|
||||||
private String profileName;
|
private String profileName;
|
||||||
@Expose
|
@Expose
|
||||||
private List<String> addrList;
|
private Map<String,List<String>> addrList;
|
||||||
|
@Expose
|
||||||
|
private String addrContent;
|
||||||
@Expose
|
@Expose
|
||||||
private String addrType;
|
private String addrType;
|
||||||
@Expose
|
@Expose
|
||||||
private Long opUser;
|
private Long opUser;
|
||||||
|
|
||||||
public Long getOpUser() {
|
|
||||||
return opUser;
|
|
||||||
}
|
|
||||||
public void setOpUser(Long opUser) {
|
|
||||||
this.opUser = opUser;
|
|
||||||
}
|
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@@ -82,17 +78,29 @@ public class ProxyFileTrafficMirrorCfgAudit {
|
|||||||
}
|
}
|
||||||
public void setProfileName(String profileName) {
|
public void setProfileName(String profileName) {
|
||||||
this.profileName = profileName;
|
this.profileName = profileName;
|
||||||
}
|
}
|
||||||
|
public Map<String, List<String>> getAddrList() {
|
||||||
|
return addrList;
|
||||||
|
}
|
||||||
|
public void setAddrList(Map<String, List<String>> addrList) {
|
||||||
|
this.addrList = addrList;
|
||||||
|
}
|
||||||
|
public String getAddrContent() {
|
||||||
|
return addrContent;
|
||||||
|
}
|
||||||
|
public void setAddrContent(String addrContent) {
|
||||||
|
this.addrContent = addrContent;
|
||||||
|
}
|
||||||
public String getAddrType() {
|
public String getAddrType() {
|
||||||
return addrType;
|
return addrType;
|
||||||
}
|
}
|
||||||
public void setAddrType(String addrType) {
|
public void setAddrType(String addrType) {
|
||||||
this.addrType = addrType;
|
this.addrType = addrType;
|
||||||
}
|
}
|
||||||
public List<String> getAddrList() {
|
public Long getOpUser() {
|
||||||
return addrList;
|
return opUser;
|
||||||
}
|
}
|
||||||
public void setAddrList(List<String> addrList) {
|
public void setOpUser(Long opUser) {
|
||||||
this.addrList = addrList;
|
this.opUser = opUser;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3222,11 +3222,14 @@ public abstract class BaseService {
|
|||||||
//流量转发目的地址
|
//流量转发目的地址
|
||||||
public static ProxyFileTrafficMirrorCfgAudit convertCallBackProxyFileTrafficMirror(ProxyFileTrafficMirrorCfg cfg) {
|
public static ProxyFileTrafficMirrorCfgAudit convertCallBackProxyFileTrafficMirror(ProxyFileTrafficMirrorCfg cfg) {
|
||||||
ProxyFileTrafficMirrorCfgAudit fileTemp = new ProxyFileTrafficMirrorCfgAudit();
|
ProxyFileTrafficMirrorCfgAudit fileTemp = new ProxyFileTrafficMirrorCfgAudit();
|
||||||
|
Map map = new HashMap<String,List>();
|
||||||
|
map.put(cfg.getAddrType(),Arrays.asList(cfg.getAddrList().split(",")));
|
||||||
fileTemp.setId(Long.valueOf(cfg.getCompileId()));
|
fileTemp.setId(Long.valueOf(cfg.getCompileId()));
|
||||||
fileTemp.setCfgId(cfg.getCompileId());
|
fileTemp.setCfgId(cfg.getCompileId());
|
||||||
fileTemp.setProfileId(cfg.getCompileId());
|
fileTemp.setProfileId(cfg.getCompileId());
|
||||||
fileTemp.setProfileName(keywordsEscape(cfg.getCfgDesc()));
|
fileTemp.setProfileName(keywordsEscape(cfg.getCfgDesc()));
|
||||||
fileTemp.setAddrList(Arrays.asList(cfg.getAddrList().split(",")));
|
fileTemp.setAddrList(map);
|
||||||
|
fileTemp.setAddrContent(cfg.getAddrList());
|
||||||
fileTemp.setAddrType(cfg.getAddrType());
|
fileTemp.setAddrType(cfg.getAddrType());
|
||||||
fileTemp.setAction(cfg.getAction());
|
fileTemp.setAction(cfg.getAction());
|
||||||
fileTemp.setService(cfg.getServiceId());
|
fileTemp.setService(cfg.getServiceId());
|
||||||
|
|||||||
Reference in New Issue
Block a user