summaryrefslogtreecommitdiffstats
path: root/netconf/restconf/restconf-nb-bierman02/src/test/resources/nn-to-json/leafref/cont-augment-module.yang
blob: b54027e0bc9ee7de4a655bfcb74c26824f6594ab (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
module cont-augment-module {
  namespace "cont:augment:module";

  prefix "cntaugmod";

  import main-module {prefix mamo; revision-date 2013-12-02;}

  revision 2013-12-02 {

  }

  augment "/mamo:cont" {
  	leaf-list lflst1 {
  		type leafref {
  			path "../mamo:lf1";
  		}
  	}

  	leaf lf4 {
  		type leafref {
  			path "../mamo:lf1";
  		}
  	}

  	/* reference to not leaf element */
  	leaf lf6 {
  		type leafref {
  			path "../lflst1";
  		}
  	}

  	leaf lf7 {
  		type leafref {
  			path "../lf4";
  		}
  	}
  }
  
}