[ovs-git] [openvswitch/ovs] 30227d: ovn: Prevent erroneous duplicate IP address messages.

Ben Pfaff noreply at github.com
Wed Nov 20 23:49:07 UTC 2019


  Branch: refs/heads/branch-2.12
  Home:   https://github.com/openvswitch/ovs
  Commit: 30227d3b6f82381c3bf0ffa6e988a0799c0682f4
      https://github.com/openvswitch/ovs/commit/30227d3b6f82381c3bf0ffa6e988a0799c0682f4
  Author: Mark Michelson <mmichels at redhat.com>
  Date:   2019-11-20 (Wed, 20 Nov 2019)

  Changed paths:
    M ovn/northd/ovn-northd.c

  Log Message:
  -----------
  ovn: Prevent erroneous duplicate IP address messages.

This is a backport to OVS 2.12 of OVN master commit 21c29d5b0c.

When using dynamic address assignment for logical switches, OVN reserves
the first address in the subnet for the attached router port to use.

In commit 488d153ee87841c042af05bc0eb8b5481aaa98cf, the IPAM code was
modified to add assigned router port addresses to IPAM. The use case for
this was when a switch was joined to multiple routers, and all router
addresses were dynamically assigned.

However, that commit also made it so that when a router rightly claimed
the first address in the subnet, ovn-northd would issue a warning about
a duplicate IP address being set. This change fixes the issue by adding
a special case so that we don't add the router's IP address to IPAM if
it is the first address in the subnet. This prevents the warning message
from appearing.

Signed-off-by: Mark Michelson <mmichels at redhat.com>
Acked-by: Numan Siddique <nusiddiq at redhat.com>
Acked-by: Han ZHou <hzhou8 at ebay.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list