-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch add ability to get minumum and maximum number of elements. It also adds ability to get list of SList unique definitions.
- Loading branch information
Showing
3 changed files
with
114 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
module yolo-nodetypes { | ||
yang-version 1.1; | ||
namespace "urn:yang:yolo:nodetypes"; | ||
prefix sys; | ||
|
||
description | ||
"YOLO Nodetypes."; | ||
|
||
revision 2024-01-25 { | ||
description | ||
"Initial version."; | ||
} | ||
|
||
container conf { | ||
description | ||
"Configuration."; | ||
leaf percentage { | ||
type decimal64 { | ||
fraction-digits 2; | ||
} | ||
default 10.2; | ||
} | ||
|
||
leaf-list ratios { | ||
type decimal64 { | ||
fraction-digits 2; | ||
} | ||
default 2.5; | ||
default 2.6; | ||
} | ||
|
||
list list1 { | ||
key leaf1; | ||
unique "leaf2 leaf3"; | ||
min-elements 2; | ||
max-elements 10; | ||
leaf leaf1 { | ||
type string; | ||
} | ||
leaf leaf2 { | ||
type string; | ||
} | ||
leaf leaf3 { | ||
type string; | ||
} | ||
} | ||
|
||
leaf-list leaf-list1 { | ||
type string; | ||
min-elements 3; | ||
max-elements 11; | ||
} | ||
} | ||
} |