forked from bclaise/confd-module-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openconfig-feature-bundle.yang
113 lines (113 loc) · 3.19 KB
/
openconfig-feature-bundle.yang
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
module openconfig-feature-bundle {
// namespace
namespace "http://openconfig.net/yang/feature-bundle";
prefix "oc-featbundle";
import openconfig-module-catalog { prefix oc-cat; }
import openconfig-extensions { prefix oc-ext; }
// meta
organization "OpenConfig working group";
contact
"OpenConfig working group
description
"This module can be used to build network features using
published YANG Models.";
oc-ext:openconfig-version "0.2.0";
revision "2016-02-25" {
description
"OpenConfig revision to specify
feature bundles";
reference "0.2.0";
}
revision "2016-02-15" {
description
"Initial OpenConfig public release";
reference "0.1.0";
}
revision "2015-10-18" {
description
"Initial revision";
reference "TBD";
}
grouping feature-bundle-information {
description
"Template defining the bundle";
leaf name {
type string;
description "Published name of bundle, for example:
l3vpn, l2vpn, internet-access";
}
leaf version {
type string;
description "bundle version number";
}
leaf description {
type string;
description "User defined information about bundle";
}
leaf category {
type string;
description
"Categorization of bundle such as:
network, service, oam, experimental, other";
}
leaf subcategory {
type string;
description
"Sub-Categorization of bundle such as:
protocol, operational, other";
}
} //bundle-template
grouping feature-bundle-ingredients {
description "Module ingredients used in bundle";
container modules {
description
"Modules that comprise the bundle";
list module {
key "module-type";
description
"List of modules from yang-module-catalog comprising
the bundle";
leaf module-type {
type string;
description
"A user-define type of the module";
}
leaf catalog-reference {
type leafref {
path "/oc-cat:organizations"
+ "/oc-cat:organization"
+ "/oc-cat:modules"
+ "/oc-cat:module"
+ "/oc-cat:name";
}
description
"Link to the module metadata in the model catalog";
}
leaf application-sequence {
type uint8;
description
"Sequence number indicating order of application of
module";
}
} //module-info
} //bundle-modules
} //bundle-ingredients
grouping feature-bundle-top {
description
"Top-level grouping for OpenConfig feature bundles";
container feature-bundles {
description
"List of feature bundles";
list feature-bundle {
key "name";
description
"List of feature bundles - sets of modules that combine to
create a set of functionality.";
uses feature-bundle-information;
uses feature-bundle-ingredients;
}
}
} //bundle
uses feature-bundle-top;
}