[ovs-git] [ovn-org/ovn] 922c45: Support additional 'iface-id-ver' options in OVS i...

numansiddique noreply at github.com
Fri Aug 20 23:09:46 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/ovn-org/ovn
  Commit: 922c45f74a006d8c0dde400b130915b08b90a1e3
      https://github.com/ovn-org/ovn/commit/922c45f74a006d8c0dde400b130915b08b90a1e3
  Author: Numan Siddique <numans at ovn.org>
  Date:   2021-08-20 (Fri, 20 Aug 2021)

  Changed paths:
    M controller/binding.c
    M ovn-nb.xml
    M ovn-sb.xml
    M tests/ovn.at

  Log Message:
  -----------
  Support additional 'iface-id-ver' options in OVS inteface for claiming an lport.

In order for the ovn-controller to claim a logical port, it maps the
OVS interface external_ids:iface-id to the port binding's logical_port
column.  This patch adds support for another option - 'iface-id-ver'.
CMS needs to set the same key-value in Logical_Switch_Port.options
column.

ovn-controller will claim the OVS interface only if
external_ids:iface-id matches with the Port_Binding.logical_port
and external_ids:iface-id-ver matches with the
Port_Binding.options:iface-id-ver.  This is not mandatory.
If Port_binding.options:vif-id is not set, then OVS
Interface.external_ids:vif-id if set is ignored.

This support is added so that CMS can uniquely identify the OVS
interface to the corresponding logical port.

The referenced bugzilla and this ovn-k8s commit [1] has additional details.

[1] - https://github.com/ovn-org/ovn-kubernetes/commit/22bed6a10c6

Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1995333
Acked-by: Mark D. Gray <mark.d.gray at redhat.com>
Signed-off-by: Numan Siddique <numans at ovn.org>




More information about the git mailing list