• Home
  • Raw
  • Download

Lines Matching full:route

100 	echo "Single path route test"
105 $IP route get fibmatch 198.51.100.2 &> /dev/null
107 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
115 $IP route get fibmatch 198.51.100.2 &> /dev/null
116 log_test $? 2 "IPv4 fibmatch - no route"
117 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
118 log_test $? 2 "IPv6 fibmatch - no route"
127 echo "Multipath route test"
137 $IP route add 203.0.113.0/24 \
140 $IP -6 route add 2001:db8:3::/64 \
146 $IP route get fibmatch 203.0.113.1 &> /dev/null
148 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
156 $IP route get fibmatch 203.0.113.1 &> /dev/null
157 log_test $? 2 "IPv4 - multipath route removed on delete"
159 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
160 # In IPv6 we do not flush the entire multipath route.
168 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
169 log_test $? 2 "IPv6 - no route"
188 $IP route get fibmatch 198.51.100.2 &> /dev/null
190 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
197 echo " Route deleted on down"
198 $IP route get fibmatch 198.51.100.2 &> /dev/null
200 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
211 $IP route get fibmatch 203.0.113.1 \
214 $IP -6 route get fibmatch 2001:db8:3::1 \
218 $IP route get fibmatch 203.0.113.1 \
221 $IP -6 route get fibmatch 2001:db8:3::1 \
225 $IP route get fibmatch 203.0.113.1 | \
228 $IP -6 route get fibmatch 2001:db8:3::1 | \
232 $IP route get fibmatch 203.0.113.1 | \
235 $IP -6 route get fibmatch 2001:db8:3::1 | \
254 $IP route add 203.0.113.0/24 \
257 $IP -6 route add 2001:db8:3::/64 \
263 $IP route get fibmatch 203.0.113.1 &> /dev/null
266 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
289 $IP route get fibmatch 203.0.113.1 &> /dev/null
291 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
317 $IP route get fibmatch 198.51.100.1 &> /dev/null
319 $IP -6 route get fibmatch 2001:db8:1::1 &> /dev/null
322 $IP route get fibmatch 198.51.100.1 | \
325 $IP -6 route get fibmatch 2001:db8:1::1 | \
335 $IP route get fibmatch 198.51.100.1 &> /dev/null
337 $IP -6 route get fibmatch 2001:db8:1::1 &> /dev/null
340 $IP route get fibmatch 198.51.100.1 | \
343 $IP -6 route get fibmatch 2001:db8:1::1 | \
352 echo " Route to local address with carrier down"
353 $IP route get fibmatch 192.0.2.1 &> /dev/null
355 $IP -6 route get fibmatch 2001:db8:2::1 &> /dev/null
358 $IP route get fibmatch 192.0.2.1 | \
361 $IP -6 route get fibmatch 2001:db8:2::1 | \
373 echo "Single path route carrier test"
382 $IP route get fibmatch 198.51.100.2 &> /dev/null
384 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
387 $IP route get fibmatch 198.51.100.2 | \
390 $IP -6 route get fibmatch 2001:db8:1::2 | \
400 $IP route get fibmatch 198.51.100.2 &> /dev/null
402 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
405 $IP route get fibmatch 198.51.100.2 | \
408 $IP -6 route get fibmatch 2001:db8:1::2 | \
418 $IP route get fibmatch 192.0.2.2 &> /dev/null
420 $IP -6 route get fibmatch 2001:db8:2::2 &> /dev/null
423 $IP route get fibmatch 192.0.2.2 | \
426 $IP -6 route get fibmatch 2001:db8:2::2 | \
512 # run 'ip route add' with given spec
527 cmd="$IP route add vrf $vrf $pfx $gw $dev"
595 add_rt "VRF route, gateway can be local address in default VRF" 0 \
599 add_rt "VRF route, gateway can not be a local address" 2 \
601 add_rt "VRF route, gateway can not be a local addr with device" 2 \
628 $IP -4 route add vrf red unreachable default metric 4278198272
629 $IP -6 route add vrf red unreachable default metric 4278198272
666 $IP -6 route add default dev dummy1
679 # Tests on route add and replace
713 printf "\nNo route entry found\n"
726 printf " Unexpected route entry. Have:\n"
736 # add route for a prefix, flushing any existing routes first
761 echo "Failed to add initial route for test."
766 # add initial route - used in replace route tests
836 # assumption is that basic add of a single path route works
843 echo "IPv6 route add / append tests"
845 # route add same prefix - fails with EEXISTS b/c ip adds NLM_F_EXCL
848 log_test $? 2 "Attempt to add duplicate route - gw"
850 # route add same prefix - fails with EEXISTS b/c ip adds NLM_F_EXCL
853 log_test $? 2 "Attempt to add duplicate route - dev only"
855 # route add same prefix - fails with EEXISTS b/c ip adds NLM_F_EXCL
858 log_test $? 2 "Attempt to add duplicate route - reject route"
860 # route append with same prefix adds a new route
865 log_test $? 0 "Append nexthop to existing route - gw"
870 log_test $? 0 "Add multipath route"
874 log_test $? 2 "Attempt to add duplicate multipath route"
876 # insert of a second route without append but different metric
884 log_test $rc 0 "Route add with different metrics"
892 log_test $rc 0 "Route delete with metric"
918 # route replace fails - invalid nexthop
930 # replace non-existent route
935 log_test $? 2 "Single path - replace of non-existent route"
964 # route replace fails - invalid nexthop 1
970 # route replace fails - invalid nexthop 2
976 # multipath non-existent route
979 log_test $? 2 "Multipath - replace of non-existent route"
985 echo "IPv6 route replace tests"
1017 echo "IPv6 prefix route tests"
1069 # verify prefix route removed on down
1078 log_test $rc 0 "Prefix route removed on link down"
1080 # verify prefix route re-inserted with assigned metric
1087 log_test $rc 0 "Prefix route with metric on link up"
1096 log_test $? 0 "Set metric with peer route on local side"
1098 log_test $? 0 "Set metric with peer route on peer side"
1132 log_test $rc 0 "Single path route with mtu metric"
1145 log_test $rc 0 "Multipath route via 2 single routes with mtu metric on first"
1147 # second route is coalesced to first to make a multipath route.
1156 log_test $rc 0 "Multipath route via 2 single routes with mtu metric on 2nd"
1173 log_test $rc 0 "Multipath route with mtu metric"
1177 log_test $? 0 "Using route with mtu metric"
1185 # add route for a prefix, flushing any existing routes first
1210 echo "Failed to add initial route for test."
1215 # add initial route - used in replace route tests
1235 # assumption is that basic add of a single path route works
1242 echo "IPv4 route add / append tests"
1244 # route add same prefix - fails with EEXISTS b/c ip adds NLM_F_EXCL
1247 log_test $? 2 "Attempt to add duplicate route - gw"
1249 # route add same prefix - fails with EEXISTS b/c ip adds NLM_F_EXCL
1252 log_test $? 2 "Attempt to add duplicate route - dev only"
1254 # route add same prefix - fails with EEXISTS b/c ip adds NLM_F_EXCL
1257 log_test $? 2 "Attempt to add duplicate route - reject route"
1260 # - adds a new route; does NOT convert existing route to ECMP
1266 # route append with same prefix adds a new route
1271 log_test $? 0 "Append nexthop to existing route - gw"
1276 log_test $? 0 "Append nexthop to existing route - dev only"
1281 log_test $? 0 "Append nexthop to existing route - reject route"
1287 log_test $? 0 "Append nexthop to existing reject route - gw"
1293 log_test $? 0 "Append nexthop to existing reject route - dev only"
1298 log_test $? 0 "add multipath route"
1302 log_test $? 2 "Attempt to add duplicate multipath route"
1304 # insert of a second route without append but different metric
1312 log_test $rc 0 "Route add with different metrics"
1320 log_test $rc 0 "Route delete with metric"
1344 log_test $? 0 "Single path with reject route"
1353 # route replace fails - invalid nexthop
1365 # replace non-existent route
1370 log_test $? 2 "Single path - replace of non-existent route"
1397 log_test $? 0 "Multipath with reject route"
1399 # route replace fails - invalid nexthop 1
1405 # route replace fails - invalid nexthop 2
1411 # multipath non-existent route
1414 log_test $? 2 "Multipath - replace of non-existent route"
1420 echo "IPv4 route replace tests"
1426 # checks that cached input route on VRF port is deleted
1438 run_cmd "ip route add 10.1.1.1/32 dev veth-outside table 1100"
1441 run_cmd "ip netns exec test-ns ip route add 10.0.0.1/32 dev veth-inside"
1442 run_cmd "ip netns exec test-ns ip route add default via 10.0.0.1"
1447 log_test $? 0 "Cached route removed from VRF port device"
1466 echo "IPv4 prefix route tests"
1518 # verify prefix route removed on down
1526 log_test $rc 0 "Prefix route removed on link down"
1528 # verify prefix route re-inserted with assigned metric
1535 log_test $rc 0 "Prefix route with metric on link up"
1555 log_test $rc 0 "Set metric of address with peer route"
1563 log_test $rc 0 "Modify metric and peer address for peer route"
1575 echo "IPv4 route add / append tests"
1585 log_test $rc 0 "Single path route with mtu metric"
1594 log_test $rc 0 "Multipath route with mtu metric"
1598 log_test $? 0 "Using route with mtu metric"
1609 echo "IPv4 delete address route tests"
1627 $IP route add 172.16.105.0/24 via 172.16.104.2 src 172.16.104.11
1628 $IP route add vrf red 172.16.105.0/24 via 172.16.104.2 src 172.16.104.11
1631 # removing address from device in vrf should only remove route from vrf table
1634 log_test $? 1 "Route removed from VRF when source address deleted"
1637 log_test $? 0 "Route in default VRF not removed"
1640 $IP route add vrf red 172.16.105.0/24 via 172.16.104.2 src 172.16.104.11
1644 log_test $? 1 "Route removed in default VRF when source address deleted"
1647 log_test $? 0 "Route in VRF is not removed by address delete"
1660 echo "IPv4 route with IPv6 gateway tests"
1666 # single path route
1670 log_test $rc 0 "Single path route with IPv6 gateway"
1676 log_test $rc 0 "Single path route with IPv6 gateway - ping"
1680 log_test $rc 0 "Single path route delete"
1690 log_test $rc 0 "Multipath route add - v6 nexthop then v4"
1696 log_test $? 2 " Multipath route delete - nexthops in wrong order"
1699 log_test $? 0 " Multipath route delete exact match"
1706 log_test $rc 0 "Multipath route add - v4 nexthop then v6"
1712 log_test $? 2 " Multipath route delete - nexthops in wrong order"
1715 log_test $? 0 " Multipath route delete exact match"
1766 ip route help 2>&1 | grep -q fibmatch