blob: 79f1566daf281466720d463144925023f86ea065 [file] [log] [blame]
Sean Condonfae8e662016-12-15 10:25:13 +00001module netopeer-cfgnetopeer {
2 namespace "urn:cesnet:tmc:netopeer:1.0";
3 prefix cfgnetopeer;
4
5 organization "CESNET, z.s.p.o.";
6 contact
7 "dkupka@cesnet.cz";
8 description
9 "Module specifying Netopeer module data model and RPC operation.";
10
11 revision 2013-02-14 {
12 description
13 "Modules are now configurable. Except implemented-rpcs which depends on module data model.";
14 }
15 revision 2012-11-13 {
16 description
17 "Removed parts implemented by library (RFC6022).";
18 }
19 revision 2011-10-20 {
20 description
21 "Initial revision";
22 }
23
24 container netopeer {
25 container modules {
26 list module {
27 key "name";
28 leaf name {
29 type string;
30 description
31 "Name of module";
32 }
33 leaf enabled {
34 type boolean;
35 default false;
36 description
37 "Specify whether or not the module is allowed to be managed over server.";
38 }
39 }
40 }
41 }
42 rpc netopeer-reboot {
43 description
44 "Operation allowing privileged user to restart netopeer-server.";
45 input {
46 leaf type {
47 type enumeration {
48 enum "soft";
49 enum "hard";
50 }
51 default "soft";
52 description
53 "Soft restart only unplugs all device modules and reloads configuration.
54 Hard restart also abort all connections and reload the binary.";
55 }
56 }
57 }
58 rpc reload-module {
59 description
60 "Unload and load any loaded module." ;
61 input {
62 leaf module {
63 type leafref {
64 path "/netopeer/modules/module/name";
65 }
66 mandatory true;
67 description
68 "Name of module to reload.";
69 }
70 }
71 }
72}