Skip to content

Commit

Permalink
Services / DHCP - rename DHCP to ISC DHCP
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Nov 22, 2023
1 parent 42fd27d commit 1dab8ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions src/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,36 +332,36 @@ public function __construct()
// add interfaces to "Services: DHCPv[46]" menu tab:
$ordid = 0;
foreach ($iftargets['dhcp4'] as $key => $descr) {
$this->appendItem('Services.DHCPv4', $key, array(
$this->appendItem('Services.ISC_DHCPv4', $key, array(
'url' => '/services_dhcp.php?if=' . $key,
'visiblename' => "[$descr]",
'order' => $ordid++,
));
$this->appendItem('Services.DHCPv4.' . $key, 'Edit' . $key, array(
$this->appendItem('Services.ISC_DHCPv4.' . $key, 'Edit' . $key, array(
'url' => '/services_dhcp.php?if=' . $key . '&*',
'visibility' => 'hidden',
));
$this->appendItem('Services.DHCPv4.' . $key, 'AddStatic' . $key, array(
$this->appendItem('Services.ISC_DHCPv4.' . $key, 'AddStatic' . $key, array(
'url' => '/services_dhcp_edit.php?if=' . $key,
'visibility' => 'hidden',
));
$this->appendItem('Services.DHCPv4.' . $key, 'EditStatic' . $key, array(
$this->appendItem('Services.ISC_DHCPv4.' . $key, 'EditStatic' . $key, array(
'url' => '/services_dhcp_edit.php?if=' . $key . '&*',
'visibility' => 'hidden',
));
}
$ordid = 0;
foreach ($iftargets['dhcp6'] as $key => $descr) {
$this->appendItem('Services.DHCPv6', $key, array(
$this->appendItem('Services.ISC_DHCPv6', $key, array(
'url' => '/services_dhcpv6.php?if=' . $key,
'visiblename' => "[$descr]",
'order' => $ordid++,
));
$this->appendItem('Services.DHCPv6.' . $key, 'Add' . $key, array(
$this->appendItem('Services.ISC_DHCPv6.' . $key, 'Add' . $key, array(
'url' => '/services_dhcpv6_edit.php?if=' . $key,
'visibility' => 'hidden',
));
$this->appendItem('Services.DHCPv6.' . $key, 'Edit' . $key, array(
$this->appendItem('Services.ISC_DHCPv6.' . $key, 'Edit' . $key, array(
'url' => '/services_dhcpv6_edit.php?if=' . $key . '&*',
'visibility' => 'hidden',
));
Expand Down
8 changes: 4 additions & 4 deletions src/opnsense/mvc/app/models/OPNsense/Core/Menu/Menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@
</LogFiles>
</Firewall>
<Services order="60" cssClass="fa fa-cog">
<DHCPv4 cssClass="fa fa-bullseye fa-fw">
<ISC_DHCPv4 VisibleName="ISC DHCPv4" cssClass="fa fa-bullseye fa-fw">
<Relay order="200" url="/services_dhcp_relay.php"/>
<Leases order="300" url="/ui/dhcpv4/leases"/>
<LogFile VisibleName="Log File" order="400" url="/ui/diagnostics/log/core/dhcpd"/>
</DHCPv4>
<DHCPv6 cssClass="fa fa-bullseye fa-fw">
</ISC_DHCPv4>
<ISC_DHCPv6 VisibleName="ISC DHCPv6" cssClass="fa fa-bullseye fa-fw">
<Relay order="300" url="/services_dhcpv6_relay.php"/>
<Leases order="400" url="/ui/dhcpv6/leases"/>
</DHCPv6>
</ISC_DHCPv6>
<OpenDNS VisibleName="OpenDNS" url="/services_opendns.php" cssClass="fa fa-tags fa-fw"/>
<RouterAdv VisibleName="Router Advertisements" cssClass="fa fa-bullseye fa-fw" />
</Services>
Expand Down

0 comments on commit 1dab8ca

Please sign in to comment.