Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support thunderbolt network devices #240

Merged
merged 1 commit into from
Dec 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions deb/openmediavault/debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ openmediavault (4.1.16-1) stable; urgency=low
* Fix some Python code issues.
* Fix bug in omv-mkaptidx.
* Do not show USB devices in the RAID creation dialog.
* Support Thunderbolt network devices.

-- Volker Theile <volker.theile@openmediavault.org> Fri, 14 Dec 2018 09:26:08 +0100

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace OMV\System\Net\NetworkInterfaceBackend;
// Register default network interface backends.
///////////////////////////////////////////////////////////////////////////////
$backends = [ "Bond", "Bridge", "Ethernet", "Infiniband", "Loopback",
"Virtual", "Vlan", "Wireless" ];
"Virtual", "Vlan", "Wireless", "Thunderbolt" ];
$mngr = Manager::getInstance();
foreach ($backends as $backendk => $backendv) {
$className = sprintf("%s\%s", __NAMESPACE__, $backendv);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
/**
* This file is part of OpenMediaVault.
*
* @license http://www.gnu.org/licenses/gpl.html GPL Version 3
* @author Volker Theile <volker.theile@openmediavault.org>
* @copyright Copyright (c) 2009-2018 Volker Theile
*
* OpenMediaVault is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* OpenMediaVault is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with OpenMediaVault. If not, see <http://www.gnu.org/licenses/>.
*/
namespace OMV\System\Net\NetworkInterfaceBackend;

/**
* Implements the network interface backend for Thunderbolt devices.
* @ingroup api
*/
class Thunderbolt extends Ethernet {
protected $regex = "/^thunderbolt[0-9]+$/i";
}