Rename restconf-nb-rfc8040 to restconf-nb
[netconf.git] / restconf / restconf-nb / src / test / resources / parser-identifier / example-actions.yang
1 module example-actions {
2      yang-version 1.1;
3      namespace "https://example.com/ns/example-actions";
4      prefix "act";
5
6      organization "Example, Inc.";
7      contact "support at example.com";
8      description "Example Actions Data Model Module.";
9
10      revision "2016-07-07" {
11        description "Initial version.";
12        reference "example.com document 2-9973.";
13      }
14
15      container interfaces {
16        description "System interfaces.";
17
18        list interface {
19          key name;
20          description "One interface entry.";
21          leaf name {
22            type string;
23            description "Interface name.";
24          }
25
26          action reset {
27            description "Reset an interface.";
28            input {
29              leaf delay {
30                type uint32;
31                units "seconds";
32                default 0;
33                description
34                  "Number of seconds to wait before starting the
35                   interface reset.";
36              }
37            }
38          }
39        }
40      }
41    }