Lines Matching full:replace
708 # basic operations (add, delete, replace) on nexthops and nexthop groups
787 run_cmd "$IP nexthop replace id 102 group 101"
791 run_cmd "$IP nexthop replace id 102 group 100/101"
919 # nexthop in the group. Needed for atomic replace with an
929 log_test $? 0 "Nexthop group replace refcounts"
961 run_cmd "$IP nexthop replace id 102 group 62/63 type resilient buckets 2 idle_timer 0"
964 log_test $? 0 "Nexthop group updated after replace"
967 log_test $? 0 "Nexthop buckets updated after replace"
987 run_cmd "$IP nexthop replace id 102 group 62,3/63,1 type resilient buckets 4 idle_timer 0"
990 log_test $? 0 "Nexthop group updated after replace - nECMP"
993 log_test $? 0 "Nexthop buckets updated after replace - nECMP"
1020 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 122"
1028 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 83"
1032 run_cmd "$IP nexthop replace id 83 via 2001:db8:91::2 dev veth1"
1036 run_cmd "$IP -6 nexthop replace id 83 blackhole"
1040 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 122"
1043 run_cmd "$IP nexthop replace id 122 group 83"
1047 run_cmd "$IP nexthop replace id 122 group 81/82"
1058 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 85"
1063 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 123"
1075 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 81"
1076 run_cmd "$IP nexthop replace id 81 via 172.16.1.1 dev veth1"
1077 log_test $? 2 "Nexthop replace - v6 route, v4 nexthop"
1079 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 122"
1080 run_cmd "$IP nexthop replace id 81 via 172.16.1.1 dev veth1"
1081 log_test $? 2 "Nexthop replace of group entry - v6 route, v4 nexthop"
1087 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 124"
1091 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 124"
1095 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 124"
1101 run_cmd "$IP nexthop replace id 124 group 86/87/88"
1102 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 124"
1105 run_cmd "$IP nexthop replace id 88 via 2001:db8:92::2 dev veth3"
1106 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 124"
1109 run_cmd "$IP nexthop replace id 87 via 2001:db8:92::2 dev veth3"
1110 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 124"
1138 run_cmd "$IP -6 ro replace default nhid 93"
1144 # existing route with old nexthop; replace route with new
1145 # existing route with new nexthop; replace route with old
1189 $IP nexthop replace id 102 group 100/101
1237 $IP nexthop replace id 102 group 100/101 type resilient
1468 # nexthop in the group. Needed for atomic replace with an
1507 run_cmd "$IP nexthop replace id 102 group 12/13 type resilient buckets 2 idle_timer 0"
1510 log_test $? 0 "Nexthop group updated after replace"
1513 log_test $? 0 "Nexthop buckets updated after replace"
1533 run_cmd "$IP nexthop replace id 102 group 12,3/13,1 type resilient buckets 4 idle_timer 0"
1536 log_test $? 0 "Nexthop group updated after replace - nECMP"
1539 log_test $? 0 "Nexthop buckets updated after replace - nECMP"
1558 run_cmd "$IP ro replace 172.16.101.1/32 nhid 101"
1563 run_cmd "$IP ro replace 172.16.101.1/32 via inet6 ${lladdr} dev veth1"
1567 run_cmd "$IP ro replace 172.16.101.1/32 via inet6 2001:db8:50::1 dev veth1"
1595 run_cmd "$IP nexthop replace id 22 dev veth3"
1597 run_cmd "$IP nexthop replace id 22 via 172.16.2.2 dev veth3"
1598 log_test $? 2 "Nexthop replace with invalid scope for existing route"
1607 run_cmd "$IP nexthop replace id 21 via 172.16.1.2 dev veth1"
1608 run_cmd "$IP ro replace 172.16.101.1/32 nhid 21"
1612 run_cmd "$IP nexthop replace id 22 via 172.16.2.2 dev veth3"
1614 run_cmd "$IP ro replace 172.16.101.1/32 nhid 122"
1633 run_cmd "$IP nexthop replace id 501 via 172.16.1.3 dev veth1"
1645 run_cmd "$IP ro replace 172.16.101.1/32 nhid 23"
1649 run_cmd "$IP nexthop replace id 23 via 172.16.1.2 dev veth1"
1653 run_cmd "$IP nexthop replace id 23 blackhole"
1657 run_cmd "$IP ro replace 172.16.101.1/32 nhid 122"
1660 run_cmd "$IP nexthop replace id 122 group 23"
1664 run_cmd "$IP nexthop replace id 122 group 21/22"
1675 run_cmd "$IP ro replace 172.16.101.1/32 nhid 85"
1680 run_cmd "$IP ro replace 172.16.101.1/32 nhid 123"
1691 run_cmd "$IP ro replace 172.16.101.1/32 nhid 24"
1711 run_cmd "$IP ro replace 172.16.101.1/32 nhid 101"
1719 run_cmd "$IP ro replace 172.16.101.1/32 via inet6 ${lladdr} dev veth1"
1844 run_cmd "$IP nexthop replace id 122 group 62/64"
1871 run_cmd "$IP nexthop replace id 122 group 62/64"
1916 run_cmd "$IP nexthop replace id 122 group 21/23"
1937 run_cmd "$IP nexthop replace id 122 group 21/22"
1961 $IP nexthop replace id 102 group 100/101
2009 $IP nexthop replace id 102 group 100/101 type resilient
2102 run_cmd "$IP nexthop replace id 2 blackhole dev veth1"
2133 run_cmd "$IP nexthop replace id 2 dev veth3"
2134 run_cmd "$IP nexthop replace id 102 group 1/2"
2135 run_cmd "$IP nexthop replace id 2 blackhole"
2146 # replace nexthop with a group - fails
2147 run_cmd "$IP nexthop replace id 2 group 1"
2148 log_test $? 2 "Replace nexthop with nexthop group"
2150 # replace nexthop group with a nexthop - fails
2151 run_cmd "$IP nexthop replace id 101 dev veth1"
2152 log_test $? 2 "Replace nexthop group with nexthop"
2253 run_cmd "$IP nexthop replace id 101 group 1 type resilient
2255 log_test $? 0 "Replace nexthop group parameters"
2260 run_cmd "$IP nexthop replace id 101 group 1 type resilient idle_timer 512"
2261 log_test $? 0 "Replace idle timer"
2266 run_cmd "$IP nexthop replace id 101 group 1 type resilient unbalanced_timer 256"
2267 log_test $? 0 "Replace unbalanced timer"
2272 run_cmd "$IP nexthop replace id 101 group 1 type resilient"
2273 log_test $? 0 "Replace with no parameters"
2278 run_cmd "$IP nexthop replace id 101 group 1"
2279 log_test $? 2 "Replace nexthop group type - implicit"
2281 run_cmd "$IP nexthop replace id 101 group 1 type mpath"
2282 log_test $? 2 "Replace nexthop group type - explicit"
2284 run_cmd "$IP nexthop replace id 101 group 1 type resilient buckets 1024"
2285 log_test $? 2 "Replace number of nexthop buckets"
2376 run_cmd "$IP nexthop replace id 101
2381 log_test $? 0 "Bucket allocation after replace"
2384 run_cmd "$IP nexthop replace id 101
2387 run_cmd "$IP nexthop replace id 101