3 namespace "urn:opendaylight:params:xml:ns:yang:ovsdb:hwvtep";
6 import network-topology {prefix "topo"; revision-date "2013-10-21"; }
7 import yang-ext { prefix "ext"; }
8 import ietf-inet-types { prefix inet; revision-date 2010-09-24; }
9 import ietf-yang-types { prefix yang; revision-date "2013-07-15";}
10 import opendaylight-l2-types { prefix ethertype; revision-date "2013-08-27";}
12 revision "2015-09-01" {
13 description "1st revision of southbound model for hwvtep";
16 typedef hwvtep-physical-switch-ref {
17 description "A reference to a hwvtep based physical switch";
18 type instance-identifier;
21 typedef hwvtep-logical-switch-ref {
22 description "A reference to a logical switch in hwvtep based switches";
23 type instance-identifier;
26 typedef hwvtep-physical-locator-ref {
27 description "A reference to an endpoint to which logical switch traffic may be encapsulated and forwarded";
28 type instance-identifier;
31 typedef hwvtep-global-ref {
32 description "A reference to an hwvtep global node";
33 type instance-identifier;
36 typedef hwvtep-node-name {
40 grouping hwvtep-node-identification {
41 leaf hwvtep-node-name {
42 description "The name of the node";
43 type hwvtep-node-name;
45 leaf hwvtep-node-description {
46 description "The description of the node";
51 grouping hwvtep-mac-table-generic-attributes {
53 description "MAC address entry";
54 type yang:mac-address;
56 leaf logical-switch-ref {
57 description "The logical switch to which this mapping applies";
58 type hwvtep-logical-switch-ref;
62 grouping hwvtep-ucast-mac-table-attributes {
63 description "Unicast mac table attributes";
65 description "Optional IP address associated with the mac";
69 description "Reference to the physical locator to reach this entry";
70 type hwvtep-physical-locator-ref;
74 grouping hwvtep-mcast-mac-table-attributes {
75 description "Multicast mac table attributes";
77 description "Optional IP address associated with the mac";
80 uses hwvtep-physical-locator-set-attributes;
83 grouping hwvtep-tunnel-attributes {
85 description "The unique identifier of the tunnel";
88 leaf local-locator-ref {
89 description "Reference to the physical locator to reach this entry";
90 type hwvtep-physical-locator-ref;
92 leaf remote-locator-ref {
93 description "Reference to the physical locator to reach this entry";
94 type hwvtep-physical-locator-ref;
96 leaf bfd-config-local {
99 leaf bfd-config-remote {
107 grouping hwvtep-physical-switch-attributes {
108 uses hwvtep-node-identification;
109 leaf physical-switch-uuid {
110 description "The unique identifier of the physical-switch";
113 list management-ips {
114 key "management-ips-key";
115 leaf management-ips-key {
116 description "Management IP address of the switch";
117 type inet:ip-address;
121 description "The hwvtep global node to which this physical switch belongs to";
122 type hwvtep-global-ref;
125 key "tunnel-ips-key";
126 leaf tunnel-ips-key {
127 description "Management IP address of the switch";
128 type inet:ip-address;
132 uses hwvtep-tunnel-attributes ;
136 grouping hwvtep-connection-info-attributes {
138 type inet:ip-address;
139 description "Hwvtep Connection Remote IP";
142 type inet:port-number;
143 description "Hwvtep Connection Remote Port Number";
146 type inet:ip-address;
147 description "Hwvtep Connection Local IP";
150 type inet:port-number;
151 description "Hwvtep Connection Local Port Number IP";
155 grouping hwvtep-global-attributes {
156 description "global node for the hwvtep";
157 container connection-info {
158 uses hwvtep-connection-info-attributes;
164 description "Uri indicating connection method to the Manager";
168 description "The unique identifier of the manager";
174 list manager-other-configs {
175 description "Key-value pairs for configuring rarely used features.
176 other_config : dscp : optional string
177 contains an integer, in the range 0 - 63. DSCP value to be used when establishing a connection to the switch. Default value of 48 if none specified.";
178 key "other-config-key";
179 leaf other-config-key {
180 description "other-config name/key";
183 leaf other-config-value {
184 description "other-config value";
190 description "List of physical switches managed by this node";
193 type hwvtep-physical-switch-ref;
196 list logical-switches {
197 key "hwvtep-node-name";
198 uses hwvtep-logical-switch-attributes;
200 list local-ucast-macs {
202 uses hwvtep-mac-table-generic-attributes;
203 uses hwvtep-ucast-mac-table-attributes;
205 list remote-ucast-macs {
207 uses hwvtep-mac-table-generic-attributes;
208 uses hwvtep-ucast-mac-table-attributes;
210 list local-mcast-macs {
212 uses hwvtep-mac-table-generic-attributes;
213 uses hwvtep-mcast-mac-table-attributes;
215 list remote-mcast-macs{
217 uses hwvtep-mac-table-generic-attributes;
218 uses hwvtep-mcast-mac-table-attributes;
222 identity encapsulation-type-base {
223 description "Base Encapsulation type";
226 identity encapsulation-type-vxlan-over-ipv4 {
227 base encapsulation-type-base;
228 description "Encapsulation type vxlan-over-ipv4";
231 typedef encapsulation-type {
233 base encapsulation-type-base;
235 description "This type is used to refer to an Encapsulation Type.";
238 grouping hwvtep-physical-locator-attributes {
239 leaf physical-locator-uuid {
240 description "The unique identifier of the physical-locator";
243 leaf encapsulation-type {
244 type encapsulation-type;
245 description "Encapsulation type used by this locator";
248 type inet:ip-address;
249 description "IP address of the locator";
253 grouping hwvtep-physical-locator-set-attributes {
256 type hwvtep-physical-locator-ref;
261 grouping hwvtep-logical-switch-attributes {
262 uses hwvtep-node-identification;
263 leaf logical-switch-uuid {
264 description "A unique identifier of the logical switch";
268 description "Per Logical Switch tunnel key";
273 grouping hwvtep-physical-port-attributes {
274 uses hwvtep-node-identification;
275 leaf physical-port-uuid {
276 description "The unique identifier of the physical-port";
280 description "A map of vlan ID to logical switch pairs";
283 description "vlan ids in the range 0 - 4095";
284 type ethertype:vlan-id;
286 leaf logical-switch-ref {
287 description "Reference to logical switch for the vlan";
288 type hwvtep-logical-switch-ref;
293 augment "/topo:network-topology/topo:topology/topo:node" {
294 description "Augmentation for physical switch nodes managed by hwvtep";
295 ext:augment-identifier "physical-switch-augmentation";
296 uses hwvtep-physical-switch-attributes;
299 augment "/topo:network-topology/topo:topology/topo:node" {
300 description "Augment topology node for a hwvtep node";
301 ext:augment-identifier "hwvtep-global-augmentation";
302 uses hwvtep-global-attributes;
305 augment "/topo:network-topology/topo:topology/topo:node/topo:termination-point" {
306 description "Augment topology node termination-point for a hwvtep physical-locator";
307 ext:augment-identifier "hwvtep-physical-locator-augmentation";
308 uses hwvtep-physical-locator-attributes;
311 augment "/topo:network-topology/topo:topology/topo:node/topo:termination-point" {
312 description "Augment topology node termination-point for a hwvtep physical-port";
313 ext:augment-identifier "hwvtep-physical-port-augmentation";
314 uses hwvtep-physical-port-attributes;