TrendMicro Cloud Edge CE100s G2 で遊べなかった記録
元ネタを見てProxmox VE 8.1を入れて遊べると思いきや意外と遊ぶのが難しい。ってか遊べてない🥺
誰か!!!!助けてくれ!!!!
必要なら元のSSDからぶち抜いたboot.tgzとfactory.tgz等送るから!!!!!
ネットワークアダプタ
こいつが一番鬼門
root@pve1:~# lspci -nn 00:00.0 Host bridge [0600]: Intel Corporation Atom Processor C3000 Series System Agent [8086:1980] (rev 11) 00:04.0 Host bridge [0600]: Intel Corporation Atom Processor C3000 Series Error Registers [8086:19a1] (rev 11) 00:05.0 Generic system peripheral [0807]: Intel Corporation Atom Processor C3000 Series Root Complex Event Collector [8086:19a2] (rev 11) 00:06.0 PCI bridge [0604]: Intel Corporation Atom Processor C3000 Series Integrated QAT Root Port [8086:19a3] (rev 11) 00:09.0 PCI bridge [0604]: Intel Corporation Atom Processor C3000 Series PCI Express Root Port #0 [8086:19a4] (rev 11) 00:0b.0 PCI bridge [0604]: Intel Corporation Atom Processor C3000 Series PCI Express Root Port #2 [8086:19a6] (rev 11) 00:0c.0 PCI bridge [0604]: Intel Corporation Atom Processor C3000 Series PCI Express Root Port #3 [8086:19a7] (rev 11) 00:0e.0 PCI bridge [0604]: Intel Corporation Atom Processor C3000 Series PCI Express Root Port #4 [8086:19a8] (rev 11) 00:0f.0 PCI bridge [0604]: Intel Corporation Atom Processor C3000 Series PCI Express Root Port #5 [8086:19a9] (rev 11) 00:12.0 System peripheral [0880]: Intel Corporation Atom Processor C3000 Series SMBus Contoller - Host [8086:19ac] (rev 11) 00:13.0 SATA controller [0106]: Intel Corporation Atom Processor C3000 Series SATA Controller 0 [8086:19b2] (rev 11) 00:15.0 USB controller [0c03]: Intel Corporation Atom Processor C3000 Series USB 3.0 xHCI Controller [8086:19d0] (rev 11) 00:16.0 PCI bridge [0604]: Intel Corporation Atom Processor C3000 Series Integrated LAN Root Port #0 [8086:19d1] (rev 11) 00:18.0 Communication controller [0780]: Intel Corporation Atom Processor C3000 Series ME HECI 1 [8086:19d3] (rev 11) 00:1c.0 SD Host controller [0805]: Intel Corporation Device [8086:19db] (rev 11) 00:1f.0 ISA bridge [0601]: Intel Corporation Atom Processor C3000 Series LPC or eSPI [8086:19dc] (rev 11) 00:1f.2 Memory controller [0580]: Intel Corporation Atom Processor C3000 Series Power Management Controller [8086:19de] (rev 11) 00:1f.4 SMBus [0c05]: Intel Corporation Atom Processor C3000 Series SMBus controller [8086:19df] (rev 11) 00:1f.5 Serial bus controller [0c80]: Intel Corporation Atom Processor C3000 Series SPI Controller [8086:19e0] (rev 11) 01:00.0 Co-processor [0b40]: Intel Corporation Atom Processor C3000 Series QuickAssist Technology [8086:19e2] (rev 11) 05:00.0 Ethernet controller [0200]: Intel Corporation I211 Gigabit Network Connection [8086:1539] (rev 03) 06:00.0 Ethernet controller [0200]: Intel Corporation I211 Gigabit Network Connection [8086:1539] (rev 03) 07:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection X553 Backplane [8086:15c2] (rev 11) 07:00.1 Ethernet controller [0200]: Intel Corporation Ethernet Connection X553 Backplane [8086:15c2] (rev 11)
- aewinというカーネルモジュールがGPIO等固有部分を制御してるっぽい
- 上記のうちX553 Backplane×2がMarvell 88E6190経由でGbe×8に接続されている。
- LANポートがまともに初期化されていない状態ではL2スイッチとして機能する。その状態でIPアドレス割り当ててifupしてもも通信できない
- ↑はProxmox VE 8.1で使用されているLinux Kernel 6.xのixgbeドライバが腐っている疑いあり。dkmsで独自ドライバ入れて試行錯誤中。 https://forum.proxmox.com/threads/intel-x553-sfp-ixgbe-no-go-on-pve8.135129/
- ドライバを入れたところnicに割り当てたIPアドレスに対して受信できたが送信はできない。要再調査
構造が近いデバイスのブロック図
I211 はただのI211なのでどうにでもなる
固有部分に関係してそうなパッケージ
- ググっても当然情報はありません!!!!!!!ソースコードよこせ!!!!!!GPLだろ!!!!!
- /root/install.log から抜粋
Installing kernel-3.10.0-514.OpenVA.5.6.1016.el7.x86_64 Installing mv88e6190-drv-kmod-5.6-1016.el7.centos.x86_64 Installing ixgbe-5.6-1016.el7.centos.x86_64 mv: cannot stat `/lib/modules/3.10.0-514.OpenVA.5.6.1016.el7.x86_64/extra/ixgbe.ko': No such file or directory Installing dsa-drv-kmod-5.6-1016.el7.centos.x86_64 Installing igb-5.6-1016.el7.centos.x86_64 Installing aewin-kmod-5.6-1016.el7.centos.x86_64 Installing ctmnfq-kmod-5.6-1016.el7.centos.x86_64 Installing openva-usbconf-tools-1.0.0-1.el6.x86_64
dmidecode
root@pve1:~# dmidecode # dmidecode 3.4 Getting SMBIOS data from sysfs. SMBIOS 3.0.0 present. Table at 0x7F220000. Handle 0x0000, DMI type 0, 24 bytes BIOS Information Vendor: American Megatrends Inc. Version: 5.13 Release Date: 04/29/2019 Address: 0xF0000 Runtime Size: 64 kB ROM Size: 8 MB Characteristics: PCI is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported Selectable boot is supported BIOS ROM is socketed EDD is supported 5.25"/1.2 MB floppy services are supported (int 13h) 3.5"/720 kB floppy services are supported (int 13h) 3.5"/2.88 MB floppy services are supported (int 13h) Print screen service is supported (int 5h) Serial services are supported (int 14h) Printer services are supported (int 17h) ACPI is supported USB legacy is supported BIOS boot specification is supported Targeted content distribution is supported UEFI is supported BIOS Revision: 5.13 Handle 0x0001, DMI type 1, 27 bytes System Information Manufacturer: Lanner Electronics Product Name: NCA-2011Z-TM2J Version: Default string Serial Number: Default string UUID: 03000200-0400-0500-0006-000700080009 Wake-up Type: Power Switch SKU Number: Default string Family: Default string Handle 0x0002, DMI type 2, 15 bytes Base Board Information Manufacturer: Default string Product Name: Default string Version: Default string Serial Number: Default string Asset Tag: Default string Features: Board is a hosting board Board is replaceable Location In Chassis: Default string Chassis Handle: 0x0003 Type: Motherboard Contained Object Handles: 0 Handle 0x0003, DMI type 3, 22 bytes Chassis Information Manufacturer: Default string Type: Desktop Lock: Not Present Version: Default string Serial Number: Default string Asset Tag: Default string Boot-up State: Safe Power Supply State: Safe Thermal State: Safe Security Status: None OEM Information: 0x00000000 Height: Unspecified Number Of Power Cords: 1 Contained Elements: 0 SKU Number: Default string Handle 0x0004, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J1A1 Internal Connector Type: None External Reference Designator: PS2Mouse External Connector Type: PS/2 Port Type: Mouse Port Handle 0x0005, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J1A1 Internal Connector Type: None External Reference Designator: Keyboard External Connector Type: PS/2 Port Type: Keyboard Port Handle 0x0006, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J2A1 Internal Connector Type: None External Reference Designator: TV Out External Connector Type: Mini Centronics Type-14 Port Type: Other Handle 0x0007, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J2A2A Internal Connector Type: None External Reference Designator: COM A External Connector Type: DB-9 male Port Type: Serial Port 16550A Compatible Handle 0x0008, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J2A2B Internal Connector Type: None External Reference Designator: Video External Connector Type: DB-15 female Port Type: Video Port Handle 0x0009, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J3A1 Internal Connector Type: None External Reference Designator: USB1 External Connector Type: Access Bus (USB) Port Type: USB Handle 0x000A, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J3A1 Internal Connector Type: None External Reference Designator: USB2 External Connector Type: Access Bus (USB) Port Type: USB Handle 0x000B, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J3A1 Internal Connector Type: None External Reference Designator: USB3 External Connector Type: Access Bus (USB) Port Type: USB Handle 0x000C, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J9A1 - TPM HDR Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x000D, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J9C1 - PCIE DOCKING CONN Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x000E, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J2B3 - CPU FAN Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x000F, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J6C2 - EXT HDMI Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0010, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J3C1 - GMCH FAN Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0011, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J1D1 - ITP Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0012, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J9E2 - MDC INTPSR Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0013, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J9E4 - MDC INTPSR Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0014, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J9E3 - LPC HOT DOCKING Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0015, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J9E1 - SCAN MATRIX Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0016, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J9G1 - LPC SIDE BAND Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0017, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J8F1 - UNIFIED Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0018, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J6F1 - LVDS Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0019, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J2F1 - LAI FAN Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x001A, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J2G1 - GFX VID Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x001B, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J1G6 - AC JACK Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x001C, DMI type 9, 17 bytes System Slot Information Designation: J6B2 Type: x16 PCI Express Current Usage: In Use Length: Long ID: 0 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Bus Address: 0000:00:01.0 Handle 0x001D, DMI type 9, 17 bytes System Slot Information Designation: J6B1 Type: x1 PCI Express Current Usage: In Use Length: Short ID: 1 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Bus Address: 0000:00:1c.3 Handle 0x001E, DMI type 9, 17 bytes System Slot Information Designation: J6D1 Type: x1 PCI Express Current Usage: In Use Length: Short ID: 2 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Bus Address: 0000:00:1c.4 Handle 0x001F, DMI type 9, 17 bytes System Slot Information Designation: J7B1 Type: x1 PCI Express Current Usage: In Use Length: Short ID: 3 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Bus Address: 0000:00:1c.5 Handle 0x0020, DMI type 9, 17 bytes System Slot Information Designation: J8B4 Type: x1 PCI Express Current Usage: In Use Length: Short ID: 4 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Bus Address: 0000:00:1c.6 Handle 0x0021, DMI type 10, 6 bytes On Board Device Information Type: Video Status: Enabled Description: To Be Filled By O.E.M. Handle 0x0022, DMI type 11, 5 bytes OEM Strings String 1: Default string Handle 0x0023, DMI type 12, 5 bytes System Configuration Options Option 1: Default string Handle 0x0024, DMI type 32, 20 bytes System Boot Information Status: No errors detected Handle 0x0025, DMI type 41, 11 bytes Onboard Device Reference Designation: Onboard IGD Type: Video Status: Enabled Type Instance: 1 Bus Address: 0000:00:02.0 Handle 0x0026, DMI type 41, 11 bytes Onboard Device Reference Designation: Onboard LAN Type: Ethernet Status: Enabled Type Instance: 1 Bus Address: 0000:00:19.0 Handle 0x0027, DMI type 41, 11 bytes Onboard Device Reference Designation: Onboard 1394 Type: Other Status: Enabled Type Instance: 1 Bus Address: 0000:03:1c.2 Handle 0x0028, DMI type 16, 23 bytes Physical Memory Array Location: System Board Or Motherboard Use: System Memory Error Correction Type: None Maximum Capacity: 128 GB Error Information Handle: Not Provided Number Of Devices: 4 Handle 0x0029, DMI type 19, 31 bytes Memory Array Mapped Address Starting Address: 0x00000000000 Ending Address: 0x001FFFFFFFF Range Size: 8 GB Physical Array Handle: 0x0028 Partition Width: 1 Handle 0x002A, DMI type 17, 40 bytes Memory Device Array Handle: 0x0028 Error Information Handle: Not Provided Total Width: 8 bits Data Width: 8 bits Size: 8 GB Form Factor: DIMM Set: None Locator: DIMM0 Bank Locator: BANK 0 Type: DDR4 Type Detail: Synchronous Unbuffered (Unregistered) Speed: 2666 MT/s Manufacturer: A-DATA Serial Number: A4A60000 Asset Tag: BANK 0 DIMM0 AssetTag Part Number: Rank: 1 Configured Memory Speed: 2133 MT/s Minimum Voltage: 1.2 V Maximum Voltage: 1.2 V Configured Voltage: 1.2 V Handle 0x002B, DMI type 20, 35 bytes Memory Device Mapped Address Starting Address: 0x00000000000 Ending Address: 0x001FFFFFFFF Range Size: 8 GB Physical Device Handle: 0x002A Memory Array Mapped Address Handle: 0x0029 Partition Row Position: Unknown Handle 0x002C, DMI type 17, 40 bytes Memory Device Array Handle: 0x0028 Error Information Handle: Not Provided Total Width: Unknown Data Width: Unknown Size: No Module Installed Form Factor: DIMM Set: None Locator: DIMM0 Bank Locator: BANK 1 Type: Unknown Type Detail: Unknown Handle 0x002D, DMI type 17, 40 bytes Memory Device Array Handle: 0x0028 Error Information Handle: Not Provided Total Width: Unknown Data Width: Unknown Size: No Module Installed Form Factor: DIMM Set: None Locator: DIMM1 Bank Locator: BANK 0 Type: Unknown Type Detail: Unknown Handle 0x002E, DMI type 17, 40 bytes Memory Device Array Handle: 0x0028 Error Information Handle: Not Provided Total Width: Unknown Data Width: Unknown Size: No Module Installed Form Factor: DIMM Set: None Locator: DIMM1 Bank Locator: BANK 1 Type: Unknown Type Detail: Unknown Handle 0x002F, DMI type 7, 19 bytes Cache Information Socket Designation: L1-Cache Configuration: Enabled, Not Socketed, Level 1 Operational Mode: Write Back Location: Internal Installed Size: 56 kB Maximum Size: 56 kB Supported SRAM Types: Synchronous Installed SRAM Type: Synchronous Speed: Unknown Error Correction Type: Single-bit ECC System Type: Instruction Associativity: 8-way Set-associative Handle 0x0030, DMI type 7, 19 bytes Cache Information Socket Designation: L2-Cache Configuration: Enabled, Not Socketed, Level 2 Operational Mode: Write Back Location: Internal Installed Size: 2 MB Maximum Size: 2 MB Supported SRAM Types: Synchronous Installed SRAM Type: Synchronous Speed: Unknown Error Correction Type: Single-bit ECC System Type: Unified Associativity: 16-way Set-associative Handle 0x0031, DMI type 4, 48 bytes Processor Information Socket Designation: CPU0 Type: Central Processor Family: Pentium 4 Manufacturer: Intel(R) Corporation ID: F1 06 05 00 FF FB EB BF Signature: Type 0, Family 6, Model 95, Stepping 1 Flags: FPU (Floating-point unit on-chip) VME (Virtual mode extension) DE (Debugging extension) PSE (Page size extension) TSC (Time stamp counter) MSR (Model specific registers) PAE (Physical address extension) MCE (Machine check exception) CX8 (CMPXCHG8 instruction supported) APIC (On-chip APIC hardware supported) SEP (Fast system call) MTRR (Memory type range registers) PGE (Page global enable) MCA (Machine check architecture) CMOV (Conditional move instruction supported) PAT (Page attribute table) PSE-36 (36-bit page size extension) CLFSH (CLFLUSH instruction supported) DS (Debug store) ACPI (ACPI supported) MMX (MMX technology supported) FXSR (FXSAVE and FXSTOR instructions supported) SSE (Streaming SIMD extensions) SSE2 (Streaming SIMD extensions 2) SS (Self-snoop) HTT (Multi-threading) TM (Thermal monitor supported) PBE (Pending break enabled) Version: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz Voltage: 1.6 V External Clock: 100 MHz Max Speed: 3800 MHz Current Speed: 2200 MHz Status: Populated, Enabled Upgrade: Socket LGA775 L1 Cache Handle: 0x002F L2 Cache Handle: 0x0030 L3 Cache Handle: Not Provided Serial Number: Not Specified Asset Tag: UNKNOWN Part Number: Not Specified Core Count: 4 Core Enabled: 4 Thread Count: 4 Characteristics: 64-bit capable Multi-Core Hardware Thread Execute Protection Enhanced Virtualization Power/Performance Control Handle 0x0034, DMI type 127, 4 bytes End Of Table
88E6190をethに見せかけるコードだと思う
/usr/vtm/scripts/switch.sh
#!/bin/sh # chkconfig: 0123456 03 90 # description: Switch services # processname: /etc/init.d/rcSwitch lockfile=/var/lock/subsys/rcSwitch PRODUCT=`sudo dmidecode -s system-product-name | grep '^[^#]'` start() { ifconfig inner0 up ifconfig inner1 up sudo ethtool -K inner0 gro off sudo ethtool -K inner0 gso off sudo ethtool -K inner1 gro off sudo ethtool -K inner1 gso off sudo modprobe dsa-drv sudo modprobe mv88e6190-drv --force } stop() { return } floodoff() { sudo /bin/sh -c "echo 0 > /sys/devices/virtual/net/eth5/brport/unicast_flood" >/dev/null 2>&1 sudo /bin/sh -c "echo 0 > /sys/devices/virtual/net/eth7/brport/unicast_flood" >/dev/null 2>&1 sudo /bin/sh -c "echo 0 > /sys/devices/virtual/net/eth6/brport/unicast_flood" >/dev/null 2>&1 sudo /bin/sh -c "echo 0 > /sys/devices/virtual/net/eth8/brport/unicast_flood" >/dev/null 2>&1 sudo /bin/sh -c "echo 0 > /sys/devices/virtual/net/eth1/brport/unicast_flood" >/dev/null 2>&1 sudo /bin/sh -c "echo 0 > /sys/devices/virtual/net/eth2/brport/unicast_flood" >/dev/null 2>&1 sudo /bin/sh -c "echo 0 > /sys/devices/virtual/net/eth4/brport/unicast_flood" >/dev/null 2>&1 sudo /bin/sh -c "echo 0 > /sys/devices/virtual/net/eth3/brport/unicast_flood" >/dev/null 2>&1 } floodon() { sudo /bin/sh -c "echo 1 > /sys/devices/virtual/net/eth5/brport/unicast_flood" >/dev/null 2>&1 sudo /bin/sh -c "echo 1 > /sys/devices/virtual/net/eth7/brport/unicast_flood" >/dev/null 2>&1 sudo /bin/sh -c "echo 1 > /sys/devices/virtual/net/eth6/brport/unicast_flood" >/dev/null 2>&1 sudo /bin/sh -c "echo 1 > /sys/devices/virtual/net/eth8/brport/unicast_flood" >/dev/null 2>&1 sudo /bin/sh -c "echo 1 > /sys/devices/virtual/net/eth1/brport/unicast_flood" >/dev/null 2>&1 sudo /bin/sh -c "echo 1 > /sys/devices/virtual/net/eth2/brport/unicast_flood" >/dev/null 2>&1 sudo /bin/sh -c "echo 1 > /sys/devices/virtual/net/eth4/brport/unicast_flood" >/dev/null 2>&1 sudo /bin/sh -c "echo 1 > /sys/devices/virtual/net/eth3/brport/unicast_flood" >/dev/null 2>&1 } if [ "$PRODUCT" != "NCA-2011Z-TM2J" -a "$PRODUCT" != "NCA-2011Z-TM2E" -a "$PRODUCT" != "NCA-2011Z-TM3J" -a "$PRODUCT" != "NCA-2011Z-TM3E" ]; then exit 0 fi case "$1" in start) sudo touch $lockfile start ;; stop) sudo rm -f $lockfile stop ;; floodoff) floodoff ;; floodon) floodon ;; *) echo "usage : $0 start|stop" exit 1 ;; esac
Cloud Edge 型番一覧
def init(type=""): hardwareType = subprocess.check_output(['sudo', '/usr/sbin/dmidecode', '-s', 'system-product-name']) if hardwareType.find("SCB-6982A-TM2") != -1: init_device_type_ce100(type) elif hardwareType.find("SCB-6981A-TM1") != -1: init_device_type_ce50(type) elif hardwareType.find("CB-6985") != -1: init_device_type_ce50w(type) elif hardwareType.find("Express5800/GT110g-S") != -1: init_device_type_ce300(type) elif hardwareType.find("NCA-1011Z-TM1E") != -1: init_device_type_ce70e(type) elif hardwareType.find("NCA-1011Z-TM1") != -1: init_device_type_ce70(type) elif hardwareType.find("NCA-1011Z-TM2E") != -1: init_device_type_ce50e(type) elif hardwareType.find("NCA-1011Z-TM2") != -1: init_device_type_ce50(type) elif hardwareType.find("NCA-1011Z-TM3J") != -1: init_device_type_cesb(type) elif hardwareType.find("NCA-1011Z-TM3E") != -1: init_device_type_cesbe(type) elif hardwareType.find("NCA-1020Z-TM3") != -1: init_device_type_cesbwe(type) elif hardwareType.find("NCA-2011Z-TM1J") != -1: init_device_type_ce150(type) elif hardwareType.find("NCA-2011Z-TM1E") != -1: init_device_type_ce150e(type) elif hardwareType.find("NCA-2011Z-TM2J") != -1: init_device_type_ce100g2(type) elif hardwareType.find("NCA-2011Z-TM2E") != -1: init_device_type_ce100g2e(type) elif hardwareType.find("NCA-2011Z-TM3J") != -1: init_device_type_ce70g2(type) elif hardwareType.find("Express5800/T110g-S [N8100-2161Y]") != -1: lanbypass = os.popen("/usr/vtm/scripts/lanbypassd.sh get_type").read() if lanbypass.find("silicom-generic") != -1: init_device_type_ce300v2(type) else: init_device_type_ce300(type)