mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-13 23:27:32 -06:00
Implemented vm_usermacro_map
This commit is contained in:
parent
edb9cd6ab6
commit
3d4e7803cc
@ -10,6 +10,7 @@ from modules.exceptions import TemplateError, InterfaceConfigError, SyncInventor
|
|||||||
try:
|
try:
|
||||||
from config import (
|
from config import (
|
||||||
vm_inventory_map,
|
vm_inventory_map,
|
||||||
|
vm_usermacro_map,
|
||||||
traverse_site_groups,
|
traverse_site_groups,
|
||||||
traverse_regions
|
traverse_regions
|
||||||
)
|
)
|
||||||
@ -29,6 +30,10 @@ class VirtualMachine(PhysicalDevice):
|
|||||||
""" use VM inventory maps """
|
""" use VM inventory maps """
|
||||||
return vm_inventory_map
|
return vm_inventory_map
|
||||||
|
|
||||||
|
def _usermacro_map(self):
|
||||||
|
""" use VM inventory maps """
|
||||||
|
return vm_usermacro_map
|
||||||
|
|
||||||
def set_hostgroup(self, hg_format, nb_site_groups, nb_regions):
|
def set_hostgroup(self, hg_format, nb_site_groups, nb_regions):
|
||||||
"""Set the hostgroup for this device"""
|
"""Set the hostgroup for this device"""
|
||||||
# Create new Hostgroup instance
|
# Create new Hostgroup instance
|
||||||
|
Loading…
Reference in New Issue
Block a user