Prepare netconf to support YANG 1.1 actions
[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
45   container box-out {
46     container box-in {
47       action open {
48       }
49     }
50   }
51 }