mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
implemnted #2392 - local config context for devices and VMs
This commit is contained in:
@@ -716,6 +716,10 @@ class ConfigContextModel(models.Model):
|
||||
for context in ConfigContext.objects.get_for_object(self):
|
||||
data.update(context.data)
|
||||
|
||||
# If the object has local config context data defined, that data overwrites all rendered data
|
||||
if self.local_config_context_data is not None:
|
||||
data.update(self.local_config_context_data)
|
||||
|
||||
return data
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user