diff --git a/docs/NETWORK_TREE.md b/docs/NETWORK_TREE.md index 0d23d49c..2ccf96df 100755 --- a/docs/NETWORK_TREE.md +++ b/docs/NETWORK_TREE.md @@ -24,7 +24,7 @@ In this example you will setup a device named `rapberrypi` as a `Switch` in our - In the (2) `Details` tab navigate to the the `Type` (3) dropdown and select the type `Switch` (4). > Note: Only the following device types will show up as selectable Network nodes ( = devices you can connect other devices to): -> AP, Firewall, Gateway, PLC, Powerline, Router, Switch, USB LAN Adapter, USB WIFI Adapter and WLAN. +> AP, Firewall, Gateway, Hypervisor, PLC, Powerline, Router, Switch, USB LAN Adapter, USB WIFI Adapter and WLAN. - Assign a device to your root device from the `Node` (5) dropdown which has the MAC `Internet` (6) (Your name may differ, but the MAC needs to be set to `Internet` - this is done by default). diff --git a/front/network.php b/front/network.php index 04c552e0..fb7d2ea3 100755 --- a/front/network.php +++ b/front/network.php @@ -279,7 +279,7 @@ a.dev_Network_Node_MAC_ADDR as parent_mac, a.dev_Icon as node_icon FROM Devices a - WHERE a.dev_DeviceType in ('AP', 'Gateway', 'Firewall', 'Powerline', 'Switch', 'WLAN', 'PLC', 'Router','USB LAN Adapter', 'USB WIFI Adapter', 'Internet') + WHERE a.dev_DeviceType in ('AP', 'Gateway', 'Firewall', 'Hypervisor', 'Powerline', 'Switch', 'WLAN', 'PLC', 'Router','USB LAN Adapter', 'USB WIFI Adapter', 'Internet') ) t1 LEFT JOIN ( diff --git a/front/php/server/devices.php b/front/php/server/devices.php index e0d3a88f..542f07a6 100755 --- a/front/php/server/devices.php +++ b/front/php/server/devices.php @@ -759,7 +759,7 @@ function getNetworkNodes() { global $db; // Device Data - $sql = 'SELECT * FROM Devices WHERE dev_DeviceType in ( "AP", "Gateway", "Firewall", "Powerline", "Switch", "WLAN", "PLC", "Router","USB LAN Adapter", "USB WIFI Adapter")'; + $sql = 'SELECT * FROM Devices WHERE dev_DeviceType in ( "AP", "Gateway", "Firewall", "Hypervisor", "Powerline", "Switch", "WLAN", "PLC", "Router","USB LAN Adapter", "USB WIFI Adapter")'; $result = $db->query($sql); @@ -836,7 +836,7 @@ function getDeviceTypes() { "Laptop", "Mini PC", "PC", "Printer", "Server", "Singleboard Computer (SBC)", "NAS", "Domotic", "IP Camera", "Game Console", "SmartTV", "TV Decoder", "Virtual Assistance", "Clock", "House Appliance", "Phone", "Radio", - "AP", "Gateway", "Firewall", "Powerline", "Switch", "WLAN", "PLC", "Router","USB LAN Adapter", "USB WIFI Adapter" ) + "AP", "Gateway", "Firewall", "Hypervisor", "Powerline", "Switch", "WLAN", "PLC", "Router","USB LAN Adapter", "USB WIFI Adapter" ) UNION SELECT 1 as dev_Order, "Smartphone" UNION SELECT 1 as dev_Order, "Tablet" @@ -865,6 +865,7 @@ function getDeviceTypes() { UNION SELECT 5 as dev_Order, "AP" UNION SELECT 5 as dev_Order, "Gateway" UNION SELECT 5 as dev_Order, "Firewall" + UNION SELECT 5 as dev_Order, "Hypervisor" UNION SELECT 5 as dev_Order, "Powerline" UNION SELECT 5 as dev_Order, "Switch" UNION SELECT 5 as dev_Order, "WLAN" diff --git a/front/php/server/util.php b/front/php/server/util.php index 5653ea5e..ffbaf295 100755 --- a/front/php/server/util.php +++ b/front/php/server/util.php @@ -381,11 +381,11 @@ function handleNull ($text, $default = "") { } // ------------------------------------------------------------------------------------------- - +// Currently unused - should be source of truth for network types (or define somewhere else?) function getNetworkTypes(){ $array = array( - "AP", "Gateway", "Firewall", "Powerline", "Switch", "WLAN", "PLC", "Router","USB LAN Adapter", "USB WIFI Adapter" + "AP", "Gateway", "Firewall", "Hypervisor", "Powerline", "Switch", "WLAN", "PLC", "Router","USB LAN Adapter", "USB WIFI Adapter" ); return $array; diff --git a/front/php/templates/language/de_de.php b/front/php/templates/language/de_de.php index 76ac6993..c9f2d8e9 100755 --- a/front/php/templates/language/de_de.php +++ b/front/php/templates/language/de_de.php @@ -380,7 +380,7 @@ $lang['de_de'] = array( lösche ggf. die betreffende DHCP-Lease. Anschließend schaue, ebenfalls in Pi-hole, unter Tools -> Network, ob sich dort die immer wiederkehrenden Hosts finden lassen. Wenn ja, lösche diese dort ebenfalls. Nun kannst du Pi.Alert wieder starten. Jetzt sollte das Gerät/die Geräte nicht mehr auftauchen.', 'HelpFAQ_Cat_Detail_300_head' => 'Was bedeutet ', -'HelpFAQ_Cat_Detail_300_text_a' => 'meint ein Netzwerkgerät (welches den typ AP, Gateway, Firewall, Powerline, Switch, WLAN, PLC, Router,USB LAN Adapter, USB WIFI Adapter, or Internet eingestellt hat)', +'HelpFAQ_Cat_Detail_300_text_a' => 'meint ein Netzwerkgerät (welches den typ AP, Gateway, Firewall, Hypervisor, Powerline, Switch, WLAN, PLC, Router,USB LAN Adapter, USB WIFI Adapter, or Internet eingestellt hat)', 'HelpFAQ_Cat_Detail_300_text_b' => 'bezeichnet die Anschlussnummer/Portnummer, an der das gerade bearbeitete Gerät mit diesem Netzwerkgerät verbunden ist.', 'HelpFAQ_Cat_Detail_301_head_a' => 'Wann wird nun gescannt? Bei ', 'HelpFAQ_Cat_Detail_301_head_b' => ' steht 1min aber der Graph zeigt 5min - Abstände an.', diff --git a/front/php/templates/language/en_us.php b/front/php/templates/language/en_us.php index 3e8a1458..91d19ce7 100755 --- a/front/php/templates/language/en_us.php +++ b/front/php/templates/language/en_us.php @@ -452,7 +452,7 @@ $lang['en_us'] = array( delete the DHCP lease if necessary. Then, also in Pi-hole, look under Tools -> Network to see if you can find the recurring hosts there. If yes, delete them there as well. Now you can start Pi.Alert again. Now the device(s) should not show up anymore.', 'HelpFAQ_Cat_Detail_300_head' => 'What means ', -'HelpFAQ_Cat_Detail_300_text_a' => 'means a network device (a device of the type AP, Gateway, Firewall, Powerline, Switch, WLAN, PLC, Router,USB LAN Adapter, USB WIFI Adapter, or Internet).', +'HelpFAQ_Cat_Detail_300_text_a' => 'means a network device (a device of the type AP, Gateway, Firewall, Hypervisor, Powerline, Switch, WLAN, PLC, Router,USB LAN Adapter, USB WIFI Adapter, or Internet).', 'HelpFAQ_Cat_Detail_300_text_b' => 'designates the port number where the currently edited device is connected to this network device. Read this guide for more info.', 'HelpFAQ_Cat_Detail_301_head_a' => 'When is scanning now? At ', 'HelpFAQ_Cat_Detail_301_head_b' => ' says 1min but the graph shows 5min intervals.',