platform/tests: flush all tables in test_cache_consistency_routes() test

(cherry picked from commit 8089133f1c)
This commit is contained in:
Thomas Haller 2023-01-30 17:40:16 +01:00
parent dedbc9ef05
commit eb73367d67
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -2234,10 +2234,12 @@ test_cache_consistency_routes(gconstpointer test_data)
continue;
}
nmtstp_run_command("ip -%c route flush dev %s"
"%s" /* redirect */
" table %s" /* table */
"%s" /* redirect */
"",
addr_family_char[IS_IPv4],
ifname,
nmtst_rand_select_str("main", "10222", "10223", "all"),
nmtst_is_debug() ? "" : " &>/dev/null");
_ensure_onlink_routes();
goto done;