summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <[email protected]>2023-12-04 10:23:34 +0000
committerroot <[email protected]>2023-12-04 10:23:34 +0000
commit183eae4bf95f6d60167c56d2bedf4d60e097f1d3 (patch)
tree18265b874b6cc18bb2ab2870e45fe7a9b99bde79
parentca892c8bdfd82979edc7dbb6821cd51ceae516c4 (diff)
change table info to adapt new struct of compile table
-rw-r--r--conf/shaping_maat.json1
-rw-r--r--conf/table_info.json2
-rw-r--r--shaping/test/gtest_shaper_maat.cpp1
3 files changed, 3 insertions, 1 deletions
diff --git a/conf/shaping_maat.json b/conf/shaping_maat.json
index 9d518f9..ad01d58 100644
--- a/conf/shaping_maat.json
+++ b/conf/shaping_maat.json
@@ -11,6 +11,7 @@
"do_log": 1,
"effective_rage": 0,
"user_region": "{\"priority\":1,\"fair_factor\":10,\"profile_chain\":[1]}",
+ "group_num" : 0,
"is_valid": "yes",
"groups": [
{
diff --git a/conf/table_info.json b/conf/table_info.json
index 692f4f6..a792caa 100644
--- a/conf/table_info.json
+++ b/conf/table_info.json
@@ -7,7 +7,7 @@
"custom": {
"key": 1,
"key_type": "integer",
- "key_len": 8
+ "key_len": 9
}
},
{
diff --git a/shaping/test/gtest_shaper_maat.cpp b/shaping/test/gtest_shaper_maat.cpp
index 80b91de..17a31ed 100644
--- a/shaping/test/gtest_shaper_maat.cpp
+++ b/shaping/test/gtest_shaper_maat.cpp
@@ -14,6 +14,7 @@ TEST(shaping_rule, parse)
1\t\
{}\t\
{\"vsys_id\":2333,\"priority\":1,\"fair_factor\":10,\"profile_chain\":[1,2,3]}\t\
+ 0\t\
1\t\
}";