Werk #15752: azure_virtual_network_gateways: Fix crash in parsing Azure VNet gateway section

Komponente Checks & agents
Titel azure_virtual_network_gateways: Fix crash in parsing Azure VNet gateway section
Datum 16.05.2023
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Checkmk versions & editions
2.3.0b1 Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p1 Checkmk Cloud (CCE)

If you are monitoring an Azure VNet gateway that has BGP enabled, but does not have any BGP peering addresses, the section parsing crashed:

  ValidationError (([ErrorWrapper(exc=ValidationError(model='BgpSettings', errors=[{'loc': ('bgpPeeringAddresses',), 'msg': 'field required', 'type': 'value_error.missing'}]), loc=('bgpSettings',))], <class 'cmk.base.plugins.agent_based.azure_virtual_network_gateways.VNetGWSettings'>))

Zur Liste aller Werks