summaryrefslogtreecommitdiffstats
path: root/core/sli/model/src/main/yang/test-model@2019-07-23.yang
diff options
context:
space:
mode:
Diffstat (limited to 'core/sli/model/src/main/yang/test-model@2019-07-23.yang')
-rwxr-xr-xcore/sli/model/src/main/yang/test-model@2019-07-23.yang190
1 files changed, 104 insertions, 86 deletions
diff --git a/core/sli/model/src/main/yang/test-model@2019-07-23.yang b/core/sli/model/src/main/yang/test-model@2019-07-23.yang
index fc8e8b007..87419f838 100755
--- a/core/sli/model/src/main/yang/test-model@2019-07-23.yang
+++ b/core/sli/model/src/main/yang/test-model@2019-07-23.yang
@@ -18,43 +18,43 @@ module test-model {
revision "2019-07-23" {
description
- "First release of the test model";
+ "First release of the test model";
}
identity sample-identity {
- description
- "Base identity";
+ description
+ "Base identity";
}
- typedef percentage {
- type uint8 {
- range "0 .. 100";
- }
- description "represents a percentage";
- }
+ typedef percentage {
+ type uint8 {
+ range "0 .. 100";
+ }
+ description "represents a percentage";
+ }
grouping builtin {
leaf sample-binary {
type binary;
}
leaf sample-bits {
- type bits{
- bit fan-running {
- position 0;
- }
- bit hd-led {
- position 1;
- }
- bit power-led {
- position 2;
- }
+ type bits {
+ bit fan-running {
+ position 0;
+ }
+ bit hd-led {
+ position 1;
+ }
+ bit power-led {
+ position 2;
+ }
}
}
leaf sample-boolean {
type boolean;
}
leaf sample-decimal64 {
- type decimal64{
+ type decimal64 {
fraction-digits 1;
}
}
@@ -62,7 +62,7 @@ module test-model {
type empty;
}
leaf sample-enumeration {
- type enumeration{
+ type enumeration {
enum "shelf.slot.port";
enum "not available";
enum "CURRENTLY_AVAILABLE";
@@ -71,9 +71,9 @@ module test-model {
}
}
leaf sample-identityref {
- type identityref {
- base "sample-identity";
- }
+ type identityref {
+ base "sample-identity";
+ }
}
leaf sample-int8 {
type int8;
@@ -88,9 +88,9 @@ module test-model {
type int64;
}
leaf sample-leafref {
- type leafref {
- path "../sample-boolean";
- }
+ type leafref {
+ path "../sample-boolean";
+ }
}
leaf sample-string {
type string;
@@ -108,103 +108,121 @@ module test-model {
type uint64;
}
leaf sample-union {
- type union {
- type int32;
- type enumeration {
- enum "unbounded";
- }
- }
- }
- leaf percent-completed {
- type percentage;
- }
+ type union {
+ type int32;
+ type enumeration {
+ enum "unbounded";
+ }
+ }
+ }
+ leaf percent-completed {
+ type percentage;
+ }
}
grouping inet-types-grouping {
leaf ip-version {
- type inet:ip-version;
+ type inet:ip-version;
}
leaf dscp {
- type inet:dscp;
+ type inet:dscp;
}
leaf port-number {
- type inet:port-number;
+ type inet:port-number;
}
leaf ipv6-flow-label {
- type inet:ipv6-flow-label;
+ type inet:ipv6-flow-label;
}
leaf as-number {
- type inet:as-number;
+ type inet:as-number;
}
leaf ip-address {
- type inet:ip-address;
+ type inet:ip-address;
}
leaf ipv4-address {
- type inet:ipv4-address;
+ type inet:ipv4-address;
}
leaf ipv6-address {
- type inet:ipv6-address;
+ type inet:ipv6-address;
}
leaf ip-address-no-zone {
- type inet:ip-address-no-zone;
+ type inet:ip-address-no-zone;
}
leaf ipv4-address-no-zone {
- type inet:ipv4-address-no-zone;
+ type inet:ipv4-address-no-zone;
}
leaf ipv6-address-no-zone {
- type inet:ipv6-address-no-zone;
+ type inet:ipv6-address-no-zone;
}
leaf ip-prefix {
- type inet:ip-prefix;
+ type inet:ip-prefix;
}
leaf ipv4-prefix {
- type inet:ipv4-prefix;
+ type inet:ipv4-prefix;
}
leaf ipv6-prefix {
- type inet:ipv6-prefix;
+ type inet:ipv6-prefix;
}
leaf domain-name {
- type inet:domain-name;
+ type inet:domain-name;
}
leaf host {
- type inet:host;
+ type inet:host;
}
leaf uri {
- type inet:uri;
+ type inet:uri;
}
- anyxml data;
+ anyxml data;
}
container sample-container {
- leaf customer-name {
- type string;
- }
-
- leaf-list customer-nicknames {
- type string;
- }
-
- container login {
- leaf message {
- type string;
- description
- "Message given at start of login session";
- }
-
- list customer-addresses {
- key "address-name";
- leaf address-name {
- type string;
- }
- leaf street-address {
- type string;
- }
- leaf state {
- type string;
- }
- }
- }
- uses builtin;
- uses inet-types-grouping;
- }
+ leaf customer-name {
+ type string;
+ }
+
+ leaf-list customer-nicknames {
+ type string;
+ }
+
+ container login {
+ leaf message {
+ type string;
+ description
+ "Message given at start of login session";
+ }
+
+ list customer-addresses {
+ key "address-name";
+ leaf address-name {
+ type string;
+ }
+ leaf street-address {
+ type string;
+ }
+ leaf state {
+ type string;
+ }
+ }
+ }
+ list ip-address-list {
+ key "ip-addr";
+ leaf ip-addr {
+ type inet:ip-address;
+ }
+ }
+ leaf-list ip-address-leaf-list {
+ type inet:ip-address;
+ }
+ list ip-address-names {
+ key "ip-addr";
+ leaf ip-addr {
+ type inet:ip-address;
+ }
+ leaf fqdn {
+ type string;
+ }
+ }
+ uses builtin;
+ uses inet-types-grouping;
+ }
}