miaow2 / netbox-config-diff

Find diff and push rendered device configurations from NetBox to devices and apply them.
https://miaow2.github.io/netbox-config-diff/
Apache License 2.0
74 stars 4 forks source link

Device template bound to model/platform instead of device instance. #38

Closed chris240189 closed 10 months ago

chris240189 commented 10 months ago

Is your feature request related to a problem? Please describe. When I updated to 2.x I haven't been able to select devices anymore. I found out, that the device template is now mandatory on the device? Whats the reason for this change? I thought getting at least some basic template inherited from the platform to be a good default.

miaow2 commented 10 months ago

Hi @chris240189, I did not get, where you can't select devices? in ConfigDiffScript?

chris240189 commented 10 months ago

Hi @miaow2 exactly, I can no longer choose most of my devices in the ConfigDiffScript. I was able to do so before, but now I guess I need to set the template explicitly on the device itself and not only on the platform the device belongs to anyway.

I tested it, and assigning the template on the device itself, seems to work for now, also for devices that are already running scheduled jobs, but for adding anything, they need the template set directly.

miaow2 commented 10 months ago

@chris240189 I get it, I will delete the requirement that devices need assigned config templates