Lines Matching full:buckets

355 	local buckets=$2
364 # create a resilient group with $buckets buckets and dump them
366 run_cmd "$IP nexthop add id 1000 group 100 type resilient buckets $buckets"
368 log_test $? 0 "Dump large (x$buckets) nexthop buckets"
942 # migration of nexthop buckets - equal weights
946 run_cmd "$IP nexthop add id 102 group 62/63 type resilient buckets 2 idle_timer 0"
950 "id 102 group 62 type resilient buckets 2 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
954 log_test $? 0 "Nexthop buckets updated when entry is deleted"
957 run_cmd "$IP nexthop replace id 102 group 62/63 type resilient buckets 2 idle_timer 0"
959 "id 102 group 62/63 type resilient buckets 2 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
963 log_test $? 0 "Nexthop buckets updated after replace"
968 # migration of nexthop buckets - unequal weights
972 run_cmd "$IP nexthop add id 102 group 62,3/63,1 type resilient buckets 4 idle_timer 0"
976 "id 102 group 62,3 type resilient buckets 4 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
980 log_test $? 0 "Nexthop buckets updated when entry is deleted - nECMP"
983 run_cmd "$IP nexthop replace id 102 group 62,3/63,1 type resilient buckets 4 idle_timer 0"
985 "id 102 group 62,3/63 type resilient buckets 4 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
989 log_test $? 0 "Nexthop buckets updated after replace - nECMP"
1161 echo "IPv6 large resilient group (128k buckets)"
1261 run_cmd "$IP nexthop add id 102 group 100/101 type resilient buckets 512 idle_timer 0"
1488 # migration of nexthop buckets - equal weights
1492 run_cmd "$IP nexthop add id 102 group 12/13 type resilient buckets 2 idle_timer 0"
1496 "id 102 group 12 type resilient buckets 2 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
1500 log_test $? 0 "Nexthop buckets updated when entry is deleted"
1503 run_cmd "$IP nexthop replace id 102 group 12/13 type resilient buckets 2 idle_timer 0"
1505 "id 102 group 12/13 type resilient buckets 2 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
1509 log_test $? 0 "Nexthop buckets updated after replace"
1514 # migration of nexthop buckets - unequal weights
1518 run_cmd "$IP nexthop add id 102 group 12,3/13,1 type resilient buckets 4 idle_timer 0"
1522 "id 102 group 12,3 type resilient buckets 4 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
1526 log_test $? 0 "Nexthop buckets updated when entry is deleted - nECMP"
1529 run_cmd "$IP nexthop replace id 102 group 12,3/13,1 type resilient buckets 4 idle_timer 0"
1531 "id 102 group 12,3/13 type resilient buckets 4 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
1535 log_test $? 0 "Nexthop buckets updated after replace - nECMP"
1766 echo "IPv4 large resilient group (128k buckets)"
2033 run_cmd "$IP nexthop add id 102 group 100/101 type resilient buckets 512 idle_timer 0"
2227 run_cmd "$IP nexthop add id 101 group 1 type resilient buckets 8"
2232 "id 101 group 1 type resilient buckets 8 idle_timer 120 unbalanced_timer 0 unbalanced_time 0"
2236 buckets 4 idle_timer 100 unbalanced_timer 5"
2239 "id 102 group 1 type resilient buckets 4 idle_timer 100 unbalanced_timer 5 unbalanced_time 0"
2242 run_cmd "$IP nexthop add id 103 group 1 type resilient buckets 0"
2243 log_test $? 2 "Add a nexthop group with 0 buckets"
2250 buckets 8 idle_timer 240 unbalanced_timer 80"
2253 "id 101 group 1 type resilient buckets 8 idle_timer 240 unbalanced_timer 80 unbalanced_time 0"
2259 "id 101 group 1 type resilient buckets 8 idle_timer 512 unbalanced_timer 80 unbalanced_time 0"
2265 "id 101 group 1 type resilient buckets 8 idle_timer 512 unbalanced_timer 256 unbalanced_time 0"
2271 "id 101 group 1 type resilient buckets 8 idle_timer 512 unbalanced_timer 256 unbalanced_time 0"
2280 run_cmd "$IP nexthop replace id 101 group 1 type resilient buckets 1024"
2281 log_test $? 2 "Replace number of nexthop buckets"
2284 "id 101 group 1 type resilient buckets 8 idle_timer 512 unbalanced_timer 256 unbalanced_time 0"
2288 # resilient nexthop buckets dump
2294 run_cmd "$IP nexthop add id 101 group 1/2 type resilient buckets 4"
2299 log_test $? 0 "Dump all nexthop buckets"
2303 log_test $? 0 "Dump all nexthop buckets in a group"
2309 log_test $? 0 "All nexthop buckets report a positive near-zero idle time"
2313 log_test $? 0 "Dump all nexthop buckets with a specific nexthop device"
2317 log_test $? 0 "Dump all nexthop buckets with a specific nexthop identifier"
2320 log_test $? 2 "Dump all nexthop buckets in a non-existent group"
2323 log_test $? 2 "Dump all nexthop buckets in a non-resilient group"
2326 log_test $? 255 "Dump all nexthop buckets using a non-existent device"
2329 log_test $? 255 "Dump all nexthop buckets with invalid 'groups' keyword"
2332 log_test $? 255 "Dump all nexthop buckets with invalid 'fdb' keyword"
2335 run_cmd "$IP nexthop add id $((2**32-1)) group 1/2 type resilient buckets 4"
2340 # resilient nexthop buckets get requests
2364 group 1/2 type resilient buckets 10
2379 # Check that increase in idle timer does not make buckets appear busy.
2388 log_test $? 0 "Buckets migrated after idle timer change"