DDOS配置导入流量阈值(bps)/(pps)属性增加限制;配置导入模板Rule Name增加批注
This commit is contained in:
@@ -143,6 +143,16 @@ public class ExportExcel {
|
||||
String defaultValue="";
|
||||
int index=0;
|
||||
String[] titleInfo=new String[3];
|
||||
|
||||
// Rule Name
|
||||
if("config_describe".equals(headerStr)) {
|
||||
commentStr=commentStr+msgProp.getProperty("rule_desc_tip")+":\n";
|
||||
index++;
|
||||
//1、非空
|
||||
commentStr=commentStr+"▶"+msgProp.getProperty("required")+"\n";
|
||||
index++;
|
||||
}
|
||||
|
||||
//p2p_hash_type
|
||||
if("p2p_hash_type".equals(headerStr)){
|
||||
commentStr="";
|
||||
@@ -403,13 +413,17 @@ public class ExportExcel {
|
||||
if("bps_threadshold".equals(headerStr)){
|
||||
commentStr=commentStr+msgProp.getProperty("rule_desc_tip")+":\n";
|
||||
index++;
|
||||
commentStr=commentStr+msgProp.getProperty("input_integer")+"\n";
|
||||
commentStr=commentStr+"▶"+msgProp.getProperty("input_integer")+"\n";
|
||||
index++;
|
||||
commentStr=commentStr+"▶"+msgProp.getProperty("min_value")+"1000000\n";
|
||||
index++;
|
||||
}
|
||||
if("pps_threadshold".equals(headerStr)){
|
||||
commentStr=commentStr+msgProp.getProperty("rule_desc_tip")+":\n";
|
||||
index++;
|
||||
commentStr=commentStr+msgProp.getProperty("input_integer")+"\n";
|
||||
commentStr=commentStr+"▶"+msgProp.getProperty("input_integer")+"\n";
|
||||
index++;
|
||||
commentStr=commentStr+"▶"+msgProp.getProperty("min_value")+"1000\n";
|
||||
index++;
|
||||
}
|
||||
if("group".equals(headerStr)) {
|
||||
@@ -1099,6 +1113,7 @@ public class ExportExcel {
|
||||
if(StringUtil.isEmpty(defaultValue)){
|
||||
defaultValue="0";
|
||||
}
|
||||
defaultValue = region.getFunctionId().equals(301)?"1":defaultValue;
|
||||
}
|
||||
/*}*/
|
||||
/*if(StringUtil.isEmpty(commentStr)){
|
||||
|
||||
Reference in New Issue
Block a user