hc-aug-test.yang revision c85f9b7b
1module hc-aug-test {
2  yang-version 1;
3  namespace "urn:opendaylight:params:xml:ns:yang:hc:aug:test";
4  prefix "hcat";
5
6  revision "2017-01-09" {
7    description "Test model for aumentations of augmentations (https://jira.fd.io/browse/HONEYCOMB-302)";
8  }
9
10  import yang-ext {
11    prefix "ext";
12  }
13
14  container aug-target {
15    leaf some-leaf {
16      type string;
17    }
18  }
19
20  augment "/aug-target" {
21    ext:augment-identifier "from-augment-augment";
22    container from-augment {
23      leaf some-leaf {
24        type string;
25      }
26    }
27  }
28
29  augment "/aug-target" {
30    ext:augment-identifier "list-augment";
31    list list-from-augment {
32      key some-leaf;
33
34      leaf some-leaf {
35        type string;
36      }
37    }
38  }
39
40  augment "/aug-target" {
41    ext:augment-identifier "simple-augment";
42    leaf simple-augment-leaf {
43        type string;
44    }
45  }
46
47  augment "/aug-target/from-augment" {
48    ext:augment-identifier "simple-nested-augment";
49    leaf simple-nested-augment-leaf {
50        type string;
51    }
52  }
53
54  augment "/aug-target/from-augment" {
55    ext:augment-identifier "from-augment2-augment";
56    container from-augment-2 {
57      leaf new-leaf {
58        type string;
59      }
60    }
61  }
62
63  augment "/aug-target/from-augment" {
64    ext:augment-identifier "from-augment-list-augment";
65    list from-augment-entry {
66      key some-leaf;
67
68      leaf some-leaf {
69        type string;
70      }
71    }
72  }
73
74  augment "/aug-target/list-from-augment" {
75    ext:augment-identifier "list-from-augment-augment";
76    leaf new-leaf {
77        type string;
78    }
79  }
80
81}
82