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

Initial work on #2179: Allow a service to have multiple ports

This commit is contained in:
Jeremy Stretch
2020-09-21 13:21:41 -04:00
parent 0cc2a6b2cf
commit f97d8963f2
13 changed files with 118 additions and 51 deletions

View File

@@ -62,8 +62,8 @@
<td>{{ service.get_protocol_display }}</td>
</tr>
<tr>
<td>Port</td>
<td>{{ service.port }}</td>
<td>Ports</td>
<td>{{ service.ports|join:", " }}</td>
</tr>
<tr>
<td>IP Addresses</td>

View File

@@ -25,7 +25,7 @@
<label class="col-md-3 control-label required">Port</label>
<div class="col-md-9">
{{ form.protocol }}
{{ form.port }}
{{ form.ports }}
</div>
</div>
{% render_field form.ipaddresses %}