[ovs-git] [openvswitch/ovs] 394d4c: ovs-save: Handle different 'ip addr show' output.

GitHub noreply at github.com
Fri Oct 20 19:39:56 UTC 2017


  Branch: refs/heads/branch-2.8
  Home:   https://github.com/openvswitch/ovs
  Commit: 394d4c2356e8c113224f646a098e0d1015d37fa1
      https://github.com/openvswitch/ovs/commit/394d4c2356e8c113224f646a098e0d1015d37fa1
  Author: Gurucharan Shetty <guru at ovn.org>
  Date:   2017-10-20 (Fri, 20 Oct 2017)

  Changed paths:
    M utilities/ovs-lib.in

  Log Message:
  -----------
  ovs-save: Handle different 'ip addr show' output.

On RHEL 7.4 (with iproute-3.10.0-87), a DHCP provided
ipv4 address has the "dynamic" keyword set. For e.g
"ip addr show breth0 | grep inet" shows:

    inet 10.116.248.91/20 brd 10.116.255.255 scope global dynamic breth0
    inet6 fe80::250:56ff:fea8:fdf0/64 scope link

The keyword "dynamic" (according to 'man ip-address') is only
used for ipv6, but in this case this is not true. Our current
code will skip the ipv4 address restoration because of this.

With this commit, we special case "dynamic" keyword to be valid
in case of ipv4.

VMware-BZ: #1982196
Signed-off-by: Gurucharan Shetty <guru at ovn.org>
Acked-by: Yi-Hung Wei <yihung.wei at gmail.com>




More information about the git mailing list