Hurricos / realtek-poe

7 stars 10 forks source link

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

Open walterav1984 opened 2 years ago

walterav1984 commented 2 years 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 2 years 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