Added tag support

This commit is contained in:
Raymond Kuiper
2025-02-19 15:56:01 +01:00
parent fd70045c6d
commit d65fa5b699
6 changed files with 208 additions and 8 deletions

View File

@@ -11,6 +11,7 @@ try:
from config import (
vm_inventory_map,
vm_usermacro_map,
vm_tag_map,
traverse_site_groups,
traverse_regions
)
@@ -31,9 +32,13 @@ class VirtualMachine(PhysicalDevice):
return vm_inventory_map
def _usermacro_map(self):
""" use VM inventory maps """
""" use VM usermacro maps """
return vm_usermacro_map
def _tag_map(self):
""" use VM tag maps """
return vm_tag_map
def set_hostgroup(self, hg_format, nb_site_groups, nb_regions):
"""Set the hostgroup for this device"""
# Create new Hostgroup instance