BUG-48: basic exporter implementation
[bgpcep.git] / topology / pcep-api / src / main / yang / network-topology-pcep.yang
1 module network-topology-pcep {
2         // vi: set et smarttab sw=4 tabstop=4:
3         yang-version 1;
4         namespace "urn:opendaylight:params:xml:ns:yang:topology:pcep";
5         prefix "pn";
6
7         import network-topology { prefix nt; revision-date 2013-10-21; }
8         import pcep-types { prefix pcep; revision-date 2013-10-05; }
9
10         organization "Cisco Systems, Inc.";
11         contact "Robert Varga <rovarga@cisco.com>";
12
13         description
14                 "This module contains the PCEP extensions to base topology model. It
15         exposes the LSPs for which a particular node is the head end.
16
17                 Copyright (c)2013 Cisco Systems, Inc. All rights reserved.";
18
19         revision "2013-10-24" {
20                 description
21                         "Initial revision.";
22                 reference "";
23         }
24
25         grouping pcep-client-attributes {
26         description "Data present in a node which is a PCEP client (PCC).";
27
28         container pcc {
29             config false;
30
31             list lsps {
32                 leaf name {
33                     type pcep:symbolic-path-name;
34                 }
35                 key name;
36
37                 // FIXME: hide protocol-specific?
38                 uses pcep:lsp-object;
39             }
40         }
41         }
42
43         augment "/nt:network-topology/nt:topology/nt:node" {
44                 uses pcep-client-attributes;
45         }
46 }
47