diff --git a/netbox/circuits/views.py b/netbox/circuits/views.py
index 2edb5a78e..67869f007 100644
--- a/netbox/circuits/views.py
+++ b/netbox/circuits/views.py
@@ -45,7 +45,7 @@ class ProviderView(generic.ObjectView):
RequestConfig(request, paginate).configure(circuits_table)
return render(request, 'circuits/provider.html', {
- 'provider': provider,
+ 'object': provider,
'circuits_table': circuits_table,
})
@@ -144,7 +144,7 @@ class CircuitView(generic.ObjectView):
termination_z.ip_addresses = termination_z.connected_endpoint.ip_addresses.restrict(request.user, 'view')
return render(request, 'circuits/circuit.html', {
- 'circuit': circuit,
+ 'object': circuit,
'termination_a': termination_a,
'termination_z': termination_z,
})
diff --git a/netbox/dcim/views.py b/netbox/dcim/views.py
index f8fb415ea..879f1a7cf 100644
--- a/netbox/dcim/views.py
+++ b/netbox/dcim/views.py
@@ -172,7 +172,7 @@ class SiteView(generic.ObjectView):
).restrict(request.user, 'view').filter(site=site)
return render(request, 'dcim/site.html', {
- 'site': site,
+ 'object': site,
'stats': stats,
'rack_groups': rack_groups,
})
@@ -360,7 +360,7 @@ class RackView(generic.ObjectView):
power_feeds = PowerFeed.objects.restrict(request.user, 'view').filter(rack=rack).prefetch_related('power_panel')
return render(request, 'dcim/rack.html', {
- 'rack': rack,
+ 'object': rack,
'device_count': Device.objects.restrict(request.user, 'view').filter(rack=rack).count(),
'reservations': reservations,
'power_feeds': power_feeds,
@@ -2335,7 +2335,7 @@ class VirtualChassisView(generic.ObjectView):
members = Device.objects.restrict(request.user).filter(virtual_chassis=virtualchassis)
return render(request, 'dcim/virtualchassis.html', {
- 'virtualchassis': virtualchassis,
+ 'object': virtualchassis,
'members': members,
})
diff --git a/netbox/extras/views.py b/netbox/extras/views.py
index 38b3f5148..37a3ad210 100644
--- a/netbox/extras/views.py
+++ b/netbox/extras/views.py
@@ -109,7 +109,7 @@ class ConfigContextView(generic.ObjectView):
format = 'json'
return render(request, 'extras/configcontext.html', {
- 'configcontext': configcontext,
+ 'object': configcontext,
'format': format,
})
@@ -215,7 +215,7 @@ class ObjectChangeView(generic.ObjectView):
diff_added = diff_removed = objectchange.object_data
return render(request, 'extras/objectchange.html', {
- 'objectchange': objectchange,
+ 'object': objectchange,
'diff_added': diff_added,
'diff_removed': diff_removed,
'next_change': next_change,
diff --git a/netbox/ipam/views.py b/netbox/ipam/views.py
index 2ee6979df..40d8a5207 100644
--- a/netbox/ipam/views.py
+++ b/netbox/ipam/views.py
@@ -43,7 +43,7 @@ class VRFView(generic.ObjectView):
)
return render(request, 'ipam/vrf.html', {
- 'vrf': vrf,
+ 'object': vrf,
'prefix_count': prefix_count,
'import_targets_table': import_targets_table,
'export_targets_table': export_targets_table,
@@ -106,7 +106,7 @@ class RouteTargetView(generic.ObjectView):
)
return render(request, 'ipam/routetarget.html', {
- 'routetarget': routetarget,
+ 'object': routetarget,
'importing_vrfs_table': importing_vrfs_table,
'exporting_vrfs_table': exporting_vrfs_table,
})
@@ -241,7 +241,7 @@ class AggregateView(generic.ObjectView):
}
return render(request, 'ipam/aggregate.html', {
- 'aggregate': aggregate,
+ 'object': aggregate,
'prefix_table': prefix_table,
'permissions': permissions,
'show_available': request.GET.get('show_available', 'true') == 'true',
@@ -358,7 +358,7 @@ class PrefixView(generic.ObjectView):
duplicate_prefix_table.exclude = ('vrf',)
return render(request, 'ipam/prefix.html', {
- 'prefix': prefix,
+ 'object': prefix,
'aggregate': aggregate,
'parent_prefix_table': parent_prefix_table,
'duplicate_prefix_table': duplicate_prefix_table,
@@ -399,7 +399,7 @@ class PrefixPrefixesView(generic.ObjectView):
}
return render(request, 'ipam/prefix_prefixes.html', {
- 'prefix': prefix,
+ 'object': prefix,
'first_available_prefix': prefix.get_first_available_prefix(),
'prefix_table': prefix_table,
'permissions': permissions,
@@ -443,7 +443,7 @@ class PrefixIPAddressesView(generic.ObjectView):
}
return render(request, 'ipam/prefix_ipaddresses.html', {
- 'prefix': prefix,
+ 'object': prefix,
'first_available_ip': prefix.get_first_available_ip(),
'ip_table': ip_table,
'permissions': permissions,
@@ -539,7 +539,7 @@ class IPAddressView(generic.ObjectView):
RequestConfig(request, paginate).configure(related_ips_table)
return render(request, 'ipam/ipaddress.html', {
- 'ipaddress': ipaddress,
+ 'object': ipaddress,
'parent_prefixes_table': parent_prefixes_table,
'duplicate_ips_table': duplicate_ips_table,
'more_duplicate_ips': duplicate_ips.count() > 10,
@@ -739,7 +739,7 @@ class VLANView(generic.ObjectView):
prefix_table.exclude = ('vlan',)
return render(request, 'ipam/vlan.html', {
- 'vlan': vlan,
+ 'object': vlan,
'prefix_table': prefix_table,
})
@@ -759,7 +759,7 @@ class VLANInterfacesView(generic.ObjectView):
RequestConfig(request, paginate).configure(members_table)
return render(request, 'ipam/vlan_interfaces.html', {
- 'vlan': vlan,
+ 'object': vlan,
'members_table': members_table,
'active_tab': 'interfaces',
})
@@ -780,7 +780,7 @@ class VLANVMInterfacesView(generic.ObjectView):
RequestConfig(request, paginate).configure(members_table)
return render(request, 'ipam/vlan_vminterfaces.html', {
- 'vlan': vlan,
+ 'object': vlan,
'members_table': members_table,
'active_tab': 'vminterfaces',
})
diff --git a/netbox/templates/circuits/circuit.html b/netbox/templates/circuits/circuit.html
index dde053ee0..0948610c8 100644
--- a/netbox/templates/circuits/circuit.html
+++ b/netbox/templates/circuits/circuit.html
@@ -4,15 +4,15 @@
{% load helpers %}
{% load plugins %}
-{% block title %}{{ circuit }}{% endblock %}
+{% block title %}{{ object }}{% endblock %}
{% block header %}
- {% plugin_buttons circuit %}
+ {% plugin_buttons object %}
{% if perms.circuits.add_circuit %}
- {% clone_button circuit %}
+ {% clone_button object %}
{% endif %}
{% if perms.circuits.change_circuit %}
- {% edit_button circuit %}
+ {% edit_button object %}
{% endif %}
{% if perms.circuits.delete_circuit %}
- {% delete_button circuit %}
+ {% delete_button object %}
{% endif %}
- {{ circuit }}
- {% include 'inc/created_updated.html' with obj=circuit %}
+ {{ object }}
+ {% include 'inc/created_updated.html' with obj=object %}
- {% custom_links circuit %}
+ {% custom_links object %}
@@ -68,31 +68,31 @@
Status
- {{ circuit.get_status_display }}
+ {{ object.get_status_display }}
Provider
- {{ circuit.provider }}
+ {{ object.provider }}
Circuit ID
- {{ circuit.cid }}
+ {{ object.cid }}
Type
- {{ circuit.type }}
+ {{ object.type }}
Tenant
- {% if circuit.tenant %}
- {% if circuit.tenant.group %}
- {{ circuit.tenant.group }} /
+ {% if object.tenant %}
+ {% if object.tenant.group %}
+ {{ object.tenant.group }} /
{% endif %}
- {{ circuit.tenant }}
+ {{ object.tenant }}
{% else %}
None
{% endif %}
@@ -100,43 +100,43 @@
Install Date
- {{ circuit.install_date|placeholder }}
+ {{ object.install_date|placeholder }}
Commit Rate
- {{ circuit.commit_rate|humanize_speed|placeholder }}
+ {{ object.commit_rate|humanize_speed|placeholder }}
Description
- {{ circuit.description|placeholder }}
+ {{ object.description|placeholder }}
- {% include 'inc/custom_fields_panel.html' with obj=circuit %}
- {% include 'extras/inc/tags_panel.html' with tags=circuit.tags.all url='circuits:circuit_list' %}
+ {% include 'inc/custom_fields_panel.html' with obj=object %}
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='circuits:circuit_list' %}
Comments
- {% if circuit.comments %}
- {{ circuit.comments|render_markdown }}
+ {% if object.comments %}
+ {{ object.comments|render_markdown }}
{% else %}
None
{% endif %}
- {% plugin_left_page circuit %}
+ {% plugin_left_page object %}
{% include 'circuits/inc/circuit_termination.html' with termination=termination_a side='A' %}
{% include 'circuits/inc/circuit_termination.html' with termination=termination_z side='Z' %}
- {% plugin_right_page circuit %}
+ {% plugin_right_page object %}
- {% plugin_full_width_page circuit %}
+ {% plugin_full_width_page object %}
{% endblock %}
diff --git a/netbox/templates/circuits/inc/circuit_termination.html b/netbox/templates/circuits/inc/circuit_termination.html
index aaeb114eb..477788931 100644
--- a/netbox/templates/circuits/inc/circuit_termination.html
+++ b/netbox/templates/circuits/inc/circuit_termination.html
@@ -4,7 +4,7 @@
{% if not termination and perms.circuits.add_circuittermination %}
-
+
Add
{% endif %}
@@ -12,12 +12,12 @@
Edit
-
+
Swap
{% endif %}
{% if termination and perms.circuits.delete_circuittermination %}
-
+
Delete
{% endif %}
@@ -67,10 +67,10 @@
Connect
diff --git a/netbox/templates/circuits/provider.html b/netbox/templates/circuits/provider.html
index a746e4eed..ce691c237 100644
--- a/netbox/templates/circuits/provider.html
+++ b/netbox/templates/circuits/provider.html
@@ -5,14 +5,14 @@
{% load helpers %}
{% load plugins %}
-{% block title %}{{ provider }}{% endblock %}
+{% block title %}{{ object }}{% endblock %}
{% block header %}
- {% plugin_buttons provider %}
+ {% plugin_buttons object %}
{% if perms.circuits.add_provider %}
- {% clone_button provider %}
+ {% clone_button object %}
{% endif %}
{% if perms.circuits.change_provider %}
- {% edit_button provider %}
+ {% edit_button object %}
{% endif %}
{% if perms.circuits.delete_provider %}
- {% delete_button provider %}
+ {% delete_button object %}
{% endif %}
-
{{ provider }}
- {% include 'inc/created_updated.html' with obj=provider %}
+
{{ object }}
+ {% include 'inc/created_updated.html' with obj=object %}
- {% custom_links provider %}
+ {% custom_links object %}
@@ -67,17 +67,17 @@
ASN
- {{ provider.asn|placeholder }}
+ {{ object.asn|placeholder }}
Account
- {{ provider.account|placeholder }}
+ {{ object.account|placeholder }}
Customer Portal
- {% if provider.portal_url %}
- {{ provider.portal_url }}
+ {% if object.portal_url %}
+ {{ object.portal_url }}
{% else %}
—
{% endif %}
@@ -85,35 +85,35 @@
NOC Contact
- {{ provider.noc_contact|render_markdown|placeholder }}
+ {{ object.noc_contact|render_markdown|placeholder }}
Admin Contact
- {{ provider.admin_contact|render_markdown|placeholder }}
+ {{ object.admin_contact|render_markdown|placeholder }}
Circuits
- {{ circuits_table.rows|length }}
+ {{ circuits_table.rows|length }}
- {% include 'inc/custom_fields_panel.html' with obj=provider %}
- {% include 'extras/inc/tags_panel.html' with tags=provider.tags.all url='circuits:provider_list' %}
+ {% include 'inc/custom_fields_panel.html' with obj=object %}
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='circuits:object_list' %}
Comments
- {% if provider.comments %}
- {{ provider.comments|render_markdown }}
+ {% if object.comments %}
+ {{ object.comments|render_markdown }}
{% else %}
None
{% endif %}
- {% plugin_left_page provider %}
+ {% plugin_left_page object %}
@@ -123,19 +123,19 @@
{% include 'inc/table.html' with table=circuits_table %}
{% if perms.circuits.add_circuit %}
{% endif %}
{% include 'inc/paginator.html' with paginator=circuits_table.paginator page=circuits_table.page %}
- {% plugin_right_page provider %}
+ {% plugin_right_page object %}
- {% plugin_full_width_page provider %}
+ {% plugin_full_width_page object %}
{% endblock %}
diff --git a/netbox/templates/dcim/devicetype.html b/netbox/templates/dcim/devicetype.html
index 0b6db7308..b1062b8e1 100644
--- a/netbox/templates/dcim/devicetype.html
+++ b/netbox/templates/dcim/devicetype.html
@@ -17,7 +17,7 @@
- {% plugin_buttons devicetype %}
+ {% plugin_buttons object %}
{% if perms.dcim.change_devicetype %}
@@ -52,19 +52,19 @@
{% endif %}
{% if perms.dcim.add_devicetype %}
- {% clone_button devicetype %}
+ {% clone_button object %}
{% endif %}
{% if perms.dcim.change_devicetype %}
- {% edit_button devicetype use_pk=True %}
+ {% edit_button object use_pk=True %}
{% endif %}
{% if perms.dcim.delete_devicetype %}
- {% delete_button devicetype use_pk=True %}
+ {% delete_button object use_pk=True %}
{% endif %}
{{ object.manufacturer }} {{ object.model }}
- {% include 'inc/created_updated.html' with obj=devicetype %}
+ {% include 'inc/created_updated.html' with obj=object %}
- {% custom_links devicetype %}
+ {% custom_links object %}
@@ -151,10 +151,10 @@
- {% plugin_left_page devicetype %}
+ {% plugin_left_page object %}
- {% include 'inc/custom_fields_panel.html' with obj=devicetype %}
+ {% include 'inc/custom_fields_panel.html' with obj=object %}
{% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='dcim:devicetype_list' %}
@@ -168,12 +168,12 @@
{% endif %}
- {% plugin_right_page devicetype %}
+ {% plugin_right_page object %}
- {% plugin_full_width_page devicetype %}
+ {% plugin_full_width_page object %}
diff --git a/netbox/templates/dcim/inc/rack_elevation.html b/netbox/templates/dcim/inc/rack_elevation.html
index a2628d5b7..2cf5c6280 100644
--- a/netbox/templates/dcim/inc/rack_elevation.html
+++ b/netbox/templates/dcim/inc/rack_elevation.html
@@ -1,8 +1,8 @@
-
+
diff --git a/netbox/templates/dcim/rack.html b/netbox/templates/dcim/rack.html
index 1bc8445d5..0e96e54dc 100644
--- a/netbox/templates/dcim/rack.html
+++ b/netbox/templates/dcim/rack.html
@@ -10,14 +10,14 @@
@@ -34,7 +34,7 @@
- {% plugin_buttons rack %}
+ {% plugin_buttons object %}
Previous Rack
@@ -42,30 +42,30 @@
Next Rack
{% if perms.dcim.add_rack %}
- {% clone_button rack %}
+ {% clone_button object %}
{% endif %}
{% if perms.dcim.change_rack %}
- {% edit_button rack %}
+ {% edit_button object %}
{% endif %}
{% if perms.dcim.delete_rack %}
- {% delete_button rack %}
+ {% delete_button object %}
{% endif %}
- {% block title %}Rack {{ rack }}{% endblock %}
- {% include 'inc/created_updated.html' with obj=rack %}
+ {% block title %}Rack {{ object }}{% endblock %}
+ {% include 'inc/created_updated.html' with obj=object %}
Show Images
- {% custom_links rack %}
+ {% custom_links object %}
@@ -82,20 +82,20 @@
Site
- {% if rack.site.region %}
- {{ rack.site.region }} /
+ {% if object.site.region %}
+ {{ object.site.region }} /
{% endif %}
- {{ rack.site }}
+ {{ object.site }}
Group
- {% if rack.group %}
- {% for group in rack.group.get_ancestors %}
+ {% if object.group %}
+ {% for group in object.group.get_ancestors %}
{{ group }} /
{% endfor %}
- {{ rack.group }}
+ {{ object.group }}
{% else %}
None
{% endif %}
@@ -103,16 +103,16 @@
Facility ID
- {{ rack.facility_id|placeholder }}
+ {{ object.facility_id|placeholder }}
Tenant
- {% if rack.tenant %}
- {% if rack.tenant.group %}
- {{ rack.tenant.group }} /
+ {% if object.tenant %}
+ {% if object.tenant.group %}
+ {{ object.tenant.group }} /
{% endif %}
- {{ rack.tenant }}
+ {{ object.tenant }}
{% else %}
None
{% endif %}
@@ -121,14 +121,14 @@
Status
- {{ rack.get_status_display }}
+ {{ object.get_status_display }}
Role
- {% if rack.role %}
- {{ rack.role }}
+ {% if object.role %}
+ {{ object.role }}
{% else %}
None
{% endif %}
@@ -136,25 +136,25 @@
Serial Number
- {{ rack.serial|placeholder }}
+ {{ object.serial|placeholder }}
Asset Tag
- {{ rack.asset_tag|placeholder }}
+ {{ object.asset_tag|placeholder }}
Devices
- {{ device_count }}
+ {{ device_count }}
Space Utilization
- {% utilization_graph rack.get_utilization %}
+ {% utilization_graph object.get_utilization %}
Power Utilization
- {% utilization_graph rack.get_power_utilization %}
+ {% utilization_graph object.get_power_utilization %}
@@ -166,8 +166,8 @@
Type
- {% if rack.type %}
- {{ rack.get_type_display }}
+ {% if object.type %}
+ {{ object.get_type_display }}
{% else %}
None
{% endif %}
@@ -175,17 +175,17 @@
Width
- {{ rack.get_width_display }}
+ {{ object.get_width_display }}
Height
- {{ rack.u_height }}U ({% if rack.desc_units %}descending{% else %}ascending{% endif %})
+ {{ object.u_height }}U ({% if object.desc_units %}descending{% else %}ascending{% endif %})
Outer Width
- {% if rack.outer_width %}
- {{ rack.outer_width }} {{ rack.get_outer_unit_display }}
+ {% if object.outer_width %}
+ {{ object.outer_width }} {{ object.get_outer_unit_display }}
{% else %}
—
{% endif %}
@@ -194,8 +194,8 @@
Outer Depth
- {% if rack.outer_depth %}
- {{ rack.outer_depth }} {{ rack.get_outer_unit_display }}
+ {% if object.outer_depth %}
+ {{ object.outer_depth }} {{ object.get_outer_unit_display }}
{% else %}
—
{% endif %}
@@ -203,15 +203,15 @@
- {% include 'inc/custom_fields_panel.html' with obj=rack %}
- {% include 'extras/inc/tags_panel.html' with tags=rack.tags.all url='dcim:rack_list' %}
+ {% include 'inc/custom_fields_panel.html' with obj=object %}
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='dcim:rack_list' %}
Comments
- {% if rack.comments %}
- {{ rack.comments|render_markdown }}
+ {% if object.comments %}
+ {{ object.comments|render_markdown }}
{% else %}
None
{% endif %}
@@ -260,10 +260,10 @@
Images
- {% include 'inc/image_attachments.html' with images=rack.images.all %}
+ {% include 'inc/image_attachments.html' with images=object.images.all %}
{% if perms.extras.add_imageattachment %}
@@ -135,13 +135,13 @@
Physical Address
- {% if site.physical_address %}
+ {% if object.physical_address %}
- {{ site.physical_address|linebreaksbr }}
+ {{ object.physical_address|linebreaksbr }}
{% else %}
—
{% endif %}
@@ -149,18 +149,18 @@
Shipping Address
- {{ site.shipping_address|linebreaksbr|placeholder }}
+ {{ object.shipping_address|linebreaksbr|placeholder }}
GPS Coordinates
- {% if site.latitude and site.longitude %}
+ {% if object.latitude and object.longitude %}
- {{ site.latitude }}, {{ site.longitude }}
+ {{ object.latitude }}, {{ object.longitude }}
{% else %}
—
{% endif %}
@@ -168,13 +168,13 @@
Contact Name
- {{ site.contact_name|placeholder }}
+ {{ object.contact_name|placeholder }}
Contact Phone
- {% if site.contact_phone %}
- {{ site.contact_phone }}
+ {% if object.contact_phone %}
+ {{ object.contact_phone }}
{% else %}
—
{% endif %}
@@ -183,8 +183,8 @@
Contact E-Mail
- {% if site.contact_email %}
- {{ site.contact_email }}
+ {% if object.contact_email %}
+ {{ object.contact_email }}
{% else %}
—
{% endif %}
@@ -192,21 +192,21 @@
- {% include 'inc/custom_fields_panel.html' with obj=site %}
- {% include 'extras/inc/tags_panel.html' with tags=site.tags.all url='dcim:site_list' %}
+ {% include 'inc/custom_fields_panel.html' with obj=object %}
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='dcim:site_list' %}
Comments
- {% if site.comments %}
- {{ site.comments|render_markdown }}
+ {% if object.comments %}
+ {{ object.comments|render_markdown }}
{% else %}
None
{% endif %}
- {% plugin_left_page site %}
+ {% plugin_left_page object %}
@@ -215,27 +215,27 @@
@@ -260,7 +260,7 @@
All racks
{{ stats.rack_count }}
-
+
@@ -271,22 +271,22 @@
Images
- {% include 'inc/image_attachments.html' with images=site.images.all %}
+ {% include 'inc/image_attachments.html' with images=object.images.all %}
{% if perms.extras.add_imageattachment %}
{% endif %}
- {% plugin_right_page site %}
+ {% plugin_right_page object %}
- {% plugin_full_width_page site %}
+ {% plugin_full_width_page object %}
{% endblock %}
diff --git a/netbox/templates/dcim/virtualchassis.html b/netbox/templates/dcim/virtualchassis.html
index fa1f4d81d..72f5140e9 100644
--- a/netbox/templates/dcim/virtualchassis.html
+++ b/netbox/templates/dcim/virtualchassis.html
@@ -9,10 +9,10 @@
@@ -29,26 +29,26 @@
- {% plugin_buttons virtualchassis %}
+ {% plugin_buttons object %}
{% if perms.dcim.change_virtualchassis %}
- {% edit_button virtualchassis %}
+ {% edit_button object %}
{% endif %}
{% if perms.dcim.delete_virtualchassis %}
- {% delete_button virtualchassis %}
+ {% delete_button object %}
{% endif %}
- {% block title %}{{ virtualchassis }}{% endblock %}
- {% include 'inc/created_updated.html' with obj=virtualchassis %}
+ {% block title %}{{ object }}{% endblock %}
+ {% include 'inc/created_updated.html' with obj=object %}
- {% custom_links virtualchassis %}
+ {% custom_links object %}
@@ -64,13 +64,13 @@
Domain
- {{ virtualchassis.domain|placeholder }}
+ {{ object.domain|placeholder }}
Master
- {% if virtualchassis.master %}
- {{ virtualchassis.master }}
+ {% if object.master %}
+ {{ object.master }}
{% else %}
—
{% endif %}
@@ -78,9 +78,9 @@
- {% include 'inc/custom_fields_panel.html' with obj=virtualchassis %}
- {% include 'extras/inc/tags_panel.html' with tags=virtualchassis.tags.all url='dcim:virtualchassis_list' %}
- {% plugin_left_page virtualchassis %}
+ {% include 'inc/custom_fields_panel.html' with obj=object %}
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='dcim:virtualchassis_list' %}
+ {% plugin_left_page object %}
@@ -100,25 +100,25 @@
{{ vc_member }}
{{ vc_member.vc_position }}
-
{% if virtualchassis.master == vc_member %} {% endif %}
+
{% if object.master == vc_member %} {% endif %}
{{ vc_member.vc_priority|placeholder }}
{% endfor %}
{% if perms.dcim.change_virtualchassis %}
{% endif %}
- {% plugin_right_page virtualchassis %}
+ {% plugin_right_page object %}
- {% plugin_full_width_page virtualchassis %}
+ {% plugin_full_width_page object %}
{% endblock %}
diff --git a/netbox/templates/extras/configcontext.html b/netbox/templates/extras/configcontext.html
index dfd0462af..408e51b75 100644
--- a/netbox/templates/extras/configcontext.html
+++ b/netbox/templates/extras/configcontext.html
@@ -7,7 +7,7 @@
@@ -25,7 +25,7 @@
- {% block title %}{{ configcontext }}{% endblock %}
+ {% block title %}{{ object }}{% endblock %}
{% endblock %}
{% block content %}
@@ -55,23 +55,23 @@
Name
- {{ configcontext.name }}
+ {{ object.name }}
Weight
- {{ configcontext.weight }}
+ {{ object.weight }}
Description
- {{ configcontext.description|placeholder }}
+ {{ object.description|placeholder }}
Active
- {% if configcontext.is_active %}
+ {% if object.is_active %}
@@ -92,9 +92,9 @@
Regions
- {% if configcontext.regions.all %}
+ {% if object.regions.all %}
- {% for region in configcontext.regions.all %}
+ {% for region in object.regions.all %}
{{ region }}
{% endfor %}
@@ -106,9 +106,9 @@
Sites
- {% if configcontext.sites.all %}
+ {% if object.sites.all %}
- {% for site in configcontext.sites.all %}
+ {% for site in object.sites.all %}
{{ site }}
{% endfor %}
@@ -120,9 +120,9 @@
Roles
- {% if configcontext.roles.all %}
+ {% if object.roles.all %}
- {% for role in configcontext.roles.all %}
+ {% for role in object.roles.all %}
{{ role }}
{% endfor %}
@@ -134,9 +134,9 @@
Platforms
- {% if configcontext.platforms.all %}
+ {% if object.platforms.all %}
- {% for platform in configcontext.platforms.all %}
+ {% for platform in object.platforms.all %}
{{ platform }}
{% endfor %}
@@ -148,9 +148,9 @@
Cluster Groups
- {% if configcontext.cluster_groups.all %}
+ {% if object.cluster_groups.all %}
- {% for cluster_group in configcontext.cluster_groups.all %}
+ {% for cluster_group in object.cluster_groups.all %}
{{ cluster_group }}
{% endfor %}
@@ -162,9 +162,9 @@
Clusters
- {% if configcontext.clusters.all %}
+ {% if object.clusters.all %}
- {% for cluster in configcontext.clusters.all %}
+ {% for cluster in object.clusters.all %}
{{ cluster }}
{% endfor %}
@@ -176,9 +176,9 @@
Tenant Groups
- {% if configcontext.tenant_groups.all %}
+ {% if object.tenant_groups.all %}
- {% for tenant_group in configcontext.tenant_groups.all %}
+ {% for tenant_group in object.tenant_groups.all %}
{{ tenant_group }}
{% endfor %}
@@ -190,9 +190,9 @@
Tenants
- {% if configcontext.tenants.all %}
+ {% if object.tenants.all %}
- {% for tenant in configcontext.tenants.all %}
+ {% for tenant in object.tenants.all %}
{{ tenant }}
{% endfor %}
@@ -204,9 +204,9 @@
Tags
- {% if configcontext.tags.all %}
+ {% if object.tags.all %}
- {% for tag in configcontext.tags.all %}
+ {% for tag in object.tags.all %}
{{ tag }}
{% endfor %}
@@ -225,7 +225,7 @@
{% include 'extras/inc/configcontext_format.html' %}
- {% include 'extras/inc/configcontext_data.html' with data=configcontext.data format=format %}
+ {% include 'extras/inc/configcontext_data.html' with data=object.data format=format %}
diff --git a/netbox/templates/extras/objectchange.html b/netbox/templates/extras/objectchange.html
index c92d03de0..15265889e 100644
--- a/netbox/templates/extras/objectchange.html
+++ b/netbox/templates/extras/objectchange.html
@@ -1,21 +1,21 @@
{% extends 'base.html' %}
{% load helpers %}
-{% block title %}{{ objectchange }}{% endblock %}
+{% block title %}{{ object }}{% endblock %}
{% block header %}
@@ -44,41 +44,41 @@
Time
- {{ objectchange.time }}
+ {{ object.time }}
User
- {{ objectchange.user|default:objectchange.user_name }}
+ {{ object.user|default:object.user_name }}
Action
- {{ objectchange.get_action_display }}
+ {{ object.get_action_display }}
Object Type
- {{ objectchange.changed_object_type }}
+ {{ object.changed_object_type }}
Object
- {% if objectchange.changed_object.get_absolute_url %}
- {{ objectchange.changed_object }}
+ {% if object.changed_object.get_absolute_url %}
+ {{ object.changed_object }}
{% else %}
- {{ objectchange.object_repr }}
+ {{ object.object_repr }}
{% endif %}
Request ID
- {{ objectchange.request_id }}
+ {{ object.request_id }}
@@ -98,9 +98,9 @@
{% if diff_added == diff_removed %}
- {% if objectchange.action == 'create' %}
+ {% if object.action == 'create' %}
Object created
- {% elif objectchange.action == 'delete' %}
+ {% elif object.action == 'delete' %}
Object deleted
{% else %}
No changes
@@ -119,7 +119,7 @@
Object Data
-
{{ objectchange.object_data|render_json }}
+
{{ object.object_data|render_json }}
@@ -129,7 +129,7 @@
{% include 'panel_table.html' with table=related_changes_table heading='Related Changes' panel_class='default' %}
{% if related_changes_count > related_changes_table.rows|length %}
{% endif %}
diff --git a/netbox/templates/extras/tag.html b/netbox/templates/extras/tag.html
index 24cb5ac10..f77aa0221 100644
--- a/netbox/templates/extras/tag.html
+++ b/netbox/templates/extras/tag.html
@@ -6,7 +6,7 @@
Tags
- {{ tag }}
+ {{ object }}
@@ -24,27 +24,27 @@
- {% block title %}Tag: {{ tag }}{% endblock %}
+ {% block title %}Tag: {{ object }}{% endblock %}
{% include 'inc/created_updated.html' with obj=tag %}
@@ -61,13 +61,13 @@
Name
- {{ tag.name }}
+ {{ object.name }}
Slug
- {{ tag.slug }}
+ {{ object.slug }}
@@ -79,13 +79,13 @@
Color
-
+
Description
- {{ tag.description|placeholder }}
+ {{ object.description|placeholder }}
diff --git a/netbox/templates/ipam/aggregate.html b/netbox/templates/ipam/aggregate.html
index 26432b6c3..1dfb7af69 100644
--- a/netbox/templates/ipam/aggregate.html
+++ b/netbox/templates/ipam/aggregate.html
@@ -9,8 +9,8 @@
@@ -27,30 +27,30 @@
- {% plugin_buttons aggregate %}
+ {% plugin_buttons object %}
{% if perms.ipam.add_aggregate %}
- {% clone_button aggregate %}
+ {% clone_button object %}
{% endif %}
{% if perms.ipam.change_aggregate %}
- {% edit_button aggregate %}
+ {% edit_button object %}
{% endif %}
{% if perms.ipam.delete_aggregate %}
- {% delete_button aggregate %}
+ {% delete_button object %}
{% endif %}
- {% block title %}{{ aggregate }}{% endblock %}
- {% include 'inc/created_updated.html' with obj=aggregate %}
+ {% block title %}{{ object }}{% endblock %}
+ {% include 'inc/created_updated.html' with obj=object %}
{% include 'ipam/inc/toggle_available.html' %}
- {% custom_links aggregate %}
+ {% custom_links object %}
@@ -66,28 +66,28 @@
Family
- IPv{{ aggregate.family }}
+ IPv{{ object.family }}
RIR
- {{ aggregate.rir }}
+ {{ object.rir }}
Utilization
- {{ aggregate.get_utilization }}%
+ {{ object.get_utilization }}%
Tenant
- {% if aggregate.tenant %}
- {% if prefix.aggregate.group %}
- {{ aggregate.tenant.group }} /
+ {% if object.tenant %}
+ {% if prefix.object.group %}
+ {{ object.tenant.group }} /
{% endif %}
- {{ aggregate.tenant }}
+ {{ object.tenant }}
{% else %}
None
{% endif %}
@@ -95,25 +95,25 @@
Date Added
- {{ aggregate.date_added|placeholder }}
+ {{ object.date_added|placeholder }}
Description
- {{ aggregate.description|placeholder }}
+ {{ object.description|placeholder }}
- {% plugin_left_page aggregate %}
+ {% plugin_left_page object %}
- {% include 'inc/custom_fields_panel.html' with obj=aggregate %}
- {% include 'extras/inc/tags_panel.html' with tags=aggregate.tags.all url='ipam:aggregate_list' %}
- {% plugin_right_page aggregate %}
+ {% include 'inc/custom_fields_panel.html' with obj=object %}
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:aggregate_list' %}
+ {% plugin_right_page object %}
- {% plugin_full_width_page aggregate %}
+ {% plugin_full_width_page object %}
diff --git a/netbox/templates/ipam/ipaddress.html b/netbox/templates/ipam/ipaddress.html
index 0ed2deac8..ecade75aa 100644
--- a/netbox/templates/ipam/ipaddress.html
+++ b/netbox/templates/ipam/ipaddress.html
@@ -10,10 +10,10 @@
@@ -30,29 +30,29 @@
- {% plugin_buttons ipaddress %}
+ {% plugin_buttons object %}
{% if perms.ipam.add_ipaddress %}
- {% clone_button ipaddress %}
+ {% clone_button object %}
{% endif %}
{% if perms.ipam.change_ipaddress %}
- {%edit_button ipaddress %}
+ {%edit_button object %}
{% endif %}
{% if perms.ipam.delete_ipaddress %}
- {% delete_button ipaddress %}
+ {% delete_button object %}
{% endif %}
- {% block title %}{{ ipaddress }}{% endblock %}
- {% include 'inc/created_updated.html' with obj=ipaddress %}
+ {% block title %}{{ object }}{% endblock %}
+ {% include 'inc/created_updated.html' with obj=object %}
- {% custom_links ipaddress %}
+ {% custom_links object %}
@@ -68,13 +68,13 @@
Family
- IPv{{ ipaddress.family }}
+ IPv{{ object.family }}
VRF
- {% if ipaddress.vrf %}
- {{ ipaddress.vrf }}
+ {% if object.vrf %}
+ {{ object.vrf }}
{% else %}
Global
{% endif %}
@@ -83,11 +83,11 @@
Tenant
- {% if ipaddress.tenant %}
- {% if ipaddress.tenant.group %}
- {{ ipaddress.tenant.group }} /
+ {% if object.tenant %}
+ {% if object.tenant.group %}
+ {{ object.tenant.group }} /
{% endif %}
- {{ ipaddress.tenant }}
+ {{ object.tenant }}
{% else %}
None
{% endif %}
@@ -96,14 +96,14 @@
Status
- {{ ipaddress.get_status_display }}
+ {{ object.get_status_display }}
Role
- {% if ipaddress.role %}
- {{ ipaddress.get_role_display }}
+ {% if object.role %}
+ {{ object.get_role_display }}
{% else %}
None
{% endif %}
@@ -111,17 +111,17 @@
DNS Name
- {{ ipaddress.dns_name|placeholder }}
+ {{ object.dns_name|placeholder }}
Description
- {{ ipaddress.description|placeholder }}
+ {{ object.description|placeholder }}
Assignment
- {% if ipaddress.assigned_object %}
- {{ ipaddress.assigned_object.parent }} ({{ ipaddress.assigned_object }})
+ {% if object.assigned_object %}
+ {{ object.assigned_object.parent }} ({{ object.assigned_object }})
{% else %}
—
{% endif %}
@@ -130,10 +130,10 @@
NAT (inside)
- {% if ipaddress.nat_inside %}
- {{ ipaddress.nat_inside }}
- {% if ipaddress.nat_inside.assigned_object %}
- ({{ ipaddress.nat_inside.assigned_object.parent }} )
+ {% if object.nat_inside %}
+ {{ object.nat_inside }}
+ {% if object.nat_inside.assigned_object %}
+ ({{ object.nat_inside.assigned_object.parent }} )
{% endif %}
{% else %}
None
@@ -143,8 +143,8 @@
NAT (outside)
- {% if ipaddress.nat_outside %}
- {{ ipaddress.nat_outside }}
+ {% if object.nat_outside %}
+ {{ object.nat_outside }}
{% else %}
None
{% endif %}
@@ -152,9 +152,9 @@
- {% include 'inc/custom_fields_panel.html' with obj=ipaddress %}
- {% include 'extras/inc/tags_panel.html' with tags=ipaddress.tags.all url='ipam:ipaddress_list' %}
- {% plugin_left_page ipaddress %}
+ {% include 'inc/custom_fields_panel.html' with obj=object %}
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:ipaddress_list' %}
+ {% plugin_left_page object %}
{% include 'panel_table.html' with table=parent_prefixes_table heading='Parent Prefixes' %}
@@ -166,10 +166,10 @@
{% if more_duplicate_ips %}
@@ -179,12 +179,12 @@
{% endif %}
{% include 'utilities/obj_table.html' with table=related_ips_table table_template='panel_table.html' heading='Related IP Addresses' panel_class='default noprint' %}
- {% plugin_right_page ipaddress %}
+ {% plugin_right_page object %}
- {% plugin_full_width_page ipaddress %}
+ {% plugin_full_width_page object %}
{% endblock %}
diff --git a/netbox/templates/ipam/prefix.html b/netbox/templates/ipam/prefix.html
index 9f0f3c81c..24711db6a 100644
--- a/netbox/templates/ipam/prefix.html
+++ b/netbox/templates/ipam/prefix.html
@@ -9,10 +9,10 @@
@@ -29,49 +29,49 @@
- {% plugin_buttons prefix %}
+ {% plugin_buttons object %}
{% if perms.ipam.add_prefix and active_tab == 'prefixes' and first_available_prefix %}
-
+
Add Child Prefix
{% endif %}
{% if perms.ipam.add_ipaddress and active_tab == 'ip-addresses' and first_available_ip %}
-
+
Add an IP Address
{% endif %}
{% if perms.ipam.add_prefix %}
- {% clone_button prefix %}
+ {% clone_button object %}
{% endif %}
{% if perms.ipam.change_prefix %}
- {% edit_button prefix %}
+ {% edit_button object %}
{% endif %}
{% if perms.ipam.delete_prefix %}
- {% delete_button prefix %}
+ {% delete_button object %}
{% endif %}
- {% block title %}{{ prefix }}{% endblock %}
- {% include 'inc/created_updated.html' with obj=prefix %}
+ {% block title %}{{ object }}{% endblock %}
+ {% include 'inc/created_updated.html' with obj=object %}
{% include 'ipam/inc/toggle_available.html' %}
- {% custom_links prefix %}
+ {% custom_links object %}
@@ -87,13 +87,13 @@
Family
- IPv{{ prefix.family }}
+ IPv{{ object.family }}
VRF
- {% if prefix.vrf %}
- {{ prefix.vrf }} ({{ prefix.vrf.rd }})
+ {% if object.vrf %}
+ {{ object.vrf }} ({{ object.vrf.rd }})
{% else %}
Global
{% endif %}
@@ -102,11 +102,11 @@
Tenant
- {% if prefix.tenant %}
- {% if prefix.tenant.group %}
- {{ prefix.tenant.group }} /
+ {% if object.tenant %}
+ {% if object.tenant.group %}
+ {{ object.tenant.group }} /
{% endif %}
- {{ prefix.tenant }}
+ {{ object.tenant }}
{% else %}
None
{% endif %}
@@ -125,11 +125,11 @@
Site
- {% if prefix.site %}
- {% if prefix.site.region %}
- {{ prefix.site.region }} /
+ {% if object.site %}
+ {% if object.site.region %}
+ {{ object.site.region }} /
{% endif %}
- {{ prefix.site }}
+ {{ object.site }}
{% else %}
None
{% endif %}
@@ -138,11 +138,11 @@
VLAN
- {% if prefix.vlan %}
- {% if prefix.vlan.group %}
- {{ prefix.vlan.group }} /
+ {% if object.vlan %}
+ {% if object.vlan.group %}
+ {{ object.vlan.group }} /
{% endif %}
- {{ prefix.vlan.display_name }}
+ {{ object.vlan.display_name }}
{% else %}
None
{% endif %}
@@ -151,14 +151,14 @@
Status
- {{ prefix.get_status_display }}
+ {{ object.get_status_display }}
Role
- {% if prefix.role %}
- {{ prefix.role }}
+ {% if object.role %}
+ {{ object.role }}
{% else %}
None
{% endif %}
@@ -166,12 +166,12 @@
Description
- {{ prefix.description|placeholder }}
+ {{ object.description|placeholder }}
Is a pool
- {% if prefix.is_pool %}
+ {% if object.is_pool %}
{% else %}
@@ -180,25 +180,25 @@
Utilization
- {% utilization_graph prefix.get_utilization %}
+ {% utilization_graph object.get_utilization %}
- {% include 'inc/custom_fields_panel.html' with obj=prefix %}
- {% include 'extras/inc/tags_panel.html' with tags=prefix.tags.all url='ipam:prefix_list' %}
- {% plugin_left_page prefix %}
+ {% include 'inc/custom_fields_panel.html' with obj=object %}
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:prefix_list' %}
+ {% plugin_left_page object %}
{% if duplicate_prefix_table.rows %}
{% include 'panel_table.html' with table=duplicate_prefix_table heading='Duplicate Prefixes' panel_class='danger' %}
{% endif %}
{% include 'panel_table.html' with table=parent_prefix_table heading='Parent Prefixes' panel_class='default' %}
- {% plugin_right_page prefix %}
+ {% plugin_right_page object %}
- {% plugin_full_width_page prefix %}
+ {% plugin_full_width_page object %}
{% endblock %}
diff --git a/netbox/templates/ipam/routetarget.html b/netbox/templates/ipam/routetarget.html
index d97d99feb..4bd954038 100644
--- a/netbox/templates/ipam/routetarget.html
+++ b/netbox/templates/ipam/routetarget.html
@@ -9,7 +9,7 @@
@@ -26,29 +26,29 @@
- {% plugin_buttons routetarget %}
+ {% plugin_buttons object %}
{% if perms.ipam.add_routetarget %}
- {% clone_button routetarget %}
+ {% clone_button object %}
{% endif %}
{% if perms.ipam.change_routetarget %}
- {% edit_button routetarget %}
+ {% edit_button object %}
{% endif %}
{% if perms.ipam.delete_routetarget %}
- {% delete_button routetarget %}
+ {% delete_button object %}
{% endif %}
- {% block title %}Route target {{ routetarget }}{% endblock %}
- {% include 'inc/created_updated.html' with obj=routetarget %}
+ {% block title %}Route target {{ object }}{% endblock %}
+ {% include 'inc/created_updated.html' with obj=object %}
- {% custom_links routetarget %}
+ {% custom_links object %}
@@ -64,13 +64,13 @@
Name
- {{ routetarget.name }}
+ {{ object.name }}
Tenant
- {% if routetarget.tenant %}
- {{ routetarget.tenant }}
+ {% if object.tenant %}
+ {{ object.tenant }}
{% else %}
None
{% endif %}
@@ -82,19 +82,19 @@
- {% include 'extras/inc/tags_panel.html' with tags=routetarget.tags.all url='ipam:routetarget_list' %}
- {% include 'inc/custom_fields_panel.html' with obj=routetarget %}
- {% plugin_left_page routetarget %}
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:routetarget_list' %}
+ {% include 'inc/custom_fields_panel.html' with obj=object %}
+ {% plugin_left_page object %}
{% include 'panel_table.html' with table=importing_vrfs_table heading="Importing VRFs" %}
{% include 'panel_table.html' with table=exporting_vrfs_table heading="Exporting VRFs" %}
- {% plugin_right_page routetarget %}
+ {% plugin_right_page object %}
- {% plugin_full_width_page routetarget %}
+ {% plugin_full_width_page object %}
{% endblock %}
diff --git a/netbox/templates/ipam/vlan.html b/netbox/templates/ipam/vlan.html
index e0e07260e..d5f421474 100644
--- a/netbox/templates/ipam/vlan.html
+++ b/netbox/templates/ipam/vlan.html
@@ -9,13 +9,13 @@
@@ -32,35 +32,35 @@
- {% plugin_buttons vlan %}
+ {% plugin_buttons object %}
{% if perms.ipam.add_vlan %}
- {% clone_button vlan %}
+ {% clone_button object %}
{% endif %}
{% if perms.ipam.change_vlan %}
- {% edit_button vlan %}
+ {% edit_button object %}
{% endif %}
{% if perms.ipam.delete_vlan %}
- {% delete_button vlan %}
+ {% delete_button object %}
{% endif %}
- {% block title %}VLAN {{ vlan.display_name }}{% endblock %}
- {% include 'inc/created_updated.html' with obj=vlan %}
+ {% block title %}VLAN {{ object.display_name }}{% endblock %}
+ {% include 'inc/created_updated.html' with obj=object %}
- {% custom_links vlan %}
+ {% custom_links object %}
@@ -77,11 +77,11 @@
Site
- {% if vlan.site %}
- {% if vlan.site.region %}
- {{ vlan.site.region }} /
+ {% if object.site %}
+ {% if object.site.region %}
+ {{ object.site.region }} /
{% endif %}
- {{ vlan.site }}
+ {{ object.site }}
{% else %}
None
{% endif %}
@@ -90,8 +90,8 @@
Group
- {% if vlan.group %}
- {{ vlan.group }}
+ {% if object.group %}
+ {{ object.group }}
{% else %}
None
{% endif %}
@@ -99,20 +99,20 @@
VLAN ID
- {{ vlan.vid }}
+ {{ object.vid }}
Name
- {{ vlan.name }}
+ {{ object.name }}
Tenant
- {% if vlan.tenant %}
- {% if vlan.tenant.group %}
- {{ vlan.tenant.group }} /
+ {% if object.tenant %}
+ {% if object.tenant.group %}
+ {{ object.tenant.group }} /
{% endif %}
- {{ vlan.tenant }}
+ {{ object.tenant }}
{% else %}
None
{% endif %}
@@ -121,14 +121,14 @@
Status
- {{ vlan.get_status_display }}
+ {{ object.get_status_display }}
Role
- {% if vlan.role %}
- {{ vlan.role }}
+ {% if object.role %}
+ {{ object.role }}
{% else %}
None
{% endif %}
@@ -136,13 +136,13 @@
Description
- {{ vlan.description|placeholder }}
+ {{ object.description|placeholder }}
- {% include 'inc/custom_fields_panel.html' with obj=vlan %}
- {% include 'extras/inc/tags_panel.html' with tags=vlan.tags.all url='ipam:vlan_list' %}
- {% plugin_left_page vlan %}
+ {% include 'inc/custom_fields_panel.html' with obj=object %}
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:vlan_list' %}
+ {% plugin_left_page object %}
@@ -152,19 +152,19 @@
{% include 'responsive_table.html' with table=prefix_table %}
{% if perms.ipam.add_prefix %}
{% endif %}
- {% plugin_right_page vlan %}
+ {% plugin_right_page object %}
- {% plugin_full_width_page vlan %}
+ {% plugin_full_width_page object %}
{% endblock %}
diff --git a/netbox/templates/ipam/vrf.html b/netbox/templates/ipam/vrf.html
index a2a14065b..c7ff7d6ea 100644
--- a/netbox/templates/ipam/vrf.html
+++ b/netbox/templates/ipam/vrf.html
@@ -9,7 +9,7 @@
VRFs
- {{ vrf }}
+ {{ object }}
@@ -26,29 +26,29 @@
- {% plugin_buttons vrf %}
+ {% plugin_buttons object %}
{% if perms.ipam.add_vrf %}
- {% clone_button vrf %}
+ {% clone_button object %}
{% endif %}
{% if perms.ipam.change_vrf %}
- {% edit_button vrf %}
+ {% edit_button object %}
{% endif %}
{% if perms.ipam.delete_vrf %}
- {% delete_button vrf %}
+ {% delete_button object %}
{% endif %}
- {% block title %}VRF {{ vrf }}{% endblock %}
- {% include 'inc/created_updated.html' with obj=vrf %}
+ {% block title %}VRF {{ object }}{% endblock %}
+ {% include 'inc/created_updated.html' with obj=object %}
- {% custom_links vrf %}
+ {% custom_links object %}
@@ -64,13 +64,13 @@
Route Distinguisher
- {{ vrf.rd }}
+ {{ object.rd }}
Tenant
- {% if vrf.tenant %}
- {{ vrf.tenant }}
+ {% if object.tenant %}
+ {{ object.tenant }}
{% else %}
None
{% endif %}
@@ -79,7 +79,7 @@
Unique IP Space
- {% if vrf.enforce_unique %}
+ {% if object.enforce_unique %}
{% else %}
@@ -88,29 +88,29 @@
Description
- {{ vrf.description|placeholder }}
+ {{ object.description|placeholder }}
Prefixes
- {{ prefix_count }}
+ {{ prefix_count }}
- {% include 'extras/inc/tags_panel.html' with tags=vrf.tags.all url='ipam:vrf_list' %}
- {% include 'inc/custom_fields_panel.html' with obj=vrf %}
- {% plugin_left_page vrf %}
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:vrf_list' %}
+ {% include 'inc/custom_fields_panel.html' with obj=object %}
+ {% plugin_left_page object %}
{% include 'panel_table.html' with table=import_targets_table heading="Import Route Targets" %}
{% include 'panel_table.html' with table=export_targets_table heading="Export Route Targets" %}
- {% plugin_right_page vrf %}
+ {% plugin_right_page object %}
- {% plugin_full_width_page vrf %}
+ {% plugin_full_width_page object %}
{% endblock %}
diff --git a/netbox/templates/tenancy/tenant.html b/netbox/templates/tenancy/tenant.html
index b22ecd197..c7d4b875d 100644
--- a/netbox/templates/tenancy/tenant.html
+++ b/netbox/templates/tenancy/tenant.html
@@ -9,10 +9,10 @@
@@ -29,29 +29,29 @@
- {% plugin_buttons tenant %}
+ {% plugin_buttons object %}
{% if perms.tenancy.add_tenant %}
- {% clone_button tenant %}
+ {% clone_button object %}
{% endif %}
{% if perms.tenancy.change_tenant %}
- {% edit_button tenant %}
+ {% edit_button object %}
{% endif %}
{% if perms.tenancy.delete_tenant %}
- {% delete_button tenant %}
+ {% delete_button object %}
{% endif %}
- {% block title %}{{ tenant }}{% endblock %}
- {% include 'inc/created_updated.html' with obj=tenant %}
+ {% block title %}{{ object }}{% endblock %}
+ {% include 'inc/created_updated.html' with obj=object %}
- {% custom_links tenant %}
+ {% custom_links object %}
@@ -68,8 +68,8 @@
Group
- {% if tenant.group %}
- {{ tenant.group }}
+ {% if object.group %}
+ {{ object.group }}
{% else %}
None
{% endif %}
@@ -77,25 +77,25 @@
Description
- {{ tenant.description|placeholder }}
+ {{ object.description|placeholder }}
- {% include 'inc/custom_fields_panel.html' with obj=tenant %}
- {% include 'extras/inc/tags_panel.html' with tags=tenant.tags.all url='tenancy:tenant_list' %}
+ {% include 'inc/custom_fields_panel.html' with obj=object %}
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='tenancy:tenant_list' %}
Comments
- {% if tenant.comments %}
- {{ tenant.comments|render_markdown }}
+ {% if object.comments %}
+ {{ object.comments|render_markdown }}
{% else %}
None
{% endif %}
- {% plugin_left_page tenant %}
+ {% plugin_left_page object %}
- {% plugin_right_page tenant %}
+ {% plugin_right_page object %}
- {% plugin_full_width_page tenant %}
+ {% plugin_full_width_page object %}
{% endblock %}
diff --git a/netbox/templates/virtualization/cluster.html b/netbox/templates/virtualization/cluster.html
index e8b70f147..52aa6e34e 100644
--- a/netbox/templates/virtualization/cluster.html
+++ b/netbox/templates/virtualization/cluster.html
@@ -8,11 +8,11 @@
- {% plugin_buttons cluster %}
+ {% plugin_buttons object %}
{% if perms.virtualization.add_cluster %}
- {% clone_button cluster %}
+ {% clone_button object %}
{% endif %}
{% if perms.virtualization.change_cluster %}
- {% edit_button cluster %}
+ {% edit_button object %}
{% endif %}
{% if perms.virtualization.delete_cluster %}
- {% delete_button cluster %}
+ {% delete_button object %}
{% endif %}
- {% block title %}{{ cluster }}{% endblock %}
- {% include 'inc/created_updated.html' with obj=cluster %}
+ {% block title %}{{ object }}{% endblock %}
+ {% include 'inc/created_updated.html' with obj=object %}
- {% custom_links cluster %}
+ {% custom_links object %}
@@ -67,17 +67,17 @@
Name
- {{ cluster.name }}
+ {{ object.name }}
Type
- {{ cluster.type }}
+ {{ object.type }}
Group
- {% if cluster.group %}
- {{ cluster.group }}
+ {% if object.group %}
+ {{ object.group }}
{% else %}
None
{% endif %}
@@ -86,8 +86,8 @@
Tenant
- {% if cluster.tenant %}
- {{ cluster.tenant }}
+ {% if object.tenant %}
+ {{ object.tenant }}
{% else %}
None
{% endif %}
@@ -96,8 +96,8 @@
Site
- {% if cluster.site %}
- {{ cluster.site }}
+ {% if object.site %}
+ {{ object.site }}
{% else %}
None
{% endif %}
@@ -105,25 +105,25 @@
Virtual Machines
- {{ cluster.virtual_machines.count }}
+ {{ object.virtual_machines.count }}
- {% include 'inc/custom_fields_panel.html' with obj=cluster %}
- {% include 'extras/inc/tags_panel.html' with tags=cluster.tags.all url='virtualization:cluster_list' %}
+ {% include 'inc/custom_fields_panel.html' with obj=object %}
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='virtualization:cluster_list' %}
Comments
- {% if cluster.comments %}
- {{ cluster.comments|render_markdown }}
+ {% if object.comments %}
+ {{ object.comments|render_markdown }}
{% else %}
None
{% endif %}
- {% plugin_left_page cluster %}
+ {% plugin_left_page object %}
@@ -131,14 +131,14 @@
Host Devices
{% if perms.virtualization.change_cluster %}
-
- {% plugin_full_width_page cluster %}
+ {% plugin_full_width_page object %}
{% endblock %}
diff --git a/netbox/templates/virtualization/virtualmachine.html b/netbox/templates/virtualization/virtualmachine.html
index 5058c97f2..6583e10e4 100644
--- a/netbox/templates/virtualization/virtualmachine.html
+++ b/netbox/templates/virtualization/virtualmachine.html
@@ -9,10 +9,10 @@
@@ -30,38 +30,38 @@
{% if perms.virtualization.add_vminterface %}
-
+
Add Interfaces
{% endif %}
- {% plugin_buttons virtualmachine %}
+ {% plugin_buttons object %}
{% if perms.virtualization.add_virtualmachine %}
- {% clone_button virtualmachine %}
+ {% clone_button object %}
{% endif %}
{% if perms.virtualization.change_virtualmachine %}
- {% edit_button virtualmachine %}
+ {% edit_button object %}
{% endif %}
{% if perms.virtualization.delete_virtualmachine %}
- {% delete_button virtualmachine %}
+ {% delete_button object %}
{% endif %}
-
{% block title %}{{ virtualmachine }}{% endblock %}
- {% include 'inc/created_updated.html' with obj=virtualmachine %}
+
{% block title %}{{ object }}{% endblock %}
+ {% include 'inc/created_updated.html' with obj=object %}
- {% custom_links virtualmachine %}
+ {% custom_links object %}
@@ -77,19 +77,19 @@
Name
- {{ virtualmachine }}
+ {{ object }}
Status
- {{ virtualmachine.get_status_display }}
+ {{ object.get_status_display }}
Role
- {% if virtualmachine.role %}
- {{ virtualmachine.role }}
+ {% if object.role %}
+ {{ object.role }}
{% else %}
None
{% endif %}
@@ -98,8 +98,8 @@
Platform
- {% if virtualmachine.platform %}
- {{ virtualmachine.platform }}
+ {% if object.platform %}
+ {{ object.platform }}
{% else %}
None
{% endif %}
@@ -108,11 +108,11 @@
Tenant
- {% if virtualmachine.tenant %}
- {% if virtualmachine.tenant.group %}
- {{ virtualmachine.tenant.group }} /
+ {% if object.tenant %}
+ {% if object.tenant.group %}
+ {{ object.tenant.group }} /
{% endif %}
- {{ virtualmachine.tenant }}
+ {{ object.tenant }}
{% else %}
None
{% endif %}
@@ -121,12 +121,12 @@
Primary IPv4
- {% if virtualmachine.primary_ip4 %}
- {{ virtualmachine.primary_ip4.address.ip }}
- {% if virtualmachine.primary_ip4.nat_inside %}
- (NAT for {{ virtualmachine.primary_ip4.nat_inside.address.ip }})
- {% elif virtualmachine.primary_ip4.nat_outside %}
- (NAT: {{ virtualmachine.primary_ip4.nat_outside.address.ip }})
+ {% if object.primary_ip4 %}
+ {{ object.primary_ip4.address.ip }}
+ {% if object.primary_ip4.nat_inside %}
+ (NAT for {{ object.primary_ip4.nat_inside.address.ip }})
+ {% elif object.primary_ip4.nat_outside %}
+ (NAT: {{ object.primary_ip4.nat_outside.address.ip }})
{% endif %}
{% else %}
—
@@ -136,12 +136,12 @@
Primary IPv6
- {% if virtualmachine.primary_ip6 %}
- {{ virtualmachine.primary_ip6.address.ip }}
- {% if virtualmachine.primary_ip6.nat_inside %}
- (NAT for {{ virtualmachine.primary_ip6.nat_inside.address.ip }})
- {% elif virtualmachine.primary_ip6.nat_outside %}
- (NAT: {{ virtualmachine.primary_ip6.nat_outside.address.ip }})
+ {% if object.primary_ip6 %}
+ {{ object.primary_ip6.address.ip }}
+ {% if object.primary_ip6.nat_inside %}
+ (NAT for {{ object.primary_ip6.nat_inside.address.ip }})
+ {% elif object.primary_ip6.nat_outside %}
+ (NAT: {{ object.primary_ip6.nat_outside.address.ip }})
{% endif %}
{% else %}
—
@@ -150,21 +150,21 @@
- {% include 'inc/custom_fields_panel.html' with obj=virtualmachine %}
- {% include 'extras/inc/tags_panel.html' with tags=virtualmachine.tags.all url='virtualization:virtualmachine_list' %}
+ {% include 'inc/custom_fields_panel.html' with obj=object %}
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='virtualization:virtualmachine_list' %}
Comments
- {% if virtualmachine.comments %}
- {{ virtualmachine.comments|render_markdown }}
+ {% if object.comments %}
+ {{ object.comments|render_markdown }}
{% else %}
None
{% endif %}
- {% plugin_left_page virtualmachine %}
+ {% plugin_left_page object %}
@@ -194,13 +194,13 @@
Virtual CPUs
- {{ virtualmachine.vcpus|placeholder }}
+ {{ object.vcpus|placeholder }}
Memory
- {% if virtualmachine.memory %}
- {{ virtualmachine.memory }} MB
+ {% if object.memory %}
+ {{ object.memory }} MB
{% else %}
—
{% endif %}
@@ -209,8 +209,8 @@
Disk Space
- {% if virtualmachine.disk %}
- {{ virtualmachine.disk }} GB
+ {% if object.disk %}
+ {{ object.disk }} GB
{% else %}
—
{% endif %}
@@ -226,7 +226,7 @@
{% include 'secrets/inc/assigned_secrets.html' %}
{% if perms.secrets.add_secret %}
@@ -250,25 +250,25 @@
{% endif %}
{% if perms.ipam.add_service %}
{% endif %}
- {% plugin_right_page virtualmachine %}
+ {% plugin_right_page object %}
- {% plugin_full_width_page virtualmachine %}
+ {% plugin_full_width_page object %}
- {% plugin_left_page vminterface %}
+ {% plugin_left_page object %}
- {% include 'extras/inc/tags_panel.html' with tags=vminterface.tags.all %}
- {% plugin_right_page vminterface %}
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all %}
+ {% plugin_right_page object %}
@@ -103,7 +103,7 @@
- {% plugin_full_width_page vminterface %}
+ {% plugin_full_width_page object %}
{% endblock %}
diff --git a/netbox/tenancy/views.py b/netbox/tenancy/views.py
index 87d2fe620..015228d42 100644
--- a/netbox/tenancy/views.py
+++ b/netbox/tenancy/views.py
@@ -82,7 +82,7 @@ class TenantView(generic.ObjectView):
}
return render(request, 'tenancy/tenant.html', {
- 'tenant': tenant,
+ 'object': tenant,
'stats': stats,
})
diff --git a/netbox/virtualization/views.py b/netbox/virtualization/views.py
index e22ad670c..a42888a3c 100644
--- a/netbox/virtualization/views.py
+++ b/netbox/virtualization/views.py
@@ -106,7 +106,7 @@ class ClusterView(generic.ObjectView):
device_table.columns.show('pk')
return render(request, 'virtualization/cluster.html', {
- 'cluster': cluster,
+ 'object': cluster,
'device_table': device_table,
})
@@ -262,7 +262,7 @@ class VirtualMachineView(generic.ObjectView):
secrets = Secret.objects.restrict(request.user, 'view').filter(virtual_machine=virtualmachine)
return render(request, 'virtualization/virtualmachine.html', {
- 'virtualmachine': virtualmachine,
+ 'object': virtualmachine,
'vminterface_table': vminterface_table,
'services': services,
'secrets': secrets,
@@ -343,7 +343,7 @@ class VMInterfaceView(generic.ObjectView):
)
return render(request, 'virtualization/vminterface.html', {
- 'vminterface': vminterface,
+ 'object': vminterface,
'ipaddress_table': ipaddress_table,
'vlan_table': vlan_table,
})