91cefd00535921fd7ad82a994085d93a6b961356
[bgpcep.git] / bgp / benchmark-app / src / main / yang / odl-bgp-app-peer-benchmark.yang
1 // Contents of "odl-bgp-benchmark"
2 module odl-bgp-app-peer-benchmark {
3     namespace "urn:opendaylight:params:xml:ns:yang:odl-bgp-app-peer-benchmark";
4     prefix "bgp-app-peer-bm";
5
6     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
7
8     organization "Cisco Systems, Inc.";
9     contact "Milos Fabian <milfabia@cisco.com>";
10
11     description
12         "This module contains Yang Data Models for BGP Application Peer
13         Benchmark application.
14
15         Copyright (c)2016 Cisco Systems, Inc. All rights reserved.
16
17         This program and the accompanying materials are made available
18         under the terms of the Eclipse Public License v1.0 which
19         accompanies this distribution, and is available at
20         http://www.eclipse.org/legal/epl-v10.html";
21
22     revision 2016-03-09 {
23         description "Initial revision";
24     }
25
26     grouping input {
27         leaf prefix {
28             mandatory true;
29             type inet:ipv4-prefix;
30             description
31                 "IPv4 prefix";
32         }
33         leaf count {
34             mandatory true;
35             type uint32;
36             description
37                 "loop count";
38         }
39         leaf batchsize {
40             mandatory true;
41             type uint32;
42             description
43                 "batchsize";
44         }
45     }
46
47     grouping output {
48         container result {
49             leaf count {
50                 mandatory true;
51                 type uint32;
52             }
53             leaf duration {
54                 mandatory true;
55                 type uint32;
56                 units seconds;
57             }
58             leaf rate {
59                 mandatory true;
60                 type uint32;
61                 units "per-second";
62             }
63         }
64     }
65
66     rpc add-prefix {
67         description
68                 "Add prefix into RIB";
69         input {
70             uses input;
71             leaf nexthop {
72                 mandatory true;
73                 type inet:ipv4-address;
74                 description
75                     "nexthop";
76             }
77         }
78
79         output {
80             uses output;
81         }
82     }
83
84     rpc delete-prefix {
85         description
86             "Delete prefix into RIB";
87
88         input {
89             uses input;
90         }
91
92         output {
93             uses output;
94         }
95     }
96
97 }