Filter out integrated devices and firewall interfaces

- PCI: Exclude USB controller, Audio device, Encryption controller,
  Multimedia controller (integrated motherboard devices)
- Network: Also filter fwbr*, fwln*, fwpr*, tap* interfaces
  (firewall bridges and VM tap devices)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-24 21:41:17 -05:00
parent 8a12db93ae
commit b65bcb1c4c

View File

@@ -152,8 +152,8 @@ get_network_info() {
get_detailed_network() { get_detailed_network() {
echo -e "\n${GREEN}=== Network Interface Statistics ===${NC}" echo -e "\n${GREEN}=== Network Interface Statistics ===${NC}"
# Show only physical interfaces and bridges, skip veth* (container interfaces) # Show only physical interfaces and bridges, skip virtual/firewall interfaces
for iface in $(ls /sys/class/net | grep -v lo | grep -v "^veth"); do for iface in $(ls /sys/class/net | grep -v lo | grep -v -E "^veth|^fwbr|^fwln|^fwpr|^tap"); do
ip -s link show "$iface" 2>/dev/null ip -s link show "$iface" 2>/dev/null
done done
echo -e "\n${GREEN}=== Network Statistics ===${NC}" echo -e "\n${GREEN}=== Network Statistics ===${NC}"
@@ -169,8 +169,8 @@ get_detailed_network() {
get_hardware_info() { get_hardware_info() {
echo -e "${GREEN}BIOS Version:${NC} $(dmidecode -s bios-version)" echo -e "${GREEN}BIOS Version:${NC} $(dmidecode -s bios-version)"
echo -e "\n${GREEN}=== PCI Devices ===${NC}" echo -e "\n${GREEN}=== PCI Devices ===${NC}"
# Show all interesting devices, exclude bridges and internal infrastructure # Show interesting devices, exclude bridges, infrastructure, and integrated motherboard devices
lspci | grep -v -E "Host bridge|PCI bridge|ISA bridge|SMBus|IOMMU|Dummy" lspci | grep -v -E "Host bridge|PCI bridge|ISA bridge|SMBus|IOMMU|Dummy|USB controller|Audio device|Encryption controller|Multimedia controller"
} }
get_motherboard_info() { get_motherboard_info() {
@@ -225,8 +225,8 @@ get_memory_details() {
get_nic_details() { get_nic_details() {
echo -e "\n${GREEN}=== Network Interface Details ===${NC}" echo -e "\n${GREEN}=== Network Interface Details ===${NC}"
# Show only physical interfaces and bridges, skip veth* (container interfaces) # Show only physical interfaces and bridges, skip virtual/firewall interfaces
for iface in $(ls /sys/class/net | grep -v lo | grep -v "^veth"); do for iface in $(ls /sys/class/net | grep -v lo | grep -v -E "^veth|^fwbr|^fwln|^fwpr|^tap"); do
echo -e "\n${GREEN}Interface: $iface${NC}" echo -e "\n${GREEN}Interface: $iface${NC}"
# Get driver info # Get driver info