Add new revision for pcep types model
[bgpcep.git] / pcep / tunnel / tunnel-api / src / main / yang / topology-tunnel-pcep-config.yang
1 // vi: set smarttab et sw=4 tabstop=4:
2 module topology-tunnel-pcep-config {
3     yang-version 1.1;
4     namespace "urn:opendaylight:params:xml:ns:yang:topology:tunnel:pcep:config";
5     prefix ttpc;
6
7     import network-topology { prefix nt; revision-date 2013-10-21; }
8     import topology-tunnel-pcep { prefix ttp; revision-date 2018-11-09; }
9     import yang-ext { prefix ext; revision-date 2013-07-09; }
10
11     description
12         "This module contains the PCEP Tunnel config extensions to base topology model.
13          Copyright (c)2017 AT&T Services, Inc. All rights reserved.;
14
15          This program and the accompanying materials are made available
16          under the terms of the Eclipse Public License v1.0 which
17          accompanies this distribution, and is available at
18          http://www.eclipse.org/legal/epl-v10.html";
19
20     organization "AT&T Services, Inc.";
21     contact "Claudio D. Gasparini <claudio.gasparini@pantheon.sk>";
22
23     revision "2018-11-09" {
24         description
25             "P2MP extension.";
26         reference "RFC8306";
27     }
28
29     revision "2017-11-27" {
30         description
31             "Initial revision.";
32     }
33
34     grouping topology-ref {
35         leaf pcep-topology-reference {
36         description "An absolute reference to a topology instance.";
37         type leafref {
38             path "/nt:network-topology/nt:topology/nt:topology-id";
39             require-instance true;
40             }
41         }
42     }
43
44     augment "/nt:network-topology/nt:topology" {
45         when "nt:topology-types/ttp:topology-tunnel-pcep";
46         ext:augment-identifier pcep-tunnel-topology-config;
47         description "Augment Pcep topology with session config";
48
49         uses topology-ref;
50     }
51 }