[Ovirt-devel] [PATCH] Merge developer/bundled appliance into a single appliance: ovirt-appliance

Chris Lalancette clalance at redhat.com
Thu Jul 3 17:57:57 UTC 2008


Perry N. Myers wrote:
> Jeff Schroeder wrote:
> [snip]
>>> However you did point out two things here, first is that the check for
>>> ifcfg-eth1 may not be sufficient to detect whether or not the designated
>>> interface is running.  Secondly there may be portability issues with using
>>> ifconfig.  I'll see if I can refactor these checks to use something like ip.
>>>  Suggestions from our friends working in other distros would be appreciated
>>> here.
>> What makes this more portable than the same thing using ifconfig?
>> "ip addr show $bridge > /dev/null 2>&1 ; bridge_dev_present=$?"
> 
> No idea :) Chris just mentioned to me that ifconfig may not be portable, 
> if you suggest that ifconfig is fairly prevalent then I am content to 
> leave it that way for the time being.  If another random distro wants to 
> use oVirt, then they can refactor the script accordingly.
> 

I think we mis-understood each other.  ifconfig is definitely portable, it's the
existence of /etc/sysconfig/network-script files that is very RedHat/Fedora
specific.  I think these days the "ip" command is slightly preferred to the
"ifconfig" command, but I think either should be fine from a cross-distro point
of view.

Chris Lalancette




More information about the ovirt-devel mailing list