1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Model import/export route targets on VRFs

This commit is contained in:
Jeremy Stretch
2020-09-24 12:09:28 -04:00
parent dfb5a06d9d
commit f684d07c61
10 changed files with 138 additions and 8 deletions

View File

@@ -83,10 +83,12 @@
</table>
</div>
{% 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 %}
</div>
<div class="col-md-6">
{% include 'inc/custom_fields_panel.html' with obj=routetarget %}
{% 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 %}
</div>
</div>

View File

@@ -99,10 +99,12 @@
</table>
</div>
{% 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 %}
</div>
<div class="col-md-6">
{% include 'inc/custom_fields_panel.html' with obj=vrf %}
{% 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 %}
</div>
</div>

View File

@@ -11,6 +11,13 @@
{% render_field form.description %}
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Route Targets</strong></div>
<div class="panel-body">
{% render_field form.import_targets %}
{% render_field form.export_targets %}
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Tenancy</strong></div>
<div class="panel-body">