修复镜像菜单addrList下发格式
This commit is contained in:
@@ -3221,14 +3221,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(),cfg.getAddrList());
|
||||
ProxyFileTrafficMirrorCfgAudit fileTemp = new ProxyFileTrafficMirrorCfgAudit();
|
||||
Map map = new HashMap<String,List<String>>();
|
||||
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(map);
|
||||
fileTemp.setAddrList(gsonToJson(map));
|
||||
fileTemp.setAddrContent(cfg.getAddrList());
|
||||
fileTemp.setAddrType(cfg.getAddrType());
|
||||
fileTemp.setAction(cfg.getAction());
|
||||
|
||||
Reference in New Issue
Block a user