Lines Matching full:route
62 # Try to avoid races with route offload
65 num=$(ip -6 route show match ${pfx} | grep "offload" | wc -l)
78 # Add a prefix route and check that it is offloaded.
79 ip -6 route add 2001:db8:3::/64 dev $spine_p1 metric 100
81 check_err $? "prefix route not offloaded"
83 # Append an identical prefix route with an higher metric and check that
85 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 200
91 # Prepend an identical prefix route with lower metric and check that
93 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 10
101 # Delete the routes and add the same route with a different nexthop
103 ip -6 route flush 2001:db8:3::/64 dev $spine_p1
104 ip -6 route add 2001:db8:3::/64 dev $spine_p2
107 log_test "IPv6 prefix route add"
109 ip -6 route flush 2001:db8:3::/64
116 # Add a multipath route and check that it is offloaded.
117 ip -6 route add 2001:db8:3::/64 metric 100 \
121 check_err $? "multipath route not offloaded when should"
124 ip -6 route append 2001:db8:3::/64 metric 100 \
129 # Mimic route replace by removing the route and adding it back with
131 ip -6 route del 2001:db8:3::/64
132 ip -6 route add 2001:db8:3::/64 metric 100 \
136 check_err $? "multipath route not offloaded after delete & add"
140 ip -6 route append 2001:db8:3::/64 metric 200 \
149 ip -6 route append 2001:db8:3::/64 metric 10 \
158 log_test "IPv6 multipath route add"
160 ip -6 route flush 2001:db8:3::/64
173 # Replace prefix route with prefix route.
174 ip -6 route add 2001:db8:3::/64 metric 100 dev $spine_p1
176 check_err $? "prefix route not offloaded when should"
177 ip -6 route replace 2001:db8:3::/64 metric 100 dev $spine_p2
179 check_err $? "prefix route not offloaded after replace"
181 # Replace prefix route with multipath route.
182 ip -6 route replace 2001:db8:3::/64 metric 100 \
186 check_err $? "multipath route not offloaded after replace"
188 # Replace multipath route with prefix route. A prefix route cannot
189 # replace a multipath route, so it is appended.
190 ip -6 route replace 2001:db8:3::/64 metric 100 dev $spine_p1
192 check_err $? "prefix route offloaded after 'replacing' multipath route"
194 check_err $? "multipath route not offloaded after being 'replaced' by prefix route"
196 # Replace multipath route with multipath route.
197 ip -6 route replace 2001:db8:3::/64 metric 100 \
201 check_err $? "multipath route not offloaded after replacing multipath route"
203 # Replace a non-existing multipath route with a multipath route and
205 ip -6 route replace 2001:db8:3::/64 metric 200 \
209 check_err $? "multipath route not offloaded after non-existing route was 'replaced'"
211 check_err $? "multipath route offloaded after 'replacing' non-existing route"
213 log_test "IPv6 route replace"
215 ip -6 route flush 2001:db8:3::/64
224 # of one multipath route using the group does not affect the other.
225 ip -6 route add 2001:db8:3::/64 \
228 ip -6 route add 2001:db8:4::/64 \
232 check_err $? "multipath route not offloaded when should"
234 check_err $? "multipath route not offloaded when should"
235 ip -6 route del 2001:db8:3::/64
237 check_err $? "multipath route not offloaded after deletion of route sharing the nexthop group"
241 ip -6 route add 2001:db8:3::/64 \
244 ip -6 route del 2001:db8:4::/64 \
247 check_err $? "singlepath route not offloaded after unsharing the nexthop group"
249 check_err $? "multipath route not offloaded after unsharing the nexthop group"
253 ip -6 route flush 2001:db8:3::/64
254 ip -6 route flush 2001:db8:4::/64
283 echo "route add 2001:db8:8:$(printf "%x" $i)::/64$nexthops" \
285 echo "route del 2001:db8:8:$(printf "%x" $i)::/64$nexthops" \
292 count=$(ip -6 route show | grep offload | wc -l)
295 count=$(ip -6 route show | grep offload | wc -l)
302 check_err $? "route insertion took too long"