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 |
Checkmk Edition | Checkmk Cloud Edition (CCE) |
Checkmk Version | 2.3.0b1 2.2.0p1 |
Level | Trivial Change |
Class | Bug Fix |
Compatibility | Compatible - no manual interaction needed |
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'>))