Update to version 2.11.12, then 3.1.7
Add anonymous access to most data model fields
fixes for metadata/license/lint
Change-Id: I728b6fbda2927ee7e3d9b994e1c8f97d7d9493ba
diff --git a/templates/configuration.py.j2 b/templates/configuration.py.j2
index de51076..cdd8531 100644
--- a/templates/configuration.py.j2
+++ b/templates/configuration.py.j2
@@ -129,10 +129,60 @@
# Exempt certain models from the enforcement of view permissions. Models listed here will be viewable by all users and
# by anonymous users. List models in the form `<app>.<model>`. Add '*' to this list to exempt all models.
+#
+# FIXME - this should be a more complete list, but one isn't available from the Netbox docs
EXEMPT_VIEW_PERMISSIONS = [
- # 'dcim.site',
- # 'dcim.region',
- # 'ipam.prefix',
+ 'dcim.cable',
+ 'dcim.cablepath',
+ 'dcim.connecteddevice',
+ 'dcim.consoleconnection',
+ 'dcim.console-port-templates',
+ 'dcim.consoleport',
+ 'dcim.consoleserver-port-templates',
+ 'dcim.consoleserver-port',
+ 'dcim.devicebaytemplates',
+ 'dcim.devicebays',
+ 'dcim.devicerole',
+ 'dcim.devicetype',
+ 'dcim.device',
+ 'dcim.front-port-templates',
+ 'dcim.front-ports',
+ 'dcim.interface-connection',
+ 'dcim.interface-templates',
+ 'dcim.interface',
+ 'dcim.inventoryitem',
+ 'dcim.manufacturer',
+ 'dcim.platform',
+ 'dcim.powerconnections',
+ 'dcim.powerfeed',
+ 'dcim.poweroutlet-templates',
+ 'dcim.poweroutlet',
+ 'dcim.powerpanel',
+ 'dcim.powerport-templates',
+ 'dcim.powerports',
+ 'dcim.rackgroups',
+ 'dcim.rackreservation',
+ 'dcim.rackrole',
+ 'dcim.rack',
+ 'dcim.rearporttemplate',
+ 'dcim.rearport',
+ 'dcim.region',
+ 'dcim.site',
+ 'dcim.sitegroup',
+ 'dcim.virtualchassis',
+ 'ipam.aggregate',
+ 'ipam.ipaddress',
+ 'ipam.prefix',
+ 'ipam.rir',
+ 'ipam.role',
+ 'ipam.service',
+ 'ipam.vlangroup',
+ 'ipam.vlan',
+ 'ipam.vrf',
+ 'tenancy.tenant-groups',
+ 'tenancy.tenant',
+ 'virtualization.virtual-machine',
+ 'extras.tags',
]
# HTTP proxies NetBox should use when sending outbound HTTP requests (e.g. for webhooks).