dainok / netdoc

Automatic Network Documentation plugin for NetBox
GNU General Public License v3.0
89 stars 14 forks source link

Auto update/delete VM #125

Open dietybright opened 6 months ago

dietybright commented 6 months ago

Hi,

The netdoc script for auto create vm work perfectly, it would be greate if it could do auto update/delete vm just like create vm after discovery

dainok commented 6 months ago

In my idea NetDoc is used to ingest data into Netbox. Then your process should take care about maintaining data on Netbox. Update should works, delete won't, but I'm not sure it's the best choice. Likewise Netdoc is not deleting anything on network devices (e.g. obsoletes tunnel interfaces).

What do you think?

dietybright commented 6 months ago

For network devices, we should maintance directly on netbox since it is physical device/interface, but for virtual machine, it quite hard to keep that way, it would be created/updated/deleted day by da y from vcenter, better to have a way to sync over netbox via netdoc

dietybright commented 6 months ago

I tried to shutdown one test vm and run script but update did not work, netbox vm status still active, not offline