-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cherry-pick][202012] Update db_migrator to support pfcwd_sw_enable (#…
…2160) [cherry-pick][202012] Update db_migrator to support pfcwd_sw_enable (#2160) * Update db_migrator to support pfcwd_sw_enable Signed-off-by: bingwang <[email protected]>
- Loading branch information
1 parent
b3928ed
commit 74bf951
Showing
4 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
tests/db_migrator_input/config_db/qos_map_table_expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"VERSIONS|DATABASE": { | ||
"VERSION": "version_2_0_0" | ||
}, | ||
"PORT_QOS_MAP": { | ||
"Ethernet0": { | ||
"dscp_to_tc_map": "[DSCP_TO_TC_MAP|AZURE]", | ||
"pfc_enable": "3,4", | ||
"pfcwd_sw_enable": "3,4", | ||
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]", | ||
"tc_to_pg_map": "[TC_TO_PRIORITY_GROUP_MAP|AZURE]", | ||
"tc_to_queue_map": "[TC_TO_QUEUE_MAP|AZURE]" | ||
}, | ||
"Ethernet100": { | ||
"dscp_to_tc_map": "[DSCP_TO_TC_MAP|AZURE]", | ||
"pfc_enable": "3,4", | ||
"pfcwd_sw_enable": "3,4", | ||
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]", | ||
"tc_to_pg_map": "[TC_TO_PRIORITY_GROUP_MAP|AZURE]", | ||
"tc_to_queue_map": "[TC_TO_QUEUE_MAP|AZURE]" | ||
}, | ||
"Ethernet92": { | ||
"dscp_to_tc_map": "[DSCP_TO_TC_MAP|AZURE]", | ||
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]", | ||
"tc_to_pg_map": "[TC_TO_PRIORITY_GROUP_MAP|AZURE]", | ||
"tc_to_queue_map": "[TC_TO_QUEUE_MAP|AZURE]" | ||
}, | ||
"Ethernet96": { | ||
"dscp_to_tc_map": "[DSCP_TO_TC_MAP|AZURE]", | ||
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]", | ||
"tc_to_pg_map": "[TC_TO_PRIORITY_GROUP_MAP|AZURE]", | ||
"tc_to_queue_map": "[TC_TO_QUEUE_MAP|AZURE]" | ||
} | ||
} | ||
} | ||
|
34 changes: 34 additions & 0 deletions
34
tests/db_migrator_input/config_db/qos_map_table_input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"VERSIONS|DATABASE": { | ||
"VERSION": "version_2_0_0" | ||
}, | ||
"PORT_QOS_MAP": { | ||
"Ethernet0": { | ||
"dscp_to_tc_map": "[DSCP_TO_TC_MAP|AZURE]", | ||
"pfc_enable": "3,4", | ||
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]", | ||
"tc_to_pg_map": "[TC_TO_PRIORITY_GROUP_MAP|AZURE]", | ||
"tc_to_queue_map": "[TC_TO_QUEUE_MAP|AZURE]" | ||
}, | ||
"Ethernet100": { | ||
"dscp_to_tc_map": "[DSCP_TO_TC_MAP|AZURE]", | ||
"pfc_enable": "3,4", | ||
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]", | ||
"tc_to_pg_map": "[TC_TO_PRIORITY_GROUP_MAP|AZURE]", | ||
"tc_to_queue_map": "[TC_TO_QUEUE_MAP|AZURE]" | ||
}, | ||
"Ethernet92": { | ||
"dscp_to_tc_map": "[DSCP_TO_TC_MAP|AZURE]", | ||
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]", | ||
"tc_to_pg_map": "[TC_TO_PRIORITY_GROUP_MAP|AZURE]", | ||
"tc_to_queue_map": "[TC_TO_QUEUE_MAP|AZURE]" | ||
}, | ||
"Ethernet96": { | ||
"dscp_to_tc_map": "[DSCP_TO_TC_MAP|AZURE]", | ||
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]", | ||
"tc_to_pg_map": "[TC_TO_PRIORITY_GROUP_MAP|AZURE]", | ||
"tc_to_queue_map": "[TC_TO_QUEUE_MAP|AZURE]" | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters