Adjust test suite parser update to conform with API changes
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / augment-test / rpc / foo.yang
1 module foo {
2     yang-version 1;
3     namespace "urn:opendaylight:foo";
4     prefix "foo";
5
6     import bar { prefix b; revision-date 2013-10-11; }
7
8     revision "2013-10-11" {
9     }
10
11     augment "/b:submit/b:input/b:arguments" {
12         when "../type = attach-path-instruction";
13
14         case attach {
15             container attach {
16                 leaf link-id {
17                     type string;
18                 }
19                 leaf path-id {
20                     type string;
21                 }
22             }
23         }
24     }
25
26     augment "/b:submit/b:input/b:arguments" {
27         when "../type = create-path-instruction";
28
29         case create {
30             container create {
31                 leaf id {
32                     type string;
33                 }
34             }
35         }
36     }
37
38     augment "/b:submit/b:input/b:arguments" {
39         when "../type = destroy-path-instruction";
40
41         case destroy {
42             container destroy {
43                 leaf id {
44                     type string;
45                 }
46             }
47         }
48     }
49
50 }