ot-br-posix icon indicating copy to clipboard operation
ot-br-posix copied to clipboard

OTBR add "On-Mesh Prefix" on OpenWRT Luci

Open ihidchaos opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. The Form function of the native OT Border Router WEB GUI can directly set the default ON-Mesh Prefix, while OpenWrt's Luci Form does not have this option. This results in devices connected to the OpenWrt Thread network being unable to get the Mesh Local IP from the OTBR. image image Luci form: no fd11:22 ip image image

OTBR WEB form: ok image image

Describe the solution you'd like A clear and concise description of what you want to happen. a. Add the setonmeshprefix(to set) and onmeshprefix(to get) functions to the Ubus, then call the ubus command on the Luci Web. b. Add the setonMeshPrefix and onmeshPrefix functions to ot-ctl, then Call the ot-ctl command on the Luci Web. Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

ihidchaos avatar Dec 03 '20 07:12 ihidchaos

@IHIDCHAOS In fact, Thread can have multiple prefixes. Instead of adding setonmeshprefix, I think it better to add UI support full functionality of https://github.com/openthread/openthread/tree/master/src/cli#prefix. That is, OpenWRT should be able to manage multiple prefixes with different flags. Thoughts?

bukepo avatar Dec 05 '20 02:12 bukepo

Hi @bukepo,

Thanks for your reply.

I noticed that in your link there are some Prefix flag features only work on Thread 1.2. But right now on the official OTBR Web GUI there is only one box for setonmeshprefix. I wonder is this a preparation for the new Thread version? If so, may be it would be better to start with Raspberry Pi? If not, then add setonmeshprefix input box on OpenWrt platform is great complement for now.

In addition, are there any cases where multiple prefixes need to be added to one end device? Any example links are much appreciated!

Best, Yicong

ethanlyc avatar Dec 07 '20 09:12 ethanlyc

I agree that Raspberry Pi should also allow configuration of multiple on-mesh prefixes.

jwhui avatar Dec 08 '20 00:12 jwhui

Closing stale issue.

jwhui avatar Jun 27 '23 22:06 jwhui