[][openwrt][common][app][Refactor switch command to support switches with different design]

[Description]
Refactor switch command to support switches wtih different design.
Original switch command only support mt7530 and mt7531 switch design.
After refactor, it can also support an8855 switch design.

[Release-log]
N/A

Change-Id: I0d54e41d952a32e86ab3a79c6374a95a61bfdf73
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8766441
6 files changed