[PATCH] network: Fix interface enumeration on down
by Rodrigo A B Freire
A "# service network stop" tries to stop already stopped or non-existent
interfaces when a 'tunnel' interface is present.
The function check_device_down will use tunnel0 as a reference interface
(when it is up) and the network script will try to stop every interface
existent in /etc/sysconfig/network-scripts/ifcfg-*, regardless if it actually
exists or is up.
This patch fixes the variable and check_device_down now checks the correct
interface and down/skip the interfaces accordingly.
Fixes: RHBZ 1315018
See attached patch.
--- Rodrigo A B Freire .--. - ..--- .-. --- -..
8 years, 2 months
[PATCH] [MASTER] network: Treat other tunnel interfaces, fixes
ifdown stage
by Rodrigo A B Freire
To be applied in MASTER branch.
This patch is a complement of commit 5e9dd516e2e0 ("add bonding &
xDSL to the list of devices brought up afterwards (#97030,#91399)"),
ensuring that GRE and IPIP tunnels are brought up after base
interfaces are up, and bring down before the underlying interface
goes down.
ALSO
A "# service network stop" tries to stop already stopped or non-existent
interfaces when a 'tunnel' interface is present.
The function check_device_down will use tunnel0 as a reference interface
(when it is up) and the network script will try to stop every interface
existent in /etc/sysconfig/network-scripts/ifcfg-*, regardless if it actually
exists or is up.
This patch fixes the variable and check_device_down now checks the correct
interface and down/skip the interfaces accordingly.
Signed-off-by: Rodrigo Freire <rfreire(a)redhat.com> --- Rodrigo A B Freire .--. - ..--- .-. --- -..
8 years, 2 months
[PATCH] network: Add tunnels to the list of devices brought up
afterwards
by Rodrigo A B Freire
And bring them down first.
This patch is a complement of commit 5e9dd516e2e0 ("add bonding &
xDSL to the list of devices brought up afterwards (#97030,#91399)"),
ensuring that GRE and IPIP tunnels are brought up after base
interfaces are up, and bring down before the underlying interface
goes down.
Before:
[root@rf ~]# service network stop
Shutting down interface eth0: Device state: 3 (disconnected)
[ OK ]
Shutting down interface tunnel0: [ OK ]
Shutting down loopback interface: [ OK ]
After:
[root@rf ~]# service network stop
Shutting down interface tunnel0: [ OK ]
Shutting down interface eth0: Device state: 3 (disconnected)
[ OK ]
Shutting down loopback interface: [ OK ]
Signed-off-by: Rodrigo Freire <rfreire(a)redhat.com> --- Rodrigo A B Freire .--. - ..--- .-. --- -..
8 years, 2 months