|
|
@ -1440,7 +1440,7 @@ class LinuxNetwork(Network):
|
|
|
|
path = os.path.join(path, 'bonding', 'all_slaves_active')
|
|
|
|
path = os.path.join(path, 'bonding', 'all_slaves_active')
|
|
|
|
if os.path.exists(path):
|
|
|
|
if os.path.exists(path):
|
|
|
|
interfaces[device]['all_slaves_active'] = open(path).read() == '1'
|
|
|
|
interfaces[device]['all_slaves_active'] = open(path).read() == '1'
|
|
|
|
#Check whether a interface is in promiscuous mode
|
|
|
|
# Check whether a interface is in promiscuous mode
|
|
|
|
if os.path.exists(os.path.join(path,'flags')):
|
|
|
|
if os.path.exists(os.path.join(path,'flags')):
|
|
|
|
promisc_mode = False
|
|
|
|
promisc_mode = False
|
|
|
|
# The second byte indicates whether the interface is in promiscuous mode.
|
|
|
|
# The second byte indicates whether the interface is in promiscuous mode.
|
|
|
|