Bug 8476 Add support for logical switch replication mode 09/57209/9
authorVictor Pickard <vpickard@redhat.com>
Tue, 16 May 2017 20:27:54 +0000 (16:27 -0400)
committerAnil Vishnoi <vishnoianil@gmail.com>
Tue, 25 Jul 2017 01:08:20 +0000 (01:08 +0000)
commit75ac49cb0deac9bf1a5cc98dc54ab02dc861d734
tree63cf7e299f5a9a80088fbc6d2a18caafb6272e3b
parent0672bb222a0d12bc8b49ea53e5d2d269b488f203
Bug 8476 Add support for logical switch replication mode

With OVS 2.6, the Logical Switch table, in the hardware_vtep schema, has
a new field, replication_mode. This bug will be used to add support to
netvirt, ovsdb, and genius for setting the replication_mode of logical
switches. The default will be for ODL to set the replication_mode
to "source_node" when creating logical switches.

Refer to [1] for more details on replication_mode.

[1] http://openvswitch.org/support/dist-docs/vtep.5.html

Try/catch block in place to handle case where schema
version does not support replication_mode.

Tested this with OVS 2.5, which does not support replication_mode.
Verified that logical switch is created.

Debug log will be generated when schema version does
not support replication_mode (same check as PhysicalSwitchUpdate).

Change-Id: I374ba52ff5517dacb6af498f34b7e58638f46463
Signed-off-by: Victor Pickard <vpickard@redhat.com>
hwvtepsouthbound/hwvtepsouthbound-api/src/main/yang/hwvtep.yang
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/transact/LogicalSwitchUpdateCommand.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/transactions/md/GlobalUpdateCommand.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/transactions/md/HwvtepLogicalSwitchUpdateCommand.java