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 container physical-switch-id {
108 uses hwvtep-node-identification;
110 list management-ips {
111 key "management-ips-key";
112 leaf management-ips-key {
113 description "Management IP address of the switch";
114 type inet:ip-address;
118 description "The hwvtep global node to which this physical switch belongs to";
119 type hwvtep-global-ref;
122 key "tunnel-ips-key";
123 leaf tunnel-ips-key {
124 description "Management IP address of the switch";
125 type inet:ip-address;
129 uses hwvtep-tunnel-attributes ;
131 list ucast-macs-local {
133 uses hwvtep-mac-table-generic-attributes;
134 uses hwvtep-ucast-mac-table-attributes;
136 list ucast-macs-remote {
138 uses hwvtep-mac-table-generic-attributes;
139 uses hwvtep-ucast-mac-table-attributes;
141 list mcast-macs-local {
143 uses hwvtep-mac-table-generic-attributes;
144 uses hwvtep-mcast-mac-table-attributes;
146 list mcast-macs-remote {
148 uses hwvtep-mac-table-generic-attributes;
149 uses hwvtep-mcast-mac-table-attributes;
153 grouping hwvtep-connection-info-attributes {
155 type inet:ip-address;
156 description "Hwvtep Connection Remote IP";
159 type inet:port-number;
160 description "Hwvtep Connection Remote Port Number";
163 type inet:ip-address;
164 description "Hwvtep Connection Local IP";
167 type inet:port-number;
168 description "Hwvtep Connection Local Port Number IP";
172 grouping hwvtep-global-attributes {
173 description "global node for the hwvtep";
174 container connection-info {
175 uses hwvtep-connection-info-attributes;
181 description "Uri indicating connection method to the Manager";
185 description "The unique identifier of the manager";
191 list manager-other-configs {
192 description "Key-value pairs for configuring rarely used features.
193 other_config : dscp : optional string
194 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.";
195 key "other-config-key";
196 leaf other-config-key {
197 description "other-config name/key";
200 leaf other-config-value {
201 description "other-config value";
209 type hwvtep-physical-switch-ref;
214 identity encapsulation-type-base {
215 description "Base Encapsulation type";
218 identity encapsulation-type-vxlan-over-ipv4 {
219 base encapsulation-type-base;
220 description "Encapsulation type vxlan-over-ipv4";
223 typedef encapsulation-type {
225 base encapsulation-type-base;
227 description "This type is used to refer to an Encapsulation Type.";
230 grouping hwvtep-physical-locator-attributes {
231 leaf encapsulation-type {
232 type encapsulation-type;
233 description "Encapsulation type used by this locator";
236 type inet:ip-address;
237 description "IP address of the locator";
241 grouping hwvtep-physical-locator-set-attributes {
244 type hwvtep-physical-locator-ref;
249 grouping hwvtep-logical-switch-attributes {
250 uses hwvtep-node-identification;
251 leaf hwvtep-logical-switch-external-id {
252 description "A unique identifier of the logical switch";
256 description "Per Logical Switch tunnel key";
261 grouping hwvtep-physical-port-attributes {
262 container physical-port-id {
263 uses hwvtep-node-identification;
266 description "A map of vlan ID to logical switch pairs";
269 description "vlan ids in the range 0 - 4095";
270 type ethertype:vlan-id;
272 leaf logical-switch {
273 description "Reference to logical switch for the vlan";
274 type hwvtep-logical-switch-ref;
279 augment "/topo:network-topology/topo:topology/topo:node" {
280 description "Augmentation for physical switch nodes managed by hwvtep";
281 ext:augment-identifier "physical-switch-augmentation";
282 uses hwvtep-physical-switch-attributes;
285 augment "/topo:network-topology/topo:topology/topo:node" {
286 description "Augment topology node for a hwvtep node";
287 ext:augment-identifier "hwvtep-global-augmentation";
288 uses hwvtep-global-attributes;
291 augment "/topo:network-topology/topo:topology/topo:node" {
292 description "Augmentation for logical switches for a hwvtep node";
293 ext:augment-identifier "hwvtep-logical-switch-augmentation";
294 uses hwvtep-logical-switch-attributes;
297 augment "/topo:network-topology/topo:topology/topo:node" {
298 description "Augmentation for physical locator set for a hwvtep node";
299 ext:augment-identifier "hwvtep-physical-locator-set-augmentation";
300 uses hwvtep-physical-locator-set-attributes;
302 augment "/topo:network-topology/topo:topology/topo:node/topo:termination-point" {
303 description "Augment topology node termination-point for a hwvtep physical-locator";
304 ext:augment-identifier "hwvtep-physical-locator-augmentation";
305 uses hwvtep-physical-locator-attributes;
307 augment "/topo:network-topology/topo:topology/topo:node/topo:termination-point" {
308 description "Augment topology node termination-point for a hwvtep physical-port";
309 ext:augment-identifier "hwvtep-physical-port-augmentation";
310 uses hwvtep-physical-port-attributes;