BGPCEP-704: Add restart session rpc
[bgpcep.git] / pcep / ietf-stateful07 / src / main / yang / odl-pcep-ietf-initiated00.yang
1 module odl-pcep-ietf-initiated00 {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:pcep:crabbe:initiated";
4     prefix "crabbe";
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 2017-10-25; }
10     import odl-pcep-ietf-stateful07 { prefix stateful; revision-date 2017-10-25; }
11
12     organization "Cisco Systems, Inc.";
13     contact "Robert Varga <rovarga@cisco.com>";
14
15     description
16         "This module contains the data model of PCEP extensions defined
17         in draft-ietf-pce-pce-initiated-lsp.
18
19         Copyright (c)2013 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 2017-10-25 {
27         description "Update network-topology-pcep revision";
28     }
29
30     revision "2013-11-26" {
31         description
32             "Initial revision.";
33         reference "http://tools.ietf.org/html/draft-ietf-pce-pce-initiated-lsp-00";
34     }
35
36     grouping pcinitiate-message {
37         uses pcep:message;
38
39         container pcinitiate-message {
40             description "LSP Initiate Message";
41             reference "http://tools.ietf.org/html/draft-ietf-pce-pce-initiated-lsp-00#section-5.1";
42
43             uses pcep:message-header;
44
45             list requests {
46                 uses stateful:srp-object;
47
48                 uses stateful:lsp-object;
49
50                 uses pcep:endpoints-object;
51
52                 uses pcep:explicit-route-object;
53
54                 uses pcep:lsp-attributes;
55             }
56         }
57     }
58
59     grouping initiated-capability-tlv {
60         reference "http://tools.ietf.org/html/draft-ietf-pce-pce-initiated-lsp-00#section-4.1";
61         leaf initiation {
62             type boolean;
63             default false;
64         }
65     }
66
67     augment "/stateful:pcupd/stateful:pcupd-message/stateful:updates/stateful:srp" {
68         reference "http://tools.ietf.org/html/draft-ietf-pce-pce-initiated-lsp-00#section-5.2";
69         leaf remove {
70             type boolean;
71             default false;
72         }
73     }
74
75     augment "/stateful:pcrpt/stateful:pcrpt-message/stateful:reports/stateful:srp" {
76         reference "http://tools.ietf.org/html/draft-ietf-pce-pce-initiated-lsp-00#section-5.2";
77         leaf remove {
78             type boolean;
79             default false;
80         }
81     }
82
83     augment "/stateful:pcupd/stateful:pcupd-message/stateful:updates/stateful:lsp" {
84         reference "http://tools.ietf.org/html/draft-ietf-pce-pce-initiated-lsp-00#section-5.3.1";
85         leaf create {
86             type boolean;
87             default false;
88         }
89     }
90
91     augment "/stateful:pcrpt/stateful:pcrpt-message/stateful:reports/stateful:lsp" {
92         reference "http://tools.ietf.org/html/draft-ietf-pce-pce-initiated-lsp-00#section-5.3.1";
93         leaf create {
94             type boolean;
95             default false;
96         }
97     }
98
99     augment "/msg:open/msg:open-message/msg:open/msg:tlvs/stateful:stateful" {
100         uses initiated-capability-tlv;
101     }
102
103     notification pcinitiate {
104         uses pcinitiate-message;
105     }
106
107     augment "/nt:network-topology/nt:topology/nt:node/topo:path-computation-client/topo:stateful-tlv/stateful:stateful" {
108         uses initiated-capability-tlv;
109     }
110
111     augment "/nt:network-topology/nt:topology/nt:node/topo:path-computation-client/topo:reported-lsp/topo:path/stateful:lsp" {
112         reference "http://tools.ietf.org/html/draft-ietf-pce-pce-initiated-lsp-00#section-5.3.1";
113         leaf create {
114             type boolean;
115             default false;
116         }
117     }
118 }