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

127 lines
4.9 KiB
HTML
Raw Normal View History

2021-03-02 15:58:33 -05:00
{% extends 'generic/object.html' %}
2020-06-23 15:09:32 -04:00
{% load helpers %}
{% load plugins %}
{% load render_table from django_tables2 %}
2020-06-23 15:09:32 -04:00
2021-03-02 15:58:33 -05:00
{% block breadcrumbs %}
2021-07-20 12:14:01 -04:00
{{ block.super }}
<li class="breadcrumb-item"><a href="{% url 'virtualization:vminterface_list' %}?virtual_machine_id={{ object.virtual_machine.pk }}">{{ object.virtual_machine }}</a></li>
2020-06-23 15:09:32 -04:00
{% endblock %}
{% block content %}
2021-04-18 00:22:52 -07:00
<div class="row mb-3">
2021-04-30 15:55:37 -07:00
<div class="col col-md-6">
2021-04-18 00:22:52 -07:00
<div class="card">
<h5 class="card-header">
Interface
</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<tr>
<th scope="row">Virtual Machine</th>
<td>
<a href="{{ object.virtual_machine.get_absolute_url }}">{{ object.virtual_machine }}</a>
</td>
</tr>
<tr>
<th scope="row">Name</th>
<td>{{ object.name }}</td>
</tr>
<tr>
<th scope="row">Enabled</th>
<td>
{% if object.enabled %}
<span class="text-success"><i class="mdi mdi-check-bold"></i></span>
{% else %}
<span class="text-danger"><i class="mdi mdi-close"></i></span>
{% endif %}
</td>
</tr>
<tr>
<th scope="row">Parent</th>
<td>
{% if object.parent %}
<a href="{{ object.parent.get_absolute_url }}">{{ object.parent }}</a>
{% else %}
<span class="text-muted">None</span>
{% endif %}
</td>
</tr>
<tr>
<th scope="row">Bridge</th>
<td>
{% if object.bridge %}
<a href="{{ object.bridge.get_absolute_url }}">{{ object.bridge }}</a>
{% else %}
<span class="text-muted">None</span>
{% endif %}
</td>
</tr>
2021-04-18 00:22:52 -07:00
<tr>
<th scope="row">Description</th>
<td>{{ object.description|placeholder }} </td>
</tr>
<tr>
<th scope="row">MTU</th>
<td>{{ object.mtu|placeholder }}</td>
</tr>
<tr>
<th scope="row">MAC Address</th>
<td><span class="text-monospace">{{ object.mac_address|placeholder }}</span></td>
</tr>
<tr>
<th scope="row">802.1Q Mode</th>
2021-07-21 11:20:35 -04:00
<td>{{ object.get_mode_display|placeholder }}</td>
2021-04-18 00:22:52 -07:00
</tr>
</table>
2020-06-23 15:09:32 -04:00
</div>
</div>
{% include 'inc/panels/tags.html' %}
{% plugin_left_page object %}
2020-06-23 15:09:32 -04:00
</div>
2021-04-30 15:55:37 -07:00
<div class="col col-md-6">
2021-10-19 14:21:31 -04:00
{% include 'inc/panels/custom_fields.html' %}
{% include 'ipam/inc/panels/fhrp_groups.html' %}
{% plugin_right_page object %}
2020-06-23 15:09:32 -04:00
</div>
</div>
2021-04-18 00:22:52 -07:00
<div class="row mb-3">
2021-04-30 15:55:37 -07:00
<div class="col col-md-12">
2021-04-18 00:22:52 -07:00
<div class="card">
<h5 class="card-header">
IP Addresses
</h5>
2021-12-13 15:36:51 -05:00
<div class="card-body table-responsive">
2021-04-18 00:22:52 -07:00
{% if ipaddress_table.rows %}
{% render_table ipaddress_table 'inc/table.html' %}
{% else %}
<div class="text-muted">None</div>
{% endif %}
</div>
{% if perms.ipam.add_ipaddress %}
2021-04-18 00:22:52 -07:00
<div class="card-footer text-end noprint">
<a href="{% url 'ipam:ipaddress_add' %}?virtual_machine={{ object.virtual_machine.pk }}&vminterface={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-sm btn-primary">
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add IP Address
</a>
</div>
{% endif %}
</div>
2020-06-23 15:09:32 -04:00
</div>
</div>
2021-04-18 00:22:52 -07:00
<div class="row mb-3">
2021-04-30 15:55:37 -07:00
<div class="col col-md-12">
{% include 'inc/panel_table.html' with table=vlan_table heading="VLANs" %}
2020-06-23 15:09:32 -04:00
</div>
</div>
2021-04-18 00:22:52 -07:00
<div class="row mb-3">
2021-04-30 15:55:37 -07:00
<div class="col col-md-12">
{% include 'inc/panel_table.html' with table=child_interfaces_table heading="Child Interfaces" %}
</div>
</div>
<div class="row">
2021-04-30 15:55:37 -07:00
<div class="col col-md-12">
{% plugin_full_width_page object %}
</div>
</div>
2020-06-23 15:09:32 -04:00
{% endblock %}