Skip to content

test: cover track_vm_host and name the NetBox field it fills - #561

Merged
semx merged 1 commit into
developmentfrom
fix/track-vm-host-docs
Sep 9, 2026
Merged

semx merged 1 commit into
developmentfrom
fix/track-vm-host-docs

Conversation

@semx

@semx semx commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Follows your answer on #516.

The option does exactly what was asked, but it had no test, so I added one: it runs both captures and compares the VM's device against what pyVmomi reports for vm.runtime.host, checks the field stays unset by default, that a VM whose host is filtered out still syncs, and that the device follows the VM to another host.

The reason it was not found is probably wording - neither the option name nor its text mentions "Host Device", which is what NetBox calls the field. Reworded both the option description and settings-example.ini to say it, and to mention the NetBox 3.3 requirement the code already enforces. Leaving #516 open for @tikondrus to confirm.

@semx
semx requested a review from bb-Ricardo as a code owner September 9, 2026 23:05
@semx
semx merged commit 6c69119 into development Sep 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant