Add model of graceful-restart capability
[bgpcep.git] / programming / tunnel-api / src / main / yang / topology-tunnel-programming.yang
1 module topology-tunnel-programming {
2         yang-version 1;
3         namespace "urn:opendaylight:params:xml:ns:yang:topology:tunnel:programming";
4         prefix "ttp";
5
6         import network-topology { prefix nt; revision-date 2013-10-21; }
7         import network-topology-programming { prefix tp; revision-date 2013-11-02; }
8         import topology-tunnel { prefix tt; revision-date 2013-08-19; }
9
10         organization "Cisco Systems, Inc.";
11         contact "Robert Varga <rovarga@cisco.com>";
12
13         description
14                 "This module contains the programming extensions for tunnel
15                 topologies.
16
17                 Copyright (c)2013 Cisco Systems, Inc. All rights reserved.
18
19                 This program and the accompanying materials are made available
20                 under the terms of the Eclipse Public License v1.0 which
21                 accompanies this distribution, and is available at
22                 http://www.eclipse.org/legal/epl-v10.html";
23
24         revision "2013-09-30" {
25                 description
26                         "Initial revision.";
27                 reference "";
28         }
29
30         grouping base-tunnel-input {
31                 uses tp:topology-instruction-input;
32
33                 leaf link-id {
34                         type nt:link-id;
35                         mandatory true;
36                 }
37         }
38
39         grouping base-tunnel-output {
40                 uses tp:topology-instruction-output;
41         }
42
43         grouping create-tunnel-input {
44                 uses base-tunnel-input;
45         }
46
47         grouping create-tunnel-output {
48                 uses base-tunnel-output;
49         }
50
51         grouping destroy-tunnel-input {
52                 uses base-tunnel-input;
53         }
54
55         grouping destroy-tunnel-output {
56                 uses base-tunnel-output;
57         }
58
59         grouping p2p-tunnel-input {
60                 uses base-tunnel-input;
61
62                 leaf source-tp {
63                         type nt:tp-ref;
64                         mandatory true;
65                 }
66                 leaf destination-tp {
67                         type nt:tp-ref;
68                         mandatory true;
69                 }
70         }
71
72         grouping p2p-tunnel-output {
73                 uses base-tunnel-output;
74         }
75
76         grouping create-p2p-tunnel-input {
77                 uses p2p-tunnel-input;
78         }
79
80         grouping create-p2p-tunnel-output {
81                 uses p2p-tunnel-output;
82         }
83 }
84