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 213751 Details for
Bug 315691
ifup should restore VLAN routes
[?]
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]
patch to ifup-routes for VLANs
initscripts-vlanroutes.patch (text/plain), 1.57 KB, created by
Alan Porter
on 2007-10-02 18:12:03 UTC
(
hide
)
Description:
patch to ifup-routes for VLANs
Filename:
MIME Type:
Creator:
Alan Porter
Created:
2007-10-02 18:12:03 UTC
Size:
1.57 KB
patch
obsolete
>--- initscripts-7.93.25.EL/sysconfig/network-scripts/ifup-routes.vlan_routes 2007-09-26 17:00:42.000000000 -0400 >+++ initscripts-7.93.25.EL/sysconfig/network-scripts/ifup-routes 2007-09-26 17:02:37.000000000 -0400 >@@ -64,3 +64,53 @@ > done > fi > done >+ >+##### >+# VLANs >+# If an interface has VLANs on top of it, then restore the VLAN routes >+# (if possible) after the interface is up. >+ >+interface=$1 # this is passed to ifup-routes >+ >+prefix="/etc/sysconfig/network-scripts/ifcfg-" >+glob="$prefix$interface.*" >+ >+shopt -s extglob >+shopt -s nullglob >+if [ "*($glob)" != "" ] ; then >+ >+ # The interface has one or more VLANs. >+ >+ for filepath in $glob ; do >+ vlan=${filepath##*-} >+ >+ # If the VLAN is up, restore its routes. >+ if [ -f "/proc/net/vlan/$vlan" ] ; then >+ >+ # vvv this snippet cut directly from ifup-routes above >+ file="/etc/sysconfig/network-scripts/route-$vlan" >+ if [ -f "$file" ]; then >+ if egrep -q '^[[:space:]]*ADDRESS[0-9]+=' $file ; then >+ # new format >+ handle_file $file ${1%:*} >+ else >+ # older format >+ { cat "$file" ; echo ; } | while read line; do >+ if [[ ! "$line" =~ '^[[:space:]]*(\#.*)?$' ]]; then >+ /sbin/ip route add $line >+ fi >+ done >+ fi >+ fi >+ # ^^^ this snippet cut directly from ifup-routes above >+ >+ fi >+ >+ done >+ >+fi >+ >+##### >+ >+exit 0 >+
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 315691
: 213751