summaryrefslogtreecommitdiff
path: root/resource
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2024-07-15 14:21:33 +0800
committerfengweihao <[email protected]>2024-07-15 14:21:33 +0800
commit5b25651ff64aecc681f6427d61763d8aaddf7121 (patch)
tree72ccf6d5d315c9b3bd2b400b8b8a2708e3d33ec8 /resource
parentab623ffa63d14a1521d11e93d95807ce60517e9f (diff)
TSG-21670 策略验证支持Library查询
Diffstat (limited to 'resource')
-rw-r--r--resource/table_info.conf24
-rw-r--r--resource/table_info_simple.conf24
-rw-r--r--resource/verify-policy.json18
3 files changed, 64 insertions, 2 deletions
diff --git a/resource/table_info.conf b/resource/table_info.conf
index 4dfd4ef..c8bb0f2 100644
--- a/resource/table_info.conf
+++ b/resource/table_info.conf
@@ -1195,5 +1195,29 @@
"table_name":"ATTR_TUNNEL_IP_IN_IP_ENDPOINT",
"table_type":"virtual",
"physical_table": "TSG_OBJ_IP"
+ },
+ {
+ "table_id":125,
+ "table_name":"FQDN_ENTRY",
+ "table_type":"fqdn_plugin",
+ "valid_column":5,
+ "custom": {
+ "item_id":1,
+ "suffix_match_method":4,
+ "fqdn":3
+ }
+ },
+ {
+ "table_id":126,
+ "table_name":"IP_ADDR_ENTRY",
+ "table_type":"ip_plugin",
+ "valid_column":8,
+ "custom": {
+ "item_id":1,
+ "ip_type":3,
+ "start_ip":5,
+ "end_ip":6,
+ "addr_format":4
+ }
}
] \ No newline at end of file
diff --git a/resource/table_info_simple.conf b/resource/table_info_simple.conf
index 10b96f5..19c8861 100644
--- a/resource/table_info_simple.conf
+++ b/resource/table_info_simple.conf
@@ -1119,5 +1119,29 @@
"table_name":"ATTR_TUNNEL_IP_IN_IP_ENDPOINT",
"table_type":"virtual",
"physical_table": "TSG_OBJ_IP"
+ },
+ {
+ "table_id":125,
+ "table_name":"FQDN_ENTRY",
+ "table_type":"fqdn_plugin",
+ "valid_column":5,
+ "custom": {
+ "item_id":1,
+ "suffix_match_method":4,
+ "fqdn":3
+ }
+ },
+ {
+ "table_id":126,
+ "table_name":"IP_ADDR_ENTRY",
+ "table_type":"ip_plugin",
+ "valid_column":8,
+ "custom": {
+ "item_id":1,
+ "ip_type":3,
+ "start_ip":5,
+ "end_ip":6,
+ "addr_format":4
+ }
}
] \ No newline at end of file
diff --git a/resource/verify-policy.json b/resource/verify-policy.json
index 20ff9b1..d6053f2 100644
--- a/resource/verify-policy.json
+++ b/resource/verify-policy.json
@@ -45,8 +45,8 @@
"virtual_table": "ATTR_SOURCE_IP",
"regions": [
{
- "table_type": "ip_plus",
- "table_name": "TSG_OBJ_IP_ADDR",
+ "table_type": "ip",
+ "table_name": "TSG_IP_ADDR",
"table_content": {
"addr_type": "ipv4",
"addr_format": "range",
@@ -322,6 +322,20 @@
"0\t3\t126.com\t1\t701\t1",
"1\t4\tbaidu.com\t1\t702\t1"
]
+ },
+ {
+ "table_name": "FQDN_ENTRY",
+ "table_content": [
+ "1\t2,4,5\twww.126.com\t1\t1",
+ "2\t6,7,8\twww.baidu.com\t1\t1"
+ ]
+ },
+ {
+ "table_name": "IP_ADDR_ENTRY",
+ "table_content": [
+ "1\t2,4,5\t4\tsingle\t192.168.55.4\t192.168.55.4\t0\t1",
+ "1\t2,4,5\t4\tsingle\t192.168.55.4\t192.168.55.4\t0\t1"
+ ]
}
]
}