sonic-buildimage/src/sonic-yang-models/yang-models/sonic-dscp-fc-map.yang
Praveen Chaudhary 2b7a3ac6c0
[yang-models]: Change name-space from Azure to sonic-net. (#12416)
Changes:
-- Change name-space from Azure to sonic-net.
-- Sort yang list in setup.py for yang-models list.

#### Why I did it
Sonic repo has moved to Linux-foundation.

#### How I did it
[yang-models]: Change name-space from Azure to sonic-net.

#### How to verify it
PR Tests are good enough to verify.
2022-10-31 16:37:25 -07:00

69 lines
1.7 KiB
YANG

module sonic-dscp-fc-map {
yang-version 1.1;
namespace "http://github.com/sonic-net/sonic-dscp-fc-map";
prefix dtm;
organization
"SONiC";
contact
"SONiC";
description
"DSCP_TO_FC_MAP yang Module for SONiC OS";
revision 2021-10-29 {
description
"Initial revision.";
}
container sonic-dscp-fc-map {
container DSCP_TO_FC_MAP {
description "DSCP_TO_FC_MAP part of config_db.json";
list DSCP_TO_FC_MAP_LIST {
key "name";
leaf name {
type string {
pattern '[a-zA-Z0-9]{1}([-a-zA-Z0-9_]{0,31})';
length 1..32 {
error-message "Invalid length for map name.";
error-app-tag map-name-invalid-length;
}
}
}
list DSCP_TO_FC_MAP { //this is list inside list for storing mapping between two fields
key "dscp";
leaf dscp {
type string {
pattern "6[0-3]|[1-5][0-9]?|[0-9]?" {
error-message "Invalid DSCP";
error-app-tag dscp-invalid;
}
}
}
leaf fc {
type string {
pattern "[0-7]?" {
error-message "Invalid Forwarding Class";
error-app-tag fc-invalid;
}
}
}
}
}
}
}
}