• Ben Pfaff's avatar
    Replace most uses of and references to "ifconfig" by "ip". · 0b2c7e69
    Ben Pfaff authored
    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: default avatarBen Pfaff <blp@ovn.org>
    0b2c7e69
Name
Last commit
Last update
..
.gitignore Loading commit data...
GPLv2 Loading commit data...
LICENSE Loading commit data...
README.rst Loading commit data...
automake.mk Loading commit data...
etc_init.d_openvswitch Loading commit data...
etc_init.d_openvswitch-xapi-update Loading commit data...
etc_logrotate.d_openvswitch Loading commit data...
etc_profile.d_openvswitch.sh Loading commit data...
etc_xapi.d_plugins_openvswitch-cfg-update Loading commit data...
etc_xensource_scripts_vif Loading commit data...
openvswitch-xen.spec.in Loading commit data...
opt_xensource_libexec_InterfaceReconfigure.py Loading commit data...
opt_xensource_libexec_InterfaceReconfigureBridge.py Loading commit data...
opt_xensource_libexec_InterfaceReconfigureVswitch.py Loading commit data...
opt_xensource_libexec_interface-reconfigure Loading commit data...
usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py Loading commit data...
usr_share_openvswitch_scripts_ovs-xapi-sync Loading commit data...
usr_share_openvswitch_scripts_sysconfig.template Loading commit data...