aboutsummaryrefslogtreecommitdiffstats
path: root/restconf-client/provider/src/test/resources/yang/test_augment_1_for_module.yang
blob: d2eeea7d1f91426a5d66c83edd75390d045bd5e1 (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
module test_augment_1_for_module {
    yang-version 1;
    namespace "urn:opendaylight:params:xml:ns:yang:test:augment:name";
    prefix "augment-name";

    import test_name_of_the_module {
       prefix aug;
    }

    revision "2015-01-05" {
        description "Initial revision of hello model";
    }

    augment "/aug:name_of_the_cont1/aug:name_of_the_cont2/aug:name_of_the_cont4" {
        container name_of_the_cont5 {
            leaf name_of_the_leaf13 {
               type empty;
            }
        }
        list name_of_the_list7 {
            leaf name_of_the_leaf14 {
                type instance-identifier;
            }
        }
        leaf name_of_the_leaf15 {
            type string;
        }
        leaf-list name_of_the_ll6 {
            type union {
                type int32;
                type enumeration {
                    enum "unbounded";
                }
            }
        }
        uses "aug:name_of_the_g1";
    }

    uses "aug:name_of_the_g1";

    augment "/aug:name_of_the_cont1/aug:name_of_the_cont2/aug:name_of_the_cont3" {
        choice name_of_the_ch2 {
            case name_of_the_c3 {
                leaf name_of_the_leaf21 {
                    type string;
                }
            }
            case name_of_the_c4 {
                leaf name_of_the_leaf22 {
                    type enumeration {
                        enum zero;
                        enum one;
                        enum seven {
                            value 7;
                        }
                    }
                }
            }
        }
    }

    augment "/aug:name_of_the_ch1" {
       case name_of_the_c5 {
          container name_of_the_cont10 {
              leaf name_of_the_leaf23 {
                  type string;
              }
          }
       }
    }

    augment "/aug:name_of_the_ch1/aug:name_of_the_c1" {
        container name_of_the_cont7 {
            leaf name_of_the_leaf24 {
                type string;
            }
        }
    }

    augment "/aug:name_of_the_cont13/aug:name_of_the_cont12" {
       leaf name_of_the_leaf29 {
           type string;
       }
    }

    augment "/aug:name_of_the_create-sfc/aug:input" {
        leaf name_of_the_leaf36 {
            type bits {
                bit angle {
                    position 0;
                }
                bit degree {
                    position 1;
                }
                bit movement {
                    position 2;
                }
            }
        }
    }

    augment "/aug:name_of_the_create-sfc/aug:output" {
       leaf leaf37 {
           type boolean;
       }
    }

}