Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
"PORT_QOS_MAP_APPLY_MAPS": {
"desc": "Configure qos maps on port."
},

"PORT_QOS_MAP_APPLY_MAP_TO_GLOBAL": {
"desc": "Configure qos maps on switch level."
},

"PORT_QOS_MAP_APPLY_NON_EXISTS_MAPS": {
"desc": "Configure non exists qos maps on port.",
Expand All @@ -94,7 +98,7 @@

"PORT_QOS_MAP_APPLY_NON_EXISTS_PORT": {
"desc": "Configure port qos map entry on non exists port.",
"eStrKey": "LeafRef"
"eStr": "Invalid value"
},

"PORT_QOS_MAP_APPLY_INVALID_PFC": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,39 @@
}
},

"PORT_QOS_MAP_APPLY_MAP_TO_GLOBAL": {
"sonic-dscp-tc-map:sonic-dscp-tc-map": {
"sonic-dscp-tc-map:DSCP_TO_TC_MAP": {
"DSCP_TO_TC_MAP_LIST": [
{
"name": "map1",
"DSCP_TO_TC_MAP": [
{
"dscp": "1",
"tc": "1"
},
{
"dscp":"2",
"tc":"2"
}
]
}
]
}
},

"sonic-port-qos-map:sonic-port-qos-map": {
"sonic-port-qos-map:PORT_QOS_MAP": {
"PORT_QOS_MAP_LIST": [
{
"ifname": "global",
"dscp_to_tc_map": "map1"
}
]
}
}
},

"PORT_QOS_MAP_APPLY_NON_EXISTS_MAPS": {
"sonic-port:sonic-port": {
"sonic-port:PORT": {
Expand Down
15 changes: 10 additions & 5 deletions src/sonic-yang-models/yang-models/sonic-port-qos-map.yang
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,16 @@ module sonic-port-qos-map {
key "ifname";

leaf ifname {
type leafref {
path "/prt:sonic-port/prt:PORT/prt:PORT_LIST/prt:name";
}
description
"Reference of port on which QOS MAPS to be configured.";
type union {
type string {
pattern "global";
}
type leafref {
path "/prt:sonic-port/prt:PORT/prt:PORT_LIST/prt:name";
}
}
description
"Reference of port or global on which QOS MAPS to be configured.";
}

leaf tc_to_pg_map {
Expand Down