We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20869c8 commit ed8d2baCopy full SHA for ed8d2ba
models/yang/sonic/sonic-port.yang
@@ -44,19 +44,28 @@ module sonic-port {
44
}
45
46
leaf speed {
47
- type uint64;
+ type uint64 {
48
+ range "1000|10000|25000|40000|50000|100000|400000" {
49
+ error-message "Invalid Ethernet interface speed";
50
+ error-app-tag port-speed-invalid;
51
+ }
52
53
54
55
leaf valid_speeds {
56
type string;
57
58
59
leaf alias {
- type string;
60
+ type string {
61
+ pattern '[ -~]{0,64}';
62
63
64
65
leaf description {
66
67
68
69
70
71
leaf mtu{
0 commit comments