-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsonic-buffer-pg.yang
More file actions
74 lines (57 loc) · 1.96 KB
/
Copy pathsonic-buffer-pg.yang
File metadata and controls
74 lines (57 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
module sonic-buffer-pg {
namespace "http://github.com/sonic-net/sonic-buffer-pg";
prefix bpg;
yang-version 1.1;
import sonic-port {
prefix prt;
}
import sonic-buffer-profile {
prefix bpf;
}
organization
"SONiC";
contact
"SONiC";
description
"Ingress buffer priority group configuration for SONiC ports.";
revision 2021-07-01 {
description
"Initial revision.";
}
container sonic-buffer-pg {
container BUFFER_PG {
description "Configures ingress buffer allocation per priority group on a port.";
list BUFFER_PG_LIST {
key "port pg_num";
description "Buffer priority group entry for a specific port and priority group range.";
leaf port {
type leafref {
path "/prt:sonic-port/prt:PORT/prt:PORT_LIST/prt:name";
}
description "Port on which the buffer priority group is configured.";
}
leaf pg_num {
type string {
pattern "[0-7]((-)[0-7])?" {
error-message "Invalid Buffer PG number";
error-app-tag pg-num-invalid;
}
}
description "Priority Group number";
}
leaf profile {
default 0;
type union {
type leafref {
path "/bpf:sonic-buffer-profile/bpf:BUFFER_PROFILE/bpf:BUFFER_PROFILE_LIST/bpf:name";
}
type string {
pattern "NULL";
}
}
description "Buffer Profile associated with Priority Group number for a port";
}
}
}
}
}