namespace "urn:simple.types.data.demo";
prefix "t2";
- import types1 {
- prefix "if";
- revision-date 2013-02-27;
- }
-
organization "opendaylight";
- contact "WILL-BE-DEFINED-LATER";
+ contact "http://www.opendaylight.org/";
+
description "This is types-data test description";
revision "2013-02-27" {
}
}
- augment "/if:interfaces/if:ifEntry" {
- when "if:ifType='ds0'";
- leaf ds0ChannelNumber {
- type string;
- }
- }
-
leaf if-name {
type leafref {
path "/interface/name";
type string;
}
}
+
+ grouping target {
+ leaf address {
+ type string;
+ description "Target IP address";
+ }
+ container port {
+ description "Target port container";
+ }
+ }
+
+ container peer {
+ container destination {
+ uses target {
+ refine address {
+ default "1.2.3.4";
+ }
+ refine port {
+ must "must-condition" {
+ error-message "An error message test";
+ error-app-tag "An error app tag test";
+ }
+ }
+ }
+ }
+ }
+
+ container interfaces {
+ list ifEntry {
+ key "ifIndex";
+
+ leaf ifIndex {
+ type uint32;
+ units minutes;
+ }
+
+ leaf ifMtu {
+ type int32;
+ }
+ }
+ }
}