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