Lines Matching +full:route +full:- +full:up

2 # SPDX-License-Identifier: GPL-2.0
100 ip -n $ns link add name dummy1 type dummy
101 ip -n $ns link set dev dummy1 up
103 ip -n $ns route add table local 192.0.2.1/32 dev dummy1
105 check_err $? "Local table route not in hardware when should"
107 ip -n $ns route add table main 192.0.2.1/32 dev dummy1
109 check_err $? "Main table route in hardware when should not"
112 check_err $? "Local table route was replaced when should not"
115 ip -n $ns route add table main 192.0.2.2/32 dev dummy1
117 check_err $? "Main table route not in hardware when should"
119 ip -n $ns route add table local 192.0.2.2/32 dev dummy1
121 check_err $? "Local table route did not replace route in main table when should"
124 check_err $? "Main table route was not replaced when should"
126 log_test "IPv4 local table route replacement"
128 ip -n $ns link del dev dummy1
197 ip -n $ns link add name dummy1 type dummy
198 ip -n $ns link set dev dummy1 up
200 ip -n $ns route add table local 2001:db8:1::1/128 dev dummy1
202 check_err $? "Local table route not in hardware when should"
204 ip -n $ns route add table main 2001:db8:1::1/128 dev dummy1
206 check_err $? "Main table route in hardware when should not"
209 check_err $? "Local table route was replaced when should not"
212 ip -n $ns route add table main 2001:db8:1::2/128 dev dummy1
214 check_err $? "Main table route not in hardware when should"
216 ip -n $ns route add table local 2001:db8:1::2/128 dev dummy1
218 check_err $? "Local route route did not replace route in main table when should"
221 check_err $? "Main table route was not replaced when should"
223 log_test "IPv6 local table route replacement"
225 ip -n $ns link del dev dummy1
232 ip netns exec testns1 sysctl -qw net.ipv4.fib_notify_on_flag_change=$notify
233 ip netns exec testns1 sysctl -qw net.ipv6.fib_notify_on_flag_change=$notify
241 if [ $? -ne 0 ]; then
247 if [ $? -ne 0 ]; then
256 devlink -N testns1 dev reload $DEVLINK_DEV netns $$