1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

bridgeutils: build cache only if bridge-utils is installed

This commit is contained in:
Roopa Prabhu
2015-10-26 08:46:22 -07:00
parent 878ee1f0dc
commit 339f3e52c8

View File

@@ -20,9 +20,9 @@ class brctl(utilsBase):
def __init__(self, *args, **kargs):
utilsBase.__init__(self, *args, **kargs)
if self.CACHE and not brctl._cache_fill_done:
self._bridge_fill()
brctl._cache_fill_done = True
if os.path.exists('/sbin/brctl'):
self._bridge_fill()
self._cache_fill_done = True
def _bridge_get_mcattrs_from_sysfs(self, bridgename):
mcattrs = {}