Changeset 2a7010e


Ignore:
Timestamp:
07/09/14 22:04:46 (14 months ago)
Author:
clinta <github@…>
Branches:
master, enter/10, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2, releng/10.2, stable/10
Children:
19bab26, 90df69c
Parents:
89dcc21
Message:

Bridge is destroyed when it still contains members

Noticed this issue on my FreeBSD system, running warden from sysutils/pcbsd-utils. The IP for my host is on bridge0 and I noticed that when I stopped the last warden jail my bridge0 would be deleted, but I still need it and it has my physical interface as a member so the member count is equal to 1 after the epair device is deleted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/warden/scripts/backend/functions.sh

    r37e71e4f r2a7010e  
    643643      ifconfig ${_epaira} destroy 
    644644      _count=`ifconfig ${_bridgeif} | grep member | awk '{ print $2 }' | wc -l` 
    645       if [ "${_count}" -le "1" ] ; then 
     645      if [ "${_count}" -lt "1" ] ; then 
    646646         ifconfig ${_bridgeif} destroy 
    647647      fi 
Note: See TracChangeset for help on using the changeset viewer.