mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-14 21:10:11 +01:00
port-management: populate with correct option
This commit is contained in:
parent
392e014872
commit
81841777b9
1 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ populate_config(){
|
|||
do
|
||||
uci add ports ethport
|
||||
uci rename ports.@ethport[-1]="$(interfacename $port)"
|
||||
uci set ports.@ethport[-1].enable=1
|
||||
uci set ports.@ethport[-1].enabled=1
|
||||
uci set ports.@ethport[-1].name="$(interfacename $port)"
|
||||
uci set ports.@ethport[-1].ifname="$port"
|
||||
uci set ports.@ethport[-1].speed=1000
|
||||
|
|
@ -43,7 +43,7 @@ populate_config(){
|
|||
for fiber in $fiberorder; do
|
||||
uci add ports sfpport
|
||||
uci rename ports.@sfpport[-1]="$(fibername $fiber)"
|
||||
uci set ports.@sfpport[-1].enable=1
|
||||
uci set ports.@sfpport[-1].enabled=1
|
||||
uci set ports.@sfpport[-1].name="$(fibername $fiber)"
|
||||
uci set ports.@sfpport[-1].ifname="$fiber"
|
||||
uci set ports.@sfpport[-1].speed=1000
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue