mirror of
https://github.com/bashclub/check-opnsense.git
synced 2024-11-08 00:31:58 +01:00
Add lagg and member to list of interfaces
This commit is contained in:
parent
7f7d90fab4
commit
102232e4a7
@ -524,6 +524,24 @@ class checkmk_checker(object):
|
|||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
|
_laggs = self._config_reader().get("laggs").get("lagg")
|
||||||
|
if type(_laggs) == dict:
|
||||||
|
_laggs = [_laggs]
|
||||||
|
_ifs.update({
|
||||||
|
l['laggif']: l['laggif']
|
||||||
|
for l in _laggs
|
||||||
|
if l['laggif'] not in _ifs
|
||||||
|
})
|
||||||
|
_ifs.update({
|
||||||
|
m: f"{l['laggif']}_{m}"
|
||||||
|
for l in _laggs
|
||||||
|
for m in l['members'].split(',')
|
||||||
|
if m not in _ifs
|
||||||
|
})
|
||||||
|
except:
|
||||||
|
pass
|
||||||
return _ifs
|
return _ifs
|
||||||
|
|
||||||
def checklocal_firmware(self):
|
def checklocal_firmware(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user