Bug-5588: Missing topology-types in BGP-provided topologies
[bgpcep.git] / bgp / topology-provider / src / main / yang / odl-bgp-topology-types.yang
1 module odl-bgp-topology-types {
2     namespace "urn:opendaylight:params:xml:ns:yang:odl-bgp-topology-types";
3     prefix "topology-types";
4
5     import network-topology { prefix nt; revision-date 2013-10-21; }
6
7     organization "Brocade Communications Systems, Inc.";
8     contact "Ajay Lele <alele@brocade.com>";
9
10     description
11         "This module contains augmentations to ODL network topology
12         types for various BGP topologies.
13
14         Copyright (c) 2016 Brocade Communications Systems, Inc. All rights reserved.
15
16         This program and the accompanying materials are made available
17         under the terms of the Eclipse Public License v1.0 which
18         accompanies this distribution, and is available at
19         http://www.eclipse.org/legal/epl-v10.html";
20
21     revision 2016-05-24 {
22         description "Initial revision";
23     }
24
25     grouping bgp-ipv4-reachability-topology-type {
26         container bgp-ipv4-reachability-topology {
27             presence "Indicates a BGP IPv4 reachability aware topology";
28         }
29     }
30
31     grouping bgp-ipv6-reachability-topology-type {
32         container bgp-ipv6-reachability-topology {
33             presence "Indicates a BGP IPv6 reachability aware topology";
34         }
35     }
36
37     grouping bgp-linkstate-topology-type {
38         container bgp-linkstate-topology {
39             presence "Indicates a BGP linkstate aware topology";
40         }
41     }
42
43     augment "/nt:network-topology/nt:topology/nt:topology-types" {
44         uses bgp-ipv4-reachability-topology-type;
45         uses bgp-ipv6-reachability-topology-type;
46         uses bgp-linkstate-topology-type;
47     }
48 }