bundles/pppd: automatically add interface entry for ignored interface

This commit is contained in:
Franzi 2022-12-11 17:42:08 +01:00
parent 86990b92ea
commit e8d24bc363
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 13 additions and 10 deletions

View file

@ -28,6 +28,19 @@ defaults = {
}
@metadata_reactor.provides(
'interfaces',
)
def ignore_interface(metadata):
return {
'interfaces': {
metadata.get('pppd/interface'): {
'ignore': True,
},
},
}
@metadata_reactor.provides(
'icinga2_api/pppd/services',
)