Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Monitoring
netbox-icinga-config-generator
Commits
c9b33db6
Verified
Commit
c9b33db6
authored
Feb 19, 2022
by
Adrian Schollmeyer
Browse files
generator/host: Respect host_class for VM hosts
parent
5e3c11b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
generate-icinga-generic-host.py
View file @
c9b33db6
...
...
@@ -247,6 +247,9 @@ def create_icinga2_host_object_from_netbox(netbox, device_name):
ssh_port
)
if
device
.
device_role
.
slug
==
"vm-host"
:
host
.
host_class
=
"vm-host"
for
ip4
in
non_uplink_ip4s
:
host
.
add_ip
(
ip4
)
for
ip6
in
non_uplink_ip6s
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment