diff options
author | Tim Harvey <tharvey@gateworks.com> | 2023-03-02 14:29:39 -0800 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2024-03-02 14:08:08 +0100 |
commit | c2e32b4886ec570000df79281007538b55a84191 (patch) | |
tree | 74f3282f0c643980c3374b18362a1b3f02171aee | |
parent | 8b0407d15d2ffc8eac341bbf2ad585cb8efd1163 (diff) |
octeontx: update default network config
Update the default network configuration for Gateworks Newport boards
such that the left-most front-panel NIC is WAN and any additional are in
LAN bridge:
- gw610x/gw6903; single NIC: eth0
- gw620x/gw630x; two NIC's from left to right are: eth1 eth0
- gw640x; multiple NIC's from left to right: eth4 eth0 eth1 eth2 eth3
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
-rw-r--r-- | target/linux/octeontx/base-files/etc/board.d/02_network | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/octeontx/base-files/etc/board.d/02_network b/target/linux/octeontx/base-files/etc/board.d/02_network index 1397dffa5e..2727e44e43 100644 --- a/target/linux/octeontx/base-files/etc/board.d/02_network +++ b/target/linux/octeontx/base-files/etc/board.d/02_network @@ -9,6 +9,17 @@ board=$(board_name) board_config_update case "$board" in +gw,gw610x|\ +gw,gw6903) + ucidef_set_interfaces_lan 'eth0' + ;; +gw,gw620x|\ +gw,gw630x) + ucidef_set_interfaces_lan_wan 'eth0' 'eth1' + ;; +gw,gw640x) + ucidef_set_interfaces_lan_wan 'eth0 eth1 eth2 eth3' 'eth4' + ;; esac board_config_flush |