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

Component Checks & agents
Title azure_virtual_network_gateways: Fix crash in parsing Azure VNet gateway section
Date May 16, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
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'>))

To the list of all Werks