[ovs-git] [openvswitch/ovs] 0b2c7e: Replace most uses of and references to "ifconfig" ...

GitHub noreply at github.com
Thu Jun 1 14:25:00 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 0b2c7e690a0ad1efda5487f828690db64133980e
      https://github.com/openvswitch/ovs/commit/0b2c7e690a0ad1efda5487f828690db64133980e
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2017-06-01 (Thu, 01 Jun 2017)

  Changed paths:
    M Documentation/faq/configuration.rst
    M Documentation/faq/issues.rst
    M Documentation/faq/vlan.rst
    M Documentation/howto/dpdk.rst
    M Documentation/howto/kvm.rst
    M Documentation/howto/userspace-tunneling.rst
    M Documentation/ref/ovs-vlan-test.8.rst
    M Documentation/tutorials/ovs-advanced.rst
    M Makefile.am
    M python/ovstest/rpcserver.py
    M python/ovstest/util.py
    M python/ovstest/vswitch.py
    M tests/interface-reconfigure.at
    M utilities/bugtool/ovs-bugtool.in
    M utilities/ovs-ofctl.8.in
    M utilities/ovs-vsctl.8.in
    M xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py
    M xenserver/opt_xensource_libexec_interface-reconfigure

  Log Message:
  -----------
  Replace most uses of and references to "ifconfig" by "ip".

It's becoming more common that OSes include "ip" but not "ifconfig", so
it's best to avoid using the latter.  This commit removes most references
to "ifconfig" and replaces them by "ip".  It also adds a build-time check
to make it harder to introduce new uses of "ifconfig".

There are important differences between "ifconfig" and "ip":

- An "ifconfig" command that sets an IP address also brings the interface
  up, but a similar "ip addr add" command does not, so it is often necessary
  (or at least precautionary) to add an "ip link set <dev> up" command.

- "ifconfig" can infer a netmask from an IP adddress, but "ip" always
  assumes /32 if none is given.

- "ifconfig" with address 0.0.0.0 removes any configured IP address, but
  "ip addr add" does not, so "ifconfig <dev> 0.0.0.0" must be replaced by
  "ip addr del" or "ip addr flush".

Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list