summaryrefslogtreecommitdiffstats
path: root/infra/it/test-model/src/main/yang/hc-aug-test.yang
blob: 95179d4221d72eccff4617417038081b2a0535fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
module hc-aug-test {
  yang-version 1;
  namespace "urn:opendaylight:params:xml:ns:yang:hc:aug:test";
  prefix "hcat";

  revision "2017-01--9" {
    description "Test model for aumentations of augmentations (https://jira.fd.io/browse/HONEYCOMB-302)";
  }

  import yang-ext {
    prefix "ext";
  }

  container aug-target {
    leaf some-leaf {
      type string;
    }
  }

  augment "/aug-target" {
    ext:augment-identifier "from-augment-augment";
    container from-augment {
      leaf some-leaf {
        type string;
      }
    }
  }

  augment "/aug-target" {
    ext:augment-identifier "list-augment";
    list list-from-augment {
      key some-leaf;

      leaf some-leaf {
        type string;
      }
    }
  }

  augment "/aug-target" {
    ext:augment-identifier "simple-augment";
    leaf simple-augment-leaf {
        type string;
    }
  }

  augment "/aug-target/from-augment" {
    ext:augment-identifier "simple-nested-augment";
    leaf simple-nested-augment-leaf {
        type string;
    }
  }

  augment "/aug-target/from-augment" {
    ext:augment-identifier "from-augment2-augment";
    container from-augment-2 {
      leaf new-leaf {
        type string;
      }
    }
  }

  augment "/aug-target/from-augment" {
    ext:augment-identifier "from-augment-list-augment";
    list from-augment-entry {
      key some-leaf;

      leaf some-leaf {
        type string;
      }
    }
  }

  augment "/aug-target/list-from-augment" {
    ext:augment-identifier "list-from-augment-augment";
    leaf new-leaf {
        type string;
    }
  }

}