[cli] add command to set mesh-local prefix (#7663)

Also add an expect test for getting/setting mesh-local prefix.
This commit is contained in:
Jonathan Hui
2022-05-05 21:42:58 -07:00
committed by GitHub
parent fa939be97b
commit 3a125c66d2
3 changed files with 29 additions and 1 deletions
+7
View File
@@ -180,6 +180,13 @@ expect "Done"
send "ba state\n"
expect "Done"
send "prefix meshlocal fd00:dead:beef:cafe::/96\n"
expect_line "Error 7: InvalidArgs"
send "prefix meshlocal fd00:dead:beef:cafe::/64\n"
expect_line "Done"
send "prefix meshlocal\n"
expect_line "fd00:dead:beef:cafe::/64"
send "invalidcommand\n"
expect_line "Error 35: InvalidCommand"