BGPCEP-704: Add restart session rpc
[bgpcep.git] / pcep / auto-bandwidth-extension / src / main / yang / odl-pcep-auto-bandwidth.yang
1 module odl-pcep-auto-bandwidth {
2     namespace "urn:opendaylight:params:xml:ns:yang:controller:pcep:auto:bandwidth";
3     prefix "auto-bw";
4
5     import pcep-types { prefix pcep; revision-date 2013-10-05; }
6     import pcep-message { prefix msg; revision-date 2013-10-07; }
7     import network-topology { prefix nt; revision-date 2013-10-21; }
8     import network-topology-pcep { prefix topo; revision-date 2017-10-25; }
9     import odl-pcep-ietf-stateful07 { prefix stateful; revision-date 2017-10-25; }
10     import network-concepts { prefix netc; revision-date 2013-11-25; }
11
12     organization "Cisco Systems, Inc.";
13     contact "Milos Fabian <milfabia@cisco.com>";
14
15     description
16         "This module contains the data model of PCEP extensions defined
17         in draft-dhody-pce-stateful-pce-auto-bandwidth-06.
18
19         Copyright (c)2016 Cisco Systems, Inc. All rights reserved.
20
21         This program and the accompanying materials are made available
22         under the terms of the Eclipse Public License v1.0 which
23         accompanies this distribution, and is available at
24         http://www.eclipse.org/legal/epl-v10.html";
25
26     revision 2017-10-25 {
27         description "Update network-topology-pcep revision";
28     }
29
30     revision 2016-01-09 {
31         description "Initial revision";
32         reference "https://tools.ietf.org/html/draft-dhody-pce-stateful-pce-auto-bandwidth-06";
33     }
34
35     grouping bw-samples {
36         leaf-list bw-sample {
37             type netc:bandwidth;
38             ordered-by user;
39         }
40     }
41
42     grouping bandwidth-usage-object {
43         description "Bandwidth-Usage Report Object";
44         reference "https://tools.ietf.org/html/draft-dhody-pce-stateful-pce-auto-bandwidth-06#section-8.4";
45         container bandwidth-usage {
46             uses pcep:object;
47             uses bw-samples;
48         }
49     }
50
51     augment "/stateful:pcrpt/stateful:pcrpt-message/stateful:reports/stateful:path/stateful:bandwidth" {
52         uses bw-samples;
53     }
54
55     augment "/nt:network-topology/nt:topology/nt:node/topo:path-computation-client/topo:reported-lsp/topo:path/topo:bandwidth" {
56         uses bw-samples;
57     }
58
59 }