Removed checkstyle warnings.
[bgpcep.git] / pcep / ietf-stateful02 / src / main / yang / odl-pcep-crabbe-initiated00.yang
1 module odl-pcep-crabbe-initiated00 {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:pcep:crabbe:initiated:00";
4     prefix "initiated00";
5
6     import pcep-types { prefix pcep; revision-date 2013-10-05; }
7     import pcep-message { prefix msg; revision-date 2013-10-07; }
8     import network-topology { prefix nt; revision-date 2013-10-21; }
9     import network-topology-pcep { prefix topo; revision-date 2013-10-24; }
10     import odl-pcep-ietf-stateful02 { prefix stateful; revision-date 2014-01-10 ;}
11
12     organization "Cisco Systems, Inc.";
13     contact "Dana Kutenicsova <dkutenic@cisco.com>";
14
15     description
16         "This module contains the data model of PCEP extensions defined
17         in draft-crabbe-pce-pce-initiated-lsp-00.
18
19         Copyright (c)2014 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 "2014-01-13" {
27         description
28             "Initial revision.";
29         reference "https://tools.ietf.org/html/draft-crabbe-pce-pce-initiated-lsp-00";
30     }
31
32     grouping pcinitiate-message {
33         uses pcep:message;
34
35         container pcinitiate-message {
36             description "LSP Initiate Message";
37             reference "http://tools.ietf.org/html/draft-crabbe-pce-pce-initiated-lsp-00#section-5.1";
38
39             uses pcep:message-header;
40
41             list requests {
42                 uses pcep:endpoints-object;
43
44                 uses pcep:explicit-route-object;
45
46                 uses pcep:lsp-attributes;
47             }
48         }
49     }
50
51     grouping lsp-cleanup-tlv {
52         description "LSP Cleanup TLV";
53         reference "http://tools.ietf.org/html/draft-crabbe-pce-pce-initiated-lsp-00#section-6.2.1";
54         container lsp-cleanup {
55             uses pcep:tlv;
56             leaf timeout {
57                 type uint32 {
58                     range 0..4294967295;
59                 }
60                 mandatory true;
61             }
62         }
63     }
64
65     grouping initiated-capability-tlv {
66         leaf initiation {
67             type boolean;
68             default false;
69         }
70     }
71
72     augment "/msg:open/msg:open-message/msg:open/msg:tlvs" {
73         uses lsp-cleanup-tlv;
74     }
75
76     augment "/msg:open/msg:open-message/msg:open/msg:tlvs/stateful:stateful" {
77         uses initiated-capability-tlv;
78     }
79
80     augment "/pcinitiate/pcinitiate-message/requests/lspa/tlvs" {
81         uses stateful:symbolic-path-name-tlv;
82     }
83
84     notification pcinitiate {
85         uses pcinitiate-message;
86     }
87
88     augment "/nt:network-topology/nt:topology/nt:node/topo:path-computation-client/topo:stateful-tlv/stateful:stateful" {
89         uses initiated-capability-tlv;
90     }
91 }
92