[DO NOT MERGE]
[controller.git] / opendaylight / md-sal / model / model-ping / src / main / yang / ping.yang
1 module ping {
2   namespace "urn:opendaylight:ping";
3   prefix ping;
4   import ietf-inet-types {prefix inet;}
5   revision "2013-09-11" {
6     description "TCP ping module";
7   }
8   rpc send-echo {
9     description "Send TCP ECHO request";
10     input {
11       leaf destination {
12         type inet:ipv4-address;
13       }
14     }
15     output {
16       leaf echo-result {
17         type enumeration {
18           enum "reachable" {
19             value 0;
20             description "Received reply";
21           }
22           enum "unreachable" {
23             value 1;
24             description "No reply during timeout";
25           }
26           enum "error" {
27             value 2;
28             description "Error happened";
29           }
30         }
31         description "Result types";
32       }
33     }
34   }
35 }