Skip to content

Commit 2e4c0f3

Browse files
committed
adds note about issue with VLAN group
1 parent 341e6ec commit 2e4c0f3

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

docs/source_vmware.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ IP addresses and interfaces will be added to NetBox.
2828
Try to find object first based on the object data, interface MAC addresses and primary IPs.
2929
1. try to find by name and cluster/site
3030
2. try to find by mac addresses interfaces
31-
3. try to find by serial number (1st) or asset tag (2nd) (ESXi host)
31+
3. try to find by serial number (1st) or asset tag (2nd)
3232
4. try to find by primary IP
3333

3434
### Finding hosts and VMs from discovered data
@@ -49,7 +49,7 @@ If two or more NetBox object (device, vm) with matching MACs were found, compare
4949
NetBox object (device, vm) with the highest amount of matching interfaces. If the ratio of matching interface
5050
MAC addresses exceeds 2.0 then the top matching NetBox object (device, vm) is chosen as desired object.
5151

52-
If the ratio is below 2.0 then None will be chosen. The probability is to low that
52+
If the ratio is below 2.0 then None will be chosen. The probability is too low that
5353
this one is the correct one.
5454

5555
#### 3. Try to find a NetBox object based on the primary IP (v4 or v6) address

module/sources/vmware/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,9 @@ def __init__(self):
340340
by name. Same matching rules as the exclude_by_name option uses are applied.
341341
If name and id relations are defined, the name relation takes precedence.
342342
Fist match wins. Only newly discovered VLANs which are not present in
343-
NetBox will be assigned a VLAN group.
343+
NetBox will be assigned a VLAN group. Supported scopes for a VLAN group
344+
are "site", "site-group", "cluster" and "cluster-group". Scopes are buggy
345+
in NetBox https://github.com/netbox-community/netbox/issues/18706
344346
""",
345347
config_example="London/Vlan_.* = VLAN Group 1, Tokio/Vlan_.* = VLAN Group 2"),
346348
ConfigOption("vlan_group_relation_by_id",

settings-example.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@ password = super-secret
345345
; adds a relation to assign VLAN groups to matching VLANs by name. Same matching rules as
346346
; the exclude_by_name option uses are applied. If name and id relations are defined, the
347347
; name relation takes precedence. Fist match wins. Only newly discovered VLANs which are
348-
; not present in NetBox will be assigned a VLAN group.
348+
; not present in NetBox will be assigned a VLAN group. Supported scopes for a VLAN group
349+
; are "site", "site-group", "cluster" and "cluster-group". Scopes are buggy in NetBox
350+
; https://github.com/netbox-community/netbox/issues/18706
349351
;vlan_group_relation_by_name = London/Vlan_.* = VLAN Group 1, Tokio/Vlan_.* = VLAN Group 2
350352

351353
; adds a relation to assign VLAN groups to matching VLANs by ID. Same matching rules as

0 commit comments

Comments
 (0)