Revert "Pass current IP address to static lease creation. (#5318)"

This reverts commit f83a74d4961c2a0c0b3500d8092590fdb17f534f.

The problem here is that people assign dynamic IP pool range address
to static device but dhcpd doesn't care about the static assignment
and will just hand out the IP again for a second device.

Also see: #5810
This commit is contained in:
Franco Fichtner 2022-06-09 14:25:43 +02:00
parent 228e74cd5f
commit 49ccb4ee56

View File

@ -399,7 +399,7 @@ legacy_html_escape_form_data($leases);
<td class="text-nowrap">
<?php if (!empty($data['if'])): ?>
<?php if ($data['type'] == 'dynamic'): ?>
<a class="btn btn-default btn-xs" href="services_dhcp_edit.php?if=<?=$data['if'];?>&amp;mac=<?=$data['mac'];?>&amp;hostname=<?=$data['hostname'];?>&amp;ipaddr=<?=$data['ip'];?>">
<a class="btn btn-default btn-xs" href="services_dhcp_edit.php?if=<?=$data['if'];?>&amp;mac=<?=$data['mac'];?>&amp;hostname=<?=$data['hostname'];?>">
<i class="fa fa-plus fa-fw" data-toggle="tooltip" title="<?=gettext("add a static mapping for this MAC address");?>"></i>
</a>
<?php if ($data['online'] != 'online'):?>