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