updated README for multiple hostgoups

This commit is contained in:
Raymond Kuiper 2025-06-13 15:56:21 +02:00
parent b62e8203b6
commit a7a79ea81e

View File

@ -175,13 +175,14 @@ used:
| ------------ | ------------------------ |
| location | The device location name |
| manufacturer | Device manufacturer name |
| rack | Rack |
**Only for VMs**
| name | description |
| ------------ | --------------- |
| cluster | VM cluster name |
| cluster_type | VM cluster type |
| device | parent device |
You can specify the value seperated by a "/" like so:
@ -189,6 +190,13 @@ You can specify the value seperated by a "/" like so:
hostgroup_format = "tenant/site/dev_location/role"
```
You can also provice a list of groups like so:
```python
hostgroup_format = ["region/site_group/site", "role", "tenant_group/tenant"]
```
**Group traversal**
The default behaviour for `region` is to only use the directly assigned region