blob: 3a03b40320279291cdc23b1534743b2045567f5a [file] [log] [blame]
Thomas Vachuska6655bee2017-08-24 16:12:59 -07001submodule openconfig-rib-bgp-shared-attributes {
2
3 belongs-to openconfig-rib-bgp {
4 prefix "oc-rib-bgp";
5 }
6
7
8 // import some basic types
9 import openconfig-extensions { prefix oc-ext; }
10
11 include openconfig-rib-bgp-attributes;
12
13 // meta
14 organization "OpenConfig working group";
15
16 contact
17 "OpenConfig working group
18 www.openconfig.net";
19
20 description
21 "This submodule contains structural data definitions for
22 attribute sets shared across routes.";
23
24
25 oc-ext:openconfig-version "0.3.0";
26
27 revision "2016-10-17" {
28 description
29 "OpenConfig BGP RIB refactor";
30 reference "0.3.0";
31 }
32
33
34 grouping attribute-sets-top {
35 description
36 "Top level grouping for list of common attribute sets";
37
38 container attr-sets {
39 description
40 "Enclosing container for the list of path attribute sets";
41
42 list attr-set {
43 key "index";
44
45 description
46 "List of path attributes that may be in use by multiple
47 routes in the table";
48
49 leaf index {
50 type leafref {
51 path "../state/index";
52 }
53 description
54 "Reference to list key";
55 }
56
57 container state {
58 config false;
59 description
60 "Operational state for common path attributes";
61
62 leaf index {
63 type uint64;
64 description
65 "System generated index for each attribute set. The
66 index is used to reference an attribute set from a
67 specific path. Multiple paths may reference the same
68 attribute set.";
69 }
70
71 uses bgp-shared-common-attr-state;
72 }
73 uses bgp-aggregator-attr-top;
74 uses bgp-as-path-attr-top;
75 uses bgp-as4-path-attr-top;
76 }
77 }
78 }
79
80 grouping community-sets-top {
81 description
82 "Top level grouping for list of shared community attribute
83 sets";
84
85 container communities {
86 description
87 "Enclosing container for the list of community attribute
88 sets";
89
90 list community {
91 key "index";
92
93 description
94 "List of path attributes that may be in use by multiple
95 routes in the table";
96
97 leaf index {
98 type leafref {
99 path "../state/index";
100 }
101 description
102 "Reference to the list key";
103 }
104
105 container state {
106 config false;
107 description
108 "Operational state for shared BGP community attribute";
109
110 leaf index {
111 type uint64;
112 description
113 "System generated index for each attribute set. The
114 index is used to reference an attribute set from a
115 specific path. Multiple paths may reference the same
116 attribute set.";
117 }
118
119 uses bgp-community-attr-state;
120 }
121 }
122 }
123 }
124
125 grouping ext-community-sets-top {
126 description
127 "Top level grouping for list of extended community attribute
128 sets";
129
130 container ext-communities {
131 description
132 "Enclosing container for the list of extended community
133 attribute sets";
134
135 list ext-community {
136 key "index";
137
138 description
139 "List of path attributes that may be in use by multiple
140 routes in the table";
141
142 leaf index {
143 type leafref {
144 path "../state/index";
145 }
146 description
147 "Reference to the list key";
148 }
149
150 container state {
151 config false;
152 description
153 "Operational state for shared BGP extended community
154 attribute";
155
156 leaf index {
157 type uint64;
158 description
159 "System generated index for each attribute set. The
160 index is used to reference an attribute set from a
161 specific path. Multiple paths may reference the same
162 attribute set.";
163 }
164
165 uses bgp-extended-community-attr-state;
166 }
167 }
168 }
169 }
170}