Merge "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 tp:topology-instruction-input;
45         }
46
47         grouping create-tunnel-output {
48                 uses base-tunnel-output;
49
50                 leaf link-id {
51                         type nt:link-id;
52                         mandatory true;
53                 }
54         }
55
56         grouping destroy-tunnel-input {
57                 uses base-tunnel-input;
58         }
59
60         grouping destroy-tunnel-output {
61                 uses base-tunnel-output;
62         }
63
64         grouping tp-reference {
65                 leaf node {
66                         type nt:node-ref;
67                         mandatory true;
68                 }
69                 leaf tp {
70                         type nt:tp-ref;
71                         mandatory true;
72                 }
73         }
74
75         grouping create-p2p-tunnel-input {
76                 uses create-tunnel-input;
77
78                 container destination {
79                         uses tp-reference;
80                 }
81                 container source {
82                         uses tp-reference;
83                 }
84         }
85
86         grouping create-p2p-tunnel-output {
87                 uses create-tunnel-output;
88         }
89 }
90