Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 146865 Details for
Bug 225226
Bonding fails due to errors in network-functions.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Diff file for network-functions in /etc/sysconfig/network-scripts to solve the problem.
network-functions.diff (text/plain), 950 bytes, created by
J.H. Prins
on 2007-01-29 20:43:33 UTC
(
hide
)
Description:
Diff file for network-functions in /etc/sysconfig/network-scripts to solve the problem.
Filename:
MIME Type:
Creator:
J.H. Prins
Created:
2007-01-29 20:43:33 UTC
Size:
950 bytes
patch
obsolete
>--- network-functions.old 2006-03-17 17:48:56.000000000 +0100 >+++ network-functions 2007-01-29 15:17:53.000000000 +0100 >@@ -278,6 +278,13 @@ > echo $output | LC_ALL=C grep -q "Link detected: no" && return 0 || return 2 > } > >+check_mii_bond () >+{ >+ [ -e /proc/net/bonding/$1 ] || return 2 >+ output=`cat /proc/net/bonding/$1` >+ echo $output | LC_ALL=C grep -m 1 "MII Status" | LC_ALL=C grep -q "MII Status: up" && return 1 >+ echo $output | LC_ALL=C grep -m 1 "MII Status" | LC_ALL=C grep -q "MII Status: down" && return 0 || return 2 >+} > > check_link_down () > { >@@ -291,10 +298,12 @@ > m=$? > check_ethtool $1 > e=$? >- if [ $m -eq 1 ] || [ $e -eq 1 ] ; then >+ check_mii_bond $1 >+ b=$? >+ if [ $m -eq 1 ] || [ $e -eq 1 ] || [ $b -eq 1 ] ; then > return 1 > fi >- if [ $m -eq 2 ] && [ $e -eq 2 ] ; then >+ if [ $m -eq 2 ] && [ $e -eq 2 ] && [ $b -eq 2 ] ; then > return 1 > fi > usleep 500000
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 225226
: 146865