diff options
| author | luwenpeng <[email protected]> | 2024-09-23 16:50:09 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-09-27 19:11:47 +0800 |
| commit | 5799de529955798ed0727c088ffa25f1e4e51445 (patch) | |
| tree | 818422edc9c400d84a5393bfe4e581496825019d /resource | |
| parent | 7ef8e44bca6bac3c905ed8d6a11cadd6edac156b (diff) | |
TSG-22348 feature: adapt maat support UUID
Diffstat (limited to 'resource')
| -rw-r--r-- | resource/sce.json | 371 | ||||
| -rw-r--r-- | resource/table_info.conf | 20 |
2 files changed, 355 insertions, 36 deletions
diff --git a/resource/sce.json b/resource/sce.json index dc2db94..25bb6c1 100644 --- a/resource/sce.json +++ b/resource/sce.json @@ -3,38 +3,363 @@ { "table_name": "SERVICE_FUNCTION_PROFILE", "table_content": [ - "1\t{\"tag\":\"data_center\",\"value\":\"data_center_a\"}\t1\t{\"method\":\"vxlan_g\",\"dest_ip\":\"1.1.1.1\"}\t{\"method\":\"none\"}\t1\t1", - "2\t{\"tag\":\"data_center\",\"value\":\"data_center_a\"}\t1\t{\"method\":\"vxlan_g\",\"dest_ip\":\"2.2.2.2\"}\t{\"method\":\"bfd\",\"interval_ms\":100,\"retires\":5}\t1\t1", - "3\t{\"tag\":\"data_center\",\"value\":\"data_center_a\"}\t1\t{\"method\":\"vxlan_g\",\"dest_ip\":\"1.1.1.1\"}\t{\"method\":\"in_band_bfd\",\"address\":\"1.2.3.4\",\"port\":\"10000\",\"interval_ms\":100,\"retires\":5}\t1\t1", - "4\t{\"tag\":\"data_center\",\"value\":\"data_center_a\"}\t1\t{\"method\":\"vxlan_g\",\"dest_ip\":\"1.1.1.1\"}\t{\"method\":\"http\",\"url\":\"http://192.168.100.1:8080/health_check.index\",\"interval_ms\":100,\"retires\":5}\t1\t1", - "5\t{\"tag\":\"data_center\",\"value\":\"data_center_a\"}\t1\t{\"method\":\"layer2_switch\",\"int_vlan_tag\":10,\"ext_vlan_tag\":5}\t{\"method\":\"none\"}\t1\t1", - "6\t{\"tag\":\"device_group\",\"value\":\"device_group_a\"}\t1\t{\"method\":\"layer3_switch\",\"int_vlan_tag\":10,\"ext_vlan_tag\":5}\t{\"method\":\"none\"}\t1\t1", - "7\t{\"tag\":\"device_group\",\"value\":\"device_group_a\"}\t0\t{\"method\":\"layer3_switch\",\"int_vlan_tag\":10,\"ext_vlan_tag\":5}\t{\"method\":\"none\"}\t1\t1", - "8\t{\"tag\":\"device_group\",\"value\":\"device_group_b\"}\t0\t{\"method\":\"layer3_switch\",\"int_vlan_tag\":10,\"ext_vlan_tag\":5}\t{\"method\":\"none\"}\t1\t1" + { + "uuid": "00000000-0000-0000-3333-000000000001", + "device_group": { + "tag": "data_center", + "value": "data_center_a" + }, + "admin_status": 1, + "connectivity": { + "method": "vxlan_g", + "dest_ip": "1.1.1.1" + }, + "health_check": { + "method": "none" + }, + "vsys_id": 1, + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-3333-000000000002", + "device_group": { + "tag": "data_center", + "value": "data_center_a" + }, + "admin_status": 1, + "connectivity": { + "method": "vxlan_g", + "dest_ip": "2.2.2.2" + }, + "health_check": { + "method": "bfd", + "interval_ms": 100, + "retires": 5 + }, + "vsys_id": 1, + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-3333-000000000003", + "device_group": { + "tag": "data_center", + "value": "data_center_a" + }, + "admin_status": 1, + "connectivity": { + "method": "vxlan_g", + "dest_ip": "1.1.1.1" + }, + "health_check": { + "method": "in_band_bfd", + "address": "1.2.3.4", + "port": "10000", + "interval_ms": 100, + "retires": 5 + }, + "vsys_id": 1, + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-3333-000000000004", + "device_group": { + "tag": "data_center", + "value": "data_center_a" + }, + "admin_status": 1, + "connectivity": { + "method": "vxlan_g", + "dest_ip": "1.1.1.1" + }, + "health_check": { + "method": "http", + "url": "http://192.168.100.1:8080/health_check.index", + "interval_ms": 100, + "retires": 5 + }, + "vsys_id": 1, + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-3333-000000000005", + "device_group": { + "tag": "data_center", + "value": "data_center_a" + }, + "admin_status": 1, + "connectivity": { + "method": "layer2_switch", + "int_vlan_tag": 10, + "ext_vlan_tag": 5 + }, + "health_check": { + "method": "none" + }, + "vsys_id": 1, + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-3333-000000000006", + "device_group": { + "tag": "device_group", + "value": "device_group_a" + }, + "admin_status": 1, + "connectivity": { + "method": "layer3_switch", + "int_vlan_tag": 10, + "ext_vlan_tag": 5 + }, + "health_check": { + "method": "none" + }, + "vsys_id": 1, + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-3333-000000000007", + "device_group": { + "tag": "device_group", + "value": "device_group_a" + }, + "admin_status": 0, + "connectivity": { + "method": "layer3_switch", + "int_vlan_tag": 10, + "ext_vlan_tag": 5 + }, + "health_check": { + "method": "none" + }, + "vsys_id": 1, + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-3333-000000000008", + "device_group": { + "tag": "device_group", + "value": "device_group_b" + }, + "admin_status": 0, + "connectivity": { + "method": "layer3_switch", + "int_vlan_tag": 10, + "ext_vlan_tag": 5 + }, + "health_check": { + "method": "none" + }, + "vsys_id": 1, + "is_valid": 1 + } ] }, { "table_name": "SERVICE_FUNCTION_FORWARDER_PROFILE", "table_content": [ - "1\t1\thash-int-ip\tnearby\tbypass\tnull\t[1]\t1", - "2\t1\thash-int-ip\tnearby\tbypass\tnull\t[1,2,3,4,5,6,7,8]\t1", - "3\t1\thash-int-ip\tnearby\tblock\tnull\t[1]\t1", - "4\t1\thash-int-ip\tnearby\tre-dispatch\t{\"action\":\"bypass\",\"health_service_func_lt\":2}\t[1,2,3]\t1", - "5\t1\thash-int-ip\tnearby\tre-dispatch\t{\"action\":\"block\"}\t[1,2,3]\t1", - "6\t1\thash-int-ip\tglobal\tblock\tnull\t[1]\t1", - "7\t1\thash-ext-ip\tglobal\tblock\tnull\t[1]\t1", - "8\t1\thash-int-ip-and-ext-ip\tglobal\tblock\tnull\t[1]\t1", - "9\t1\thash-innermost-int-ip\tglobal\tblock\tnull\t[1]\t1", - "10\t2\thash-innermost-int-ip\tglobal\tblock\tnull\t[1]\t1" + { + "uuid": "00000000-0000-0000-2222-000000000001", + "type": 1, + "load_balance_method": "hash-int-ip", + "load_balance_localization": "nearby", + "failure_action": "bypass", + "service_func_profiles": [ + "00000000-0000-0000-3333-000000000001" + ], + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-2222-000000000002", + "type": 1, + "load_balance_method": "hash-int-ip", + "load_balance_localization": "nearby", + "failure_action": "bypass", + "service_func_profiles": [ + "00000000-0000-0000-3333-000000000001", + "00000000-0000-0000-3333-000000000002", + "00000000-0000-0000-3333-000000000003", + "00000000-0000-0000-3333-000000000004", + "00000000-0000-0000-3333-000000000005", + "00000000-0000-0000-3333-000000000006", + "00000000-0000-0000-3333-000000000007", + "00000000-0000-0000-3333-000000000008" + ], + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-2222-000000000003", + "type": 1, + "load_balance_method": "hash-int-ip", + "load_balance_localization": "nearby", + "failure_action": "block", + "service_func_profiles": [ + "00000000-0000-0000-3333-000000000001" + ], + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-2222-000000000004", + "type": 1, + "load_balance_method": "hash-int-ip", + "load_balance_localization": "nearby", + "failure_action": "re-dispatch", + "unavailability_action": { + "action": "bypass", + "health_service_func_lt": 2 + }, + "service_func_profiles": [ + "00000000-0000-0000-3333-000000000001", + "00000000-0000-0000-3333-000000000002", + "00000000-0000-0000-3333-000000000003" + ], + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-2222-000000000005", + "type": 1, + "load_balance_method": "hash-int-ip", + "load_balance_localization": "nearby", + "failure_action": "re-dispatch", + "unavailability_action": { + "action": "block" + }, + "service_func_profiles": [ + "00000000-0000-0000-3333-000000000001", + "00000000-0000-0000-3333-000000000002", + "00000000-0000-0000-3333-000000000003" + ], + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-2222-000000000006", + "type": 1, + "load_balance_method": "hash-int-ip", + "load_balance_localization": "global", + "failure_action": "block", + "service_func_profiles": [ + "00000000-0000-0000-3333-000000000001" + ], + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-2222-000000000007", + "type": 1, + "load_balance_method": "hash-ext-ip", + "load_balance_localization": "global", + "failure_action": "block", + "service_func_profiles": [ + "00000000-0000-0000-3333-000000000001" + ], + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-2222-000000000008", + "type": 1, + "load_balance_method": "hash-int-ip-and-ext-ip", + "load_balance_localization": "global", + "failure_action": "block", + "service_func_profiles": [ + "00000000-0000-0000-3333-000000000001" + ], + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-2222-000000000009", + "type": 1, + "load_balance_method": "hash-innermost-int-ip", + "load_balance_localization": "global", + "failure_action": "block", + "service_func_profiles": [ + "00000000-0000-0000-3333-000000000001" + ], + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-2222-000000000010", + "type": 2, + "load_balance_method": "hash-innermost-int-ip", + "load_balance_localization": "global", + "failure_action": "block", + "service_func_profiles": [ + "00000000-0000-0000-3333-000000000001" + ], + "is_valid": 1 + } ] }, { - "table_name": "SERVICE_CHAINING_COMPILE", + "table_name": "SERVICE_CHAINING_RULE", "table_content": [ - "1\t0\t2\t1\t1\t{}\t{\"vsys_id\":1,\"targeted_traffic\":\"raw\",\"sff_profiles\":[1]}\t0\t1", - "2\t0\t2\t1\t1\t{}\t{\"vsys_id\":1,\"targeted_traffic\":\"raw\",\"sff_profiles\":[1,2,3,4,5,6,7,8,9,10]}\t0\t1", - "11\t0\t2\t1\t1\t{}\t{\"vsys_id\":1,\"targeted_traffic\":\"decrypted\",\"sff_profiles\":[1]}\t0\t1", - "12\t0\t2\t1\t1\t{}\t{\"vsys_id\":1,\"targeted_traffic\":\"decrypted\",\"sff_profiles\":[1,2,3,4,5,6,7,8,9,10]}\t0\t1" + { + "uuid": "00000000-0000-0000-1111-000000000001", + "log_option": "all", + "effective_range": {}, + "action_parameter": { + "vsys_id": 1, + "targeted_traffic": "raw", + "sff_profiles": [ + "00000000-0000-0000-2222-000000000001" + ] + }, + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-1111-000000000002", + "log_option": "all", + "effective_range": {}, + "action_parameter": { + "vsys_id": 1, + "targeted_traffic": "raw", + "sff_profiles": [ + "00000000-0000-0000-2222-000000000001", + "00000000-0000-0000-2222-000000000002", + "00000000-0000-0000-2222-000000000003", + "00000000-0000-0000-2222-000000000004", + "00000000-0000-0000-2222-000000000005", + "00000000-0000-0000-2222-000000000006", + "00000000-0000-0000-2222-000000000007", + "00000000-0000-0000-2222-000000000008", + "00000000-0000-0000-2222-000000000009", + "00000000-0000-0000-2222-000000000010" + ] + }, + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-1111-000000000011", + "log_option": "all", + "effective_range": {}, + "action_parameter": { + "vsys_id": 1, + "targeted_traffic": "decrypted", + "sff_profiles": [ + "00000000-0000-0000-2222-000000000001" + ] + }, + "is_valid": 1 + }, + { + "uuid": "00000000-0000-0000-1111-000000000012", + "log_option": "all", + "effective_range": {}, + "action_parameter": { + "vsys_id": 1, + "targeted_traffic": "decrypted", + "sff_profiles": [ + "00000000-0000-0000-2222-000000000001", + "00000000-0000-0000-2222-000000000002", + "00000000-0000-0000-2222-000000000003", + "00000000-0000-0000-2222-000000000004", + "00000000-0000-0000-2222-000000000005", + "00000000-0000-0000-2222-000000000006", + "00000000-0000-0000-2222-000000000007", + "00000000-0000-0000-2222-000000000008", + "00000000-0000-0000-2222-000000000009", + "00000000-0000-0000-2222-000000000010" + ] + }, + "is_valid": 1 + } ] } ] diff --git a/resource/table_info.conf b/resource/table_info.conf index 326a7ee..d5d0275 100644 --- a/resource/table_info.conf +++ b/resource/table_info.conf @@ -1,35 +1,29 @@ [ { "table_id":0, - "table_name":"SERVICE_CHAINING_COMPILE", + "table_name":"SERVICE_CHAINING_RULE", "table_type":"plugin", - "valid_column":9, "custom":{ - "key":1, - "key_type":"integer", - "key_len":8 + "key_type":"pointer", + "key_name":"uuid" } }, { "table_id":1, "table_name":"SERVICE_FUNCTION_FORWARDER_PROFILE", "table_type":"plugin", - "valid_column":8, "custom":{ - "key":1, - "key_type":"integer", - "key_len":4 + "key_type":"pointer", + "key_name":"uuid" } }, { "table_id":2, "table_name":"SERVICE_FUNCTION_PROFILE", "table_type":"plugin", - "valid_column":7, "custom":{ - "key":1, - "key_type":"integer", - "key_len":4 + "key_type":"pointer", + "key_name":"uuid" } } ]
\ No newline at end of file |
