Commit a68a1c33 authored by Dmitry Volodin's avatar Dmitry Volodin
Browse files

Merge branch 'patch-avs-portmap' into 'master'

Catch portmapper exception on NRI discovery.

See merge request !3612
parents 61aa7de4 061196b7
Pipeline #23111 passed with stages
in 37 minutes and 30 seconds
......@@ -55,7 +55,13 @@ class NRIPortmapperCheck(DiscoveryCheck):
{"managed_object":, "type": "physical"},
{"_id": 1, "name": 1, "nri_name": 1},
nri_name = portmapper.to_remote(d["name"], iface_hints=ifaces_hints)
nri_name = portmapper.to_remote(d["name"], iface_hints=ifaces_hints)
except Exception as e:
"[%s] Unhandled exception on portmapper handler '%s'. Skipping checks.", nri, e
self.logger.debug("[%s] Port mapping %s <-> %s", nri, d["name"], nri_name)
if not nri_name:"[%s] Cannot map port name '%s'", nri, d["name"])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment