mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 08:07:47 +00:00
[netdata] allow zero-len external route prefix (#6784)
This commit allows a zero-len prefix `::/0` to be added as an external route in Network Data. Such a prefix can act as a default route. This commit also adds `test_zero_len_external_route.py` testcase to verify the network's behavior using a zero-len external route.
This commit is contained in:
@@ -164,6 +164,13 @@ expect "0:0:0:0::/64 s low"
|
||||
send "route remove ::/64\n"
|
||||
expect_line "Done"
|
||||
|
||||
send "route add ::/0 s low\n"
|
||||
expect_line "Done"
|
||||
send "route\n"
|
||||
expect "0:0:0:0::/0 s low"
|
||||
send "route remove ::/0\n"
|
||||
expect_line "Done"
|
||||
|
||||
send "diag start\n"
|
||||
expect ": InvalidState"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user