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