openwrt / luci

LuCI - OpenWrt Configuration Interface
Apache License 2.0
6.38k stars 2.53k forks source link

luci-mod-status: cannot correctly display port status [23.05] #6541

Closed missing233 closed 1 year ago

missing233 commented 1 year ago

I checked board.json. If a specific port is set individually, it will work correctly. { "model": { "id": "gowin-solution-r86s", "name": "GoWin Solution R86S" }, "network": { "lan": { "device": "eth0", "protocol": "static" }, "wan": { "device": "eth3", "protocol": "dhcp" } } } 20230825223455 However, if all ports are written into board.json, then no port can be displayed. { "model": { "id": "gowin-solution-r86s", "name": "GoWin Solution R86S" }, "network": { "lan": { "device": ["eth0", "eth1", "eth2", "eth4"], "protocol": "static" }, "wan": { "device": "eth3", "protocol": "dhcp" } } } 20230825223410

eth0-2 is Intel I226-V eth3-4 is Mellanox ConnectX-3 CX341A

openwrtdiy commented 1 year ago

try the following

    "lan": {
        "ports": ["eth0", "eth1", "eth2", "eth4"],
        "protocol": "static"
    },
    "wan": {
        "ports": ["eth3"],
        "protocol": "dhcp"
    }
missing233 commented 1 year ago

try the following

  "lan": {
      "ports": ["eth0", "eth1", "eth2", "eth4"],
      "protocol": "static"
  },
  "wan": {
      "ports": ["eth3"],
      "protocol": "dhcp"
  }

thanks! It works!