adb909c14a66142a319defe08f9082368cc65ec6
[bgpcep.git] / concepts / src / main / yang / network-concepts.yang
1 module network-concepts {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:network:concepts";
4     prefix "netc";
5
6     import ieee754 { prefix ieee754; revision-date 2013-08-19; }
7     import ietf-routing-types { prefix rt-types; }
8
9     organization "Cisco Systems, Inc.";
10     contact "Dana Kutenicsova <dkutenic@cisco.com>";
11
12     description
13         "This module contains the base data model of used general
14         concepts.
15
16         Copyright (c)2013 Cisco Systems, Inc. All rights reserved.
17
18         This program and the accompanying materials are made available
19         under the terms of the Eclipse Public License v1.0 which
20         accompanies this distribution, and is available at
21         http://www.eclipse.org/legal/epl-v10.html";
22
23     revision "2013-11-25" {
24         description
25             "Rename to network concepts";
26     }
27
28     revision "2013-09-30" {
29         description
30             "Initial revision.";
31     }
32
33     typedef iso-system-identifier {
34         reference "https://tools.ietf.org/html/draft-ietf-idr-ls-distribution-03#section-3.2.1.4";
35         type binary {
36             length "6";
37         }
38     }
39
40     typedef igp-metric {
41         reference "http://tools.ietf.org/html/draft-ietf-idr-ls-distribution-03#section-3.3.2.3";
42         type rt-types:uint24;
43     }
44
45     typedef te-metric {
46         reference "http://tools.ietf.org/html/draft-ietf-idr-ls-distribution-03#section-3.3.2.3";
47         type uint32;
48     }
49
50     typedef bandwidth {
51         type ieee754:float32;
52     }
53
54     typedef metric {
55         reference "http://tools.ietf.org/html/draft-ietf-idr-ls-distribution-03#section-3.3.3.4";
56         type uint32;
57     }
58
59     typedef accumulated-igp-metric {
60         reference "https://tools.ietf.org/html/rfc7311#section-3";
61         type uint64;
62     }
63
64     typedef mpls-label {
65         reference "https://tools.ietf.org/html/rfc3032#section-2.1";
66         type uint32 {
67             range "0..1048575";
68         }
69     }
70 }
71