Hurricos / realtek-poe

5 stars 10 forks source link

`/etc/config/poe` template contains model inspecific port / budget value #28

Open walterav1984 opened 1 year ago

walterav1984 commented 1 year ago

The default /etc/config/poe template file does contain the correct PoE power budget taken for the GS1900 HP24v1, is it generated from /etc/board.json on model specific board type or static for all models?

root@OpenWrt:~# cat /etc/board.json | grep budget "budget": "170",

Also can the default number of enabled PoE ports also be generated (excluding SFP/+ ports) from available device info?

mrnuke commented 1 year ago

The config file is hardcoded currently, and not generated from board.json. Once this conversion is in place, it should solve both problems.

CC: @aparcar