summaryrefslogtreecommitdiffstats
path: root/netconf/restconf/restconf-nb-bierman02/src/test/resources/instanceidentifier/yang/augment-module.yang
blob: c918ef98ad64ebb5773231a6312f8b8f2a4785f3 (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
module augment-module {
  namespace "augment:module";

  prefix "amodule";

  import instance-identifier-module {prefix imodule; revision-date 2014-01-17;}

  revision 2014-01-17 {
  }

	augment "/imodule:cont/imodule:cont1" {
	   list lst11 {
	       key "keyvalue111 keyvalue112";
	       leaf keyvalue111 {
	           type string;
	       }
	       leaf keyvalue112 {
	           type string;
	       }
	   }
	}

    augment "/imodule:cont" {
	    container cont-augment {
            leaf leaf1 {
                type string;
            }
        }
	}

    augment "/imodule:cont" {
        choice augment-choice1 {
            case case1 {
                container case-container1 {
                    leaf case-leaf1 {
                        type string;
                    }
                }
            }

            case case2 {
                container case-container2 {
                    leaf case-leaf2 {
                        type string;
                    }
                }
            }
        }
    }

    augment "/imodule:cont/augment-choice1/case1" {
        choice augment-choice2 {
            case case11 {
                container case-choice-case-container1 {
                    leaf case-choice-case-leaf1 {
                        type string;
                    }
                }
            }
        }
    }

}