mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
ifupdownaddons: bridgeutils: build cache only if bridge-utils installed
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
@ -22,7 +22,8 @@ class brctl(utilsBase):
|
||||
def __init__(self, *args, **kargs):
|
||||
utilsBase.__init__(self, *args, **kargs)
|
||||
if ifupdownflags.flags.CACHE and not brctl._cache_fill_done:
|
||||
self._bridge_fill()
|
||||
if os.path.exists('/sbin/brctl'):
|
||||
self._bridge_fill()
|
||||
brctl._cache_fill_done = True
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user