[YANG] Update YANG model for pfcwd_sw_enable (#10444)

* Update YANG for pfcwd_sw_enable

Signed-off-by: bingwang <wang.bing@microsoft.com>
This commit is contained in:
bingwang-ms 2022-04-04 17:10:06 +08:00 committed by GitHub
parent 13aa2332e8
commit 470d73585a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 5 deletions

View File

@ -1603,7 +1603,8 @@
"tc_to_pg_map": "tc_to_pg_map1",
"pfc_to_queue_map": "pfc_prio_to_q_map1",
"pfc_to_pg_map" : "pfc_prio_to_pg_map1",
"pfc_enable" : "3,4"
"pfc_enable" : "3,4",
"pfcwd_sw_enable" : "3,4"
},
"Ethernet4": {
"dot1p_to_tc_map" : "Dot1p_to_tc_map2",
@ -1612,7 +1613,8 @@
"tc_to_pg_map": "tc_to_pg_map2",
"pfc_to_queue_map": "pfc_prio_to_q_map2",
"pfc_to_pg_map" : "pfc_prio_to_pg_map2",
"pfc_enable" : "3,4"
"pfc_enable" : "3,4",
"pfcwd_sw_enable" : "3,4"
}
},

View File

@ -621,7 +621,8 @@
"pfc_to_pg_map": "map1",
"dscp_to_tc_map": "map1",
"dot1p_to_tc_map": "map1",
"pfc_enable": "3,4"
"pfc_enable": "3,4",
"pfcwd_sw_enable" : "3,4"
}
]
}
@ -657,7 +658,8 @@
"pfc_to_pg_map": "map2",
"dscp_to_tc_map": "map2",
"dot1p_to_tc_map": "map2",
"pfc_enable": "3,4"
"pfc_enable": "3,4",
"pfcwd_sw_enable" : "3,4"
}
]
}
@ -714,7 +716,8 @@
"PORT_QOS_MAP_LIST": [
{
"ifname": "Ethernet4",
"pfc_enable": "8"
"pfc_enable": "8",
"pfcwd_sw_enable" : "8"
}
]
}

View File

@ -81,6 +81,14 @@ module sonic-port-qos-map {
}
}
leaf pfcwd_sw_enable {
type string {
pattern "[0-7](,[0-7])?";
}
description
"Specify the queue(s) on which software pfc watchdog are enabled.";
}
leaf pfc_to_queue_map {
type leafref {
path "/ppqm:sonic-pfc-priority-queue-map/ppqm:MAP_PFC_PRIORITY_TO_QUEUE/ppqm:MAP_PFC_PRIORITY_TO_QUEUE_LIST/ppqm:name";