[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:
Abtin Keshavarzian
2021-07-12 20:06:29 -07:00
committed by GitHub
parent 42d86ed832
commit 9f084ac7bb
5 changed files with 157 additions and 3 deletions
+7
View File
@@ -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"