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-physical-locator-set-ref {
32 description "A reference to a set of endpoints to which logical switch traffic may be encapsulated and forwarded via replication";
33 type instance-identifier;
36 typedef hwvtep-global-ref {
37 description "A reference to an hwvtep global node";
38 type instance-identifier;
41 typedef hwvtep-node-name {
45 grouping hwvtep-node-identification {
46 leaf hwvtep-node-name {
47 description "The name of the node";
48 type hwvtep-node-name;
50 leaf hwvtep-node-description {
51 description "The description of the node";
56 grouping hwvtep-mac-table-generic-attributes {
58 description "MAC address entry";
61 leaf logical-switch-ref {
62 description "The logical switch to which this mapping applies";
63 type hwvtep-logical-switch-ref;
67 grouping hwvtep-ucast-mac-table-attributes {
68 description "Unicast mac table attributes";
70 description "Optional IP address associated with the mac";
74 description "Reference to the physical locator to reach this entry";
75 type hwvtep-physical-locator-ref;
79 grouping hwvtep-mcast-mac-table-attributes {
80 leaf locator-set-ref {
81 description "Reference to a set of physical locators used for replication";
82 type hwvtep-physical-locator-set-ref;
86 grouping hwvtep-tunnel-attributes {
87 leaf local-locator-ref {
88 description "Reference to the physical locator to reach this entry";
89 type hwvtep-physical-locator-ref;
91 leaf remote-locator-ref {
92 description "Reference to the physical locator to reach this entry";
93 type hwvtep-physical-locator-ref;
95 leaf bfd-config-local {
98 leaf bfd-config-remote {
106 grouping hwvtep-physical-switch-attributes {
107 uses hwvtep-node-identification;
108 list management-ips {
109 key "management-ips-key";
110 leaf management-ips-key {
111 description "Management IP address of the switch";
112 type inet:ip-address;
116 description "The hwvtep global node to which this physical switch belongs to";
117 type hwvtep-global-ref;
120 key "tunnel-ips-key";
121 leaf tunnel-ips-key {
122 description "Management IP address of the switch";
123 type inet:ip-address;
127 uses hwvtep-tunnel-attributes ;
129 list ucast-macs-local {
131 uses hwvtep-mac-table-generic-attributes;
132 uses hwvtep-ucast-mac-table-attributes;
134 list ucast-macs-remote {
136 uses hwvtep-mac-table-generic-attributes;
137 uses hwvtep-ucast-mac-table-attributes;
139 list mcast-macs-local {
141 uses hwvtep-mac-table-generic-attributes;
142 uses hwvtep-mcast-mac-table-attributes;
144 list mcast-macs-remote {
146 uses hwvtep-mac-table-generic-attributes;
147 uses hwvtep-mcast-mac-table-attributes;
151 grouping hwvtep-connection-info-attributes {
153 type inet:ip-address;
154 description "Hwvtep Connection Remote IP";
157 type inet:port-number;
158 description "Hwvtep Connection Remote Port Number";
161 type inet:ip-address;
162 description "Hwvtep Connection Local IP";
165 type inet:port-number;
166 description "Hwvtep Connection Local Port Number IP";
170 grouping hwvtep-global-attributes {
171 description "global node for the hwvtep";
172 container connection-info {
173 uses hwvtep-connection-info-attributes;
179 description "Uri indicating connection method to the Manager";
183 description "The unique identifier of the manager";
189 list manager-other-configs {
190 description "Key-value pairs for configuring rarely used features.
191 other_config : dscp : optional string
192 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.";
193 key "other-config-key";
194 leaf other-config-key {
195 description "other-config name/key";
198 leaf other-config-value {
199 description "other-config value";
205 description "List of physical switches managed by this node";
208 type hwvtep-physical-switch-ref;
211 list logical-switches {
212 key "hwvtep-node-name";
213 uses hwvtep-logical-switch-attributes;
217 identity encapsulation-type-base {
218 description "Base Encapsulation type";
221 identity encapsulation-type-vxlan-over-ipv4 {
222 base encapsulation-type-base;
223 description "Encapsulation type vxlan-over-ipv4";
226 typedef encapsulation-type {
228 base encapsulation-type-base;
230 description "This type is used to refer to an Encapsulation Type.";
233 grouping hwvtep-physical-locator-attributes {
234 leaf encapsulation-type {
235 type encapsulation-type;
236 description "Encapsulation type used by this locator";
239 type inet:ip-address;
240 description "IP address of the locator";
244 grouping hwvtep-physical-locator-set-attributes {
247 type hwvtep-physical-locator-ref;
252 grouping hwvtep-logical-switch-attributes {
253 uses hwvtep-node-identification;
254 leaf hwvtep-logical-switch-external-id {
255 description "A unique identifier of the logical switch";
259 description "Per Logical Switch tunnel key";
262 uses hwvtep-physical-locator-set-attributes;
265 grouping hwvtep-physical-port-attributes {
266 uses hwvtep-node-identification;
268 description "A map of vlan ID to logical switch pairs";
271 description "vlan ids in the range 0 - 4095";
272 type ethertype:vlan-id;
274 leaf logical-switch-ref {
275 description "Reference to logical switch for the vlan";
276 type hwvtep-logical-switch-ref;
281 augment "/topo:network-topology/topo:topology/topo:node" {
282 description "Augmentation for physical switch nodes managed by hwvtep";
283 ext:augment-identifier "physical-switch-augmentation";
284 uses hwvtep-physical-switch-attributes;
287 augment "/topo:network-topology/topo:topology/topo:node" {
288 description "Augment topology node for a hwvtep node";
289 ext:augment-identifier "hwvtep-global-augmentation";
290 uses hwvtep-global-attributes;
293 augment "/topo:network-topology/topo:topology/topo:node/topo:termination-point" {
294 description "Augment topology node termination-point for a hwvtep physical-locator";
295 ext:augment-identifier "hwvtep-physical-locator-augmentation";
296 uses hwvtep-physical-locator-attributes;
299 augment "/topo:network-topology/topo:topology/topo:node/topo:termination-point" {
300 description "Augment topology node termination-point for a hwvtep physical-port";
301 ext:augment-identifier "hwvtep-physical-port-augmentation";
302 uses hwvtep-physical-port-attributes;