Fix preparing of action request
[netconf.git] / netconf / sal-netconf-connector / src / test / resources / schemas / example-server-farm.yang
1 module example-server-farm {
2   yang-version 1.1;
3   namespace "urn:example:server-farm";
4   prefix "sfarm";
5   revision 2018-08-07;
6
7   list server {
8     key name;
9     leaf name {
10       type string;
11     }
12     action reset {
13       input {
14         leaf reset-at {
15           type string;
16           mandatory true;
17         }
18       }
19       output {
20         leaf reset-finished-at {
21           type string;
22           mandatory true;
23         }
24       }
25     }
26   }
27
28   container device {
29     action start {
30       input {
31         leaf start-at {
32           type string;
33           mandatory true;
34         }
35       }
36       output {
37         leaf start-finished-at {
38           type string;
39           mandatory true;
40         }
41       }
42     }
43
44     list interface {
45       key name;
46       leaf name {
47         type string;
48       }
49       action enable {
50       }
51     }
52   }
53
54   container box-out {
55     container box-in {
56       action open {
57       }
58     }
59   }
60 }