Lines Matching full:id
328 run_cmd "$IP nexthop add id $nhidstr via $ipstr$iter dev veth1"
329 check_nexthop "id $nhidstr" "id $nhidstr via $ipstr$iter dev veth1 scope link"
344 run_cmd "$IP nexthop add id $grpidstr group $grpstr"
345 check_nexthop "id $grpidstr" "id $grpidstr group $grpstr"
367 run_cmd "$IP nexthop add id 100 via $ipstr dev veth1"
368 run_cmd "$IP nexthop add id 1000 group 100 type resilient buckets $buckets"
432 run_cmd "$IP nexthop add id 61 via 2001:db8:91::2 fdb"
433 run_cmd "$IP nexthop add id 62 via 2001:db8:91::3 fdb"
434 run_cmd "$IP nexthop add id 102 group 61/62 fdb"
435 check_nexthop "id 102" "id 102 group 61/62 fdb"
439 run_cmd "$IP nexthop get id 102"
440 check_nexthop "id 102" "id 102 group 61/62 fdb"
441 log_test $? 0 "Get Fdb nexthop group by id"
444 run_cmd "$IP nexthop add id 63 via 2001:db8:91::4"
445 run_cmd "$IP nexthop add id 64 via 2001:db8:91::5"
446 run_cmd "$IP nexthop add id 103 group 63/64 fdb"
450 run_cmd "$IP nexthop add id 65 via 2001:db8:91::5 fdb"
451 run_cmd "$IP nexthop add id 66 via 2001:db8:91::6 fdb"
452 run_cmd "$IP nexthop add id 104 group 65/66"
456 run_cmd "$IP nexthop add id 67 blackhole fdb"
460 run_cmd "$IP nexthop add id 68 via 2001:db8:91::7 dev veth1 fdb"
464 run_cmd "$IP nexthop add id 68 via 2001:db8:91::7 onlink fdb"
468 run_cmd "$IP nexthop add id 69 encap mpls 101 via 2001:db8:91::8 dev veth1 fdb"
471 …run_cmd "$IP link add name vx10 type vxlan id 1010 local 2001:db8:91::9 remote 2001:db8:91::10 dst…
485 run_cmd "$IP nexthop del id 61"
489 run_cmd "$IP nexthop del id 102"
512 run_cmd "$IP nexthop add id 12 via 172.16.1.2 fdb"
513 run_cmd "$IP nexthop add id 13 via 172.16.1.3 fdb"
514 run_cmd "$IP nexthop add id 102 group 12/13 fdb"
515 check_nexthop "id 102" "id 102 group 12/13 fdb"
519 run_cmd "$IP nexthop get id 102"
520 check_nexthop "id 102" "id 102 group 12/13 fdb"
521 log_test $? 0 "Get Fdb nexthop group by id"
524 run_cmd "$IP nexthop add id 14 via 172.16.1.2"
525 run_cmd "$IP nexthop add id 15 via 172.16.1.3"
526 run_cmd "$IP nexthop add id 103 group 14/15 fdb"
530 run_cmd "$IP nexthop add id 16 via 172.16.1.2 fdb"
531 run_cmd "$IP nexthop add id 17 via 172.16.1.3 fdb"
532 run_cmd "$IP nexthop add id 104 group 14/15"
536 run_cmd "$IP nexthop add id 18 blackhole fdb"
540 run_cmd "$IP nexthop add id 16 via 172.16.1.2 dev veth1 fdb"
544 run_cmd "$IP nexthop add id 16 via 172.16.1.2 onlink fdb"
548 run_cmd "$IP nexthop add id 17 encap mpls 101 via 172.16.1.2 dev veth1 fdb"
551 …run_cmd "$IP link add name vx10 type vxlan id 1010 local 10.0.0.1 remote 10.0.0.2 dstport 4789 nol…
565 run_cmd "$IP nexthop del id 12"
569 run_cmd "$IP nexthop del id 102"
591 run_cmd "$IP nexthop add id 52 via 2001:db8:91::2 dev veth1"
593 log_test $rc 0 "Create nexthop with id, gw, dev"
599 run_cmd "$IP nexthop get id 52"
600 log_test $? 0 "Get nexthop by id"
601 check_nexthop "id 52" "id 52 via 2001:db8:91::2 dev veth1 scope link"
603 run_cmd "$IP nexthop del id 52"
604 log_test $? 0 "Delete nexthop by id"
605 check_nexthop "id 52" ""
611 run_cmd "$IP nexthop add id 52 via 2001:db8:92::3"
615 run_cmd "$IP nexthop add id 53 via 2001:db8:3::3 dev veth1"
619 run_cmd "$IP nexthop add id 53 via 2001:db8:3::3 dev veth1 onlink"
624 run_cmd "$IP -6 nexthop add id 55 via 2001:db8:91::3 dev veth1"
625 run_cmd "$IP nexthop add id 56 via 2001:db8:91::4 dev veth1"
626 run_cmd "$IP nexthop add id 57 via 2001:db8:91::5 dev veth1"
641 run_cmd "$IP link add veth1.10 link veth1 up type vlan id 10"
642 run_cmd "$IP link add veth1.20 link veth1 up type vlan id 20"
647 run_cmd "$IP nexthop add id 100 via 2001:db8:91::2 dev veth1.10"
648 run_cmd "$IP nexthop add id 101 via 2001:db8:92::2 dev veth1.20"
649 run_cmd "$IP nexthop add id 102 group 100"
658 run_cmd "$IP nexthop replace id 102 group 101"
662 run_cmd "$IP nexthop replace id 102 group 100/101"
669 run_cmd "$IP nexthop del id 102"
675 run_cmd "$IP nexthop del id 100"
702 run_cmd "$IP nexthop add id 61 via 2001:db8:91::2 dev veth1"
703 run_cmd "$IP nexthop add id 101 group 61"
707 run_cmd "$IP nexthop get id 101"
708 log_test $? 0 "Get nexthop group by id"
709 check_nexthop "id 101" "id 101 group 61"
712 run_cmd "$IP nexthop del id 101"
713 log_test $? 0 "Delete nexthop group by id"
714 check_nexthop "id 101" ""
717 check_nexthop "id 101" ""
722 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
723 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
724 run_cmd "$IP nexthop add id 64 via 2001:db8:91::4 dev veth1"
725 run_cmd "$IP nexthop add id 65 dev veth1"
726 run_cmd "$IP nexthop add id 102 group 62/63/64/65"
728 check_nexthop "id 102" "id 102 group 62/63/64/65"
731 run_cmd "$IP nexthop del id 63"
732 check_nexthop "id 102" "id 102 group 62/64/65"
736 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
737 run_cmd "$IP nexthop add id 103 group 62/63,2/64,3/65,4"
739 check_nexthop "id 103" "id 103 group 62/63,2/64,3/65,4"
742 run_cmd "$IP nexthop del id 63"
743 check_nexthop "id 103" "id 103 group 62/64,3/65,4"
760 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
761 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
762 run_cmd "$IP nexthop add id 64 via 2001:db8:91::4 dev veth1"
763 run_cmd "$IP nexthop add id 65 via 2001:db8:91::5 dev veth1"
765 run_cmd "$IP nexthop add id 72 via 2001:db8:92::2 dev veth3"
766 run_cmd "$IP nexthop add id 73 via 2001:db8:92::3 dev veth3"
767 run_cmd "$IP nexthop add id 74 via 2001:db8:92::4 dev veth3"
768 run_cmd "$IP nexthop add id 75 via 2001:db8:92::5 dev veth3"
772 run_cmd "$IP nexthop add id 104 group 62"
773 run_cmd "$IP nexthop add id 105 group 62"
774 check_nexthop "group" "id 104 group 62 id 105 group 62"
781 run_cmd "$IP nexthop add id 105 group 62/63/72/73/64"
783 check_nexthop "id 105" "id 105 group 72/73"
786 run_cmd "$IP nexthop add id 106 group 105/74"
792 run_cmd "$IP -6 nexthop add id 31 blackhole"
793 run_cmd "$IP nexthop add id 107 group 31"
796 run_cmd "$IP nexthop add id 108 group 31/24"
819 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
820 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
821 run_cmd "$IP nexthop add id 102 group 62/63 type resilient buckets 2 idle_timer 0"
823 run_cmd "$IP nexthop del id 63"
824 check_nexthop "id 102" \
825 "id 102 group 62 type resilient buckets 2 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
827 check_nexthop_bucket "list id 102" \
828 "id 102 index 0 nhid 62 id 102 index 1 nhid 62"
831 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
832 run_cmd "$IP nexthop replace id 102 group 62/63 type resilient buckets 2 idle_timer 0"
833 check_nexthop "id 102" \
834 "id 102 group 62/63 type resilient buckets 2 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
836 check_nexthop_bucket "list id 102" \
837 "id 102 index 0 nhid 63 id 102 index 1 nhid 62"
845 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
846 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
847 run_cmd "$IP nexthop add id 102 group 62,3/63,1 type resilient buckets 4 idle_timer 0"
849 run_cmd "$IP nexthop del id 63"
850 check_nexthop "id 102" \
851 "id 102 group 62,3 type resilient buckets 4 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
853 check_nexthop_bucket "list id 102" \
854 "id 102 index 0 nhid 62 id 102 index 1 nhid 62 id 102 index 2 nhid 62 id 102 index 3 nhid 62"
857 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
858 run_cmd "$IP nexthop replace id 102 group 62,3/63,1 type resilient buckets 4 idle_timer 0"
859 check_nexthop "id 102" \
860 "id 102 group 62,3/63 type resilient buckets 4 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
862 check_nexthop_bucket "list id 102" \
863 "id 102 index 0 nhid 63 id 102 index 1 nhid 62 id 102 index 2 nhid 62 id 102 index 3 nhid 62"
878 run_cmd "$IP nexthop add id 81 via 2001:db8:91::2 dev veth1"
889 run_cmd "$IP nexthop add id 82 via 2001:db8:92::2 dev veth3"
890 run_cmd "$IP nexthop add id 122 group 81/82"
898 run_cmd "$IP -6 nexthop add id 83 blackhole"
903 run_cmd "$IP nexthop replace id 83 via 2001:db8:91::2 dev veth1"
907 run_cmd "$IP -6 nexthop replace id 83 blackhole"
914 run_cmd "$IP nexthop replace id 122 group 83"
918 run_cmd "$IP nexthop replace id 122 group 81/82"
928 run_cmd "$IP -6 nexthop add id 85 dev veth1"
933 run_cmd "$IP nexthop add id 123 group 81/85"
942 run_cmd "$IP nexthop add id 84 via 172.16.1.1 dev veth1"
947 run_cmd "$IP nexthop replace id 81 via 172.16.1.1 dev veth1"
951 run_cmd "$IP nexthop replace id 81 via 172.16.1.1 dev veth1"
954 run_cmd "$IP nexthop add id 86 via 2001:db8:92::2 dev veth3"
955 run_cmd "$IP nexthop add id 87 via 172.16.1.1 dev veth1"
956 run_cmd "$IP nexthop add id 88 via 172.16.1.1 dev veth1"
957 run_cmd "$IP nexthop add id 124 group 86/87/88"
961 run_cmd "$IP nexthop del id 88"
965 run_cmd "$IP nexthop del id 87"
970 run_cmd "$IP nexthop add id 87 via 172.16.1.1 dev veth1"
971 run_cmd "$IP nexthop add id 88 via 172.16.1.1 dev veth1"
972 run_cmd "$IP nexthop replace id 124 group 86/87/88"
976 run_cmd "$IP nexthop replace id 88 via 2001:db8:92::2 dev veth3"
980 run_cmd "$IP nexthop replace id 87 via 2001:db8:92::2 dev veth3"
989 run_cmd "$IP nexthop add id 86 via 2001:db8:91::2 dev veth1"
1003 run_cmd "$IP nexthop add id 91 via 2001:db8:91::2 dev veth1"
1004 run_cmd "$IP nexthop add id 92 via 2001:db8:92::2 dev veth3"
1005 run_cmd "$IP nexthop add id 93 group 91/92"
1052 $IP nexthop del id 100
1053 $IP nexthop add id 100 via 2001:db8:91::2 dev veth1
1060 $IP nexthop replace id 102 group 100/101
1080 run_cmd "$IP nexthop add id 100 via 2001:db8:91::2 dev veth1"
1081 run_cmd "$IP nexthop add id 101 via 2001:db8:92::2 dev veth3"
1082 run_cmd "$IP nexthop add id 102 group 100/101"
1108 $IP nexthop replace id 102 group 100/101 type resilient
1134 run_cmd "$IP nexthop add id 100 via 2001:db8:91::2 dev veth1"
1135 run_cmd "$IP nexthop add id 101 via 2001:db8:92::2 dev veth3"
1136 run_cmd "$IP nexthop add id 102 group 100/101 type resilient buckets 512 idle_timer 0"
1172 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1174 log_test $rc 0 "Create nexthop with id, gw, dev"
1180 run_cmd "$IP nexthop get id 12"
1181 log_test $? 0 "Get nexthop by id"
1182 check_nexthop "id 12" "id 12 via 172.16.1.2 dev veth1 scope link"
1184 run_cmd "$IP nexthop del id 12"
1185 log_test $? 0 "Delete nexthop by id"
1186 check_nexthop "id 52" ""
1192 run_cmd "$IP nexthop add id 12 via 172.16.2.3"
1196 run_cmd "$IP nexthop add id 13 via 172.16.3.2 dev veth1"
1200 run_cmd "$IP nexthop add id 13 via 172.16.3.2 dev veth1 onlink"
1205 run_cmd "$IP nexthop add id 15 via 172.16.1.3 dev veth1"
1206 run_cmd "$IP nexthop add id 16 via 172.16.1.4 dev veth1"
1207 run_cmd "$IP nexthop add id 17 via 172.16.1.5 dev veth1"
1216 run_cmd "$IP nexthop add id 12 via 172.16.1.3 dev veth1"
1225 run_cmd "$IP nexthop del id 12"
1227 run_cmd "$IP nexthop add id 21 via 172.16.1.6 dev veth1"
1230 log_test $? 2 "Delete multipath route with only nh id based entry"
1232 run_cmd "$IP nexthop add id 22 via 172.16.1.6 dev veth1"
1253 run_cmd "$IP nexthop add id 11 via 172.16.1.2 dev veth1"
1254 run_cmd "$IP nexthop add id 101 group 11"
1258 run_cmd "$IP nexthop get id 101"
1259 log_test $? 0 "Get nexthop group by id"
1260 check_nexthop "id 101" "id 101 group 11"
1263 run_cmd "$IP nexthop del id 101"
1264 log_test $? 0 "Delete nexthop group by id"
1265 check_nexthop "id 101" ""
1271 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1272 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1273 run_cmd "$IP nexthop add id 14 via 172.16.1.4 dev veth1"
1274 run_cmd "$IP nexthop add id 15 via 172.16.1.5 dev veth1"
1275 run_cmd "$IP nexthop add id 102 group 12/13/14/15"
1277 check_nexthop "id 102" "id 102 group 12/13/14/15"
1280 run_cmd "$IP nexthop del id 13"
1281 check_nexthop "id 102" "id 102 group 12/14/15"
1285 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1286 run_cmd "$IP nexthop add id 103 group 12/13,2/14,3/15,4"
1288 check_nexthop "id 103" "id 103 group 12/13,2/14,3/15,4"
1291 run_cmd "$IP nexthop del id 13"
1292 check_nexthop "id 103" "id 103 group 12/14,3/15,4"
1309 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1310 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1311 run_cmd "$IP nexthop add id 14 via 172.16.1.4 dev veth1"
1312 run_cmd "$IP nexthop add id 15 via 172.16.1.5 dev veth1"
1314 run_cmd "$IP nexthop add id 22 via 172.16.2.2 dev veth3"
1315 run_cmd "$IP nexthop add id 23 via 172.16.2.3 dev veth3"
1316 run_cmd "$IP nexthop add id 24 via 172.16.2.4 dev veth3"
1317 run_cmd "$IP nexthop add id 25 via 172.16.2.5 dev veth3"
1321 run_cmd "$IP nexthop add id 104 group 12"
1322 run_cmd "$IP nexthop add id 105 group 12"
1323 check_nexthop "group" "id 104 group 12 id 105 group 12"
1330 run_cmd "$IP nexthop add id 105 group 12/13/22/23/14"
1332 check_nexthop "id 105" "id 105 group 22/23"
1335 run_cmd "$IP nexthop add id 106 group 105/24"
1341 run_cmd "$IP nexthop add id 31 blackhole"
1342 run_cmd "$IP nexthop add id 107 group 31"
1345 run_cmd "$IP nexthop add id 108 group 31/24"
1365 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1366 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1367 run_cmd "$IP nexthop add id 102 group 12/13 type resilient buckets 2 idle_timer 0"
1369 run_cmd "$IP nexthop del id 13"
1370 check_nexthop "id 102" \
1371 "id 102 group 12 type resilient buckets 2 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
1373 check_nexthop_bucket "list id 102" \
1374 "id 102 index 0 nhid 12 id 102 index 1 nhid 12"
1377 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1378 run_cmd "$IP nexthop replace id 102 group 12/13 type resilient buckets 2 idle_timer 0"
1379 check_nexthop "id 102" \
1380 "id 102 group 12/13 type resilient buckets 2 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
1382 check_nexthop_bucket "list id 102" \
1383 "id 102 index 0 nhid 13 id 102 index 1 nhid 12"
1391 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1392 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1393 run_cmd "$IP nexthop add id 102 group 12,3/13,1 type resilient buckets 4 idle_timer 0"
1395 run_cmd "$IP nexthop del id 13"
1396 check_nexthop "id 102" \
1397 "id 102 group 12,3 type resilient buckets 4 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
1399 check_nexthop_bucket "list id 102" \
1400 "id 102 index 0 nhid 12 id 102 index 1 nhid 12 id 102 index 2 nhid 12 id 102 index 3 nhid 12"
1403 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1404 run_cmd "$IP nexthop replace id 102 group 12,3/13,1 type resilient buckets 4 idle_timer 0"
1405 check_nexthop "id 102" \
1406 "id 102 group 12,3/13 type resilient buckets 4 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
1408 check_nexthop_bucket "list id 102" \
1409 "id 102 index 0 nhid 13 id 102 index 1 nhid 12 id 102 index 2 nhid 12 id 102 index 3 nhid 12"
1419 run_cmd "$IP nexthop add id 11 via ${lladdr} dev veth1"
1426 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1427 run_cmd "$IP nexthop add id 101 group 11/12"
1451 run_cmd "$IP nexthop add id 21 via 172.16.1.2 dev veth1"
1462 run_cmd "$IP nexthop add id 22 via 172.16.1.2 dev veth1"
1466 run_cmd "$IP nexthop replace id 22 dev veth3"
1468 run_cmd "$IP nexthop replace id 22 via 172.16.2.2 dev veth3"
1478 run_cmd "$IP nexthop replace id 21 via 172.16.1.2 dev veth1"
1483 run_cmd "$IP nexthop replace id 22 via 172.16.2.2 dev veth3"
1484 run_cmd "$IP nexthop add id 122 group 21/22"
1494 run_cmd "$IP nexthop add id 501 via 172.16.1.2 dev veth1"
1504 run_cmd "$IP nexthop replace id 501 via 172.16.1.3 dev veth1"
1515 run_cmd "$IP nexthop add id 23 blackhole"
1520 run_cmd "$IP nexthop replace id 23 via 172.16.1.2 dev veth1"
1524 run_cmd "$IP nexthop replace id 23 blackhole"
1531 run_cmd "$IP nexthop replace id 122 group 23"
1535 run_cmd "$IP nexthop replace id 122 group 21/22"
1545 run_cmd "$IP nexthop add id 85 dev veth1"
1550 run_cmd "$IP nexthop add id 123 group 21/85"
1560 run_cmd "$IP nexthop add id 24 via ${lladdr} dev veth1"
1579 run_cmd "$IP nexthop add id 25 via 172.16.1.2 dev veth1"
1580 run_cmd "$IP nexthop add id 101 group 24/25"
1614 run_cmd "$IP nexthop add id 51 encap mpls 101 via 172.16.1.2 dev veth1"
1616 check_nexthop "id 51" "id 51 encap mpls 101 via 172.16.1.2 dev veth1 scope link"
1619 run_cmd "$IP nexthop add id 52 encap mpls 102 via inet6 2001:db8:91::2 dev veth1"
1621 check_nexthop "id 52" "id 52 encap mpls 102 via 2001:db8:91::2 dev veth1 scope link"
1698 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
1699 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
1700 run_cmd "$IP nexthop add id 122 group 62/63"
1713 run_cmd "$IP nexthop add id 64 via 2001:db8:91::4 dev veth1"
1715 run_cmd "$IP nexthop replace id 122 group 62/64"
1725 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
1726 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
1727 run_cmd "$IP nexthop add id 122 group 62/63"
1740 run_cmd "$IP nexthop add id 64 via 2001:db8:91::4 dev veth1"
1742 run_cmd "$IP nexthop replace id 122 group 62/64"
1748 run_cmd "$IP nexthop del id 122"
1769 run_cmd "$IP nexthop add id 21 via 172.16.1.2 dev veth1"
1770 run_cmd "$IP nexthop add id 22 via 172.16.1.2 dev veth1"
1771 run_cmd "$IP nexthop add id 122 group 21/22"
1785 run_cmd "$IP nexthop add id 23 via 172.16.1.3 dev veth1"
1787 run_cmd "$IP nexthop replace id 122 group 21/23"
1808 run_cmd "$IP nexthop replace id 122 group 21/22"
1814 run_cmd "$IP nexthop del id 122"
1824 $IP nexthop del id 100
1825 $IP nexthop add id 100 via 172.16.1.2 dev veth1
1832 $IP nexthop replace id 102 group 100/101
1852 run_cmd "$IP nexthop add id 100 via 172.16.1.2 dev veth1"
1853 run_cmd "$IP nexthop add id 101 via 172.16.2.2 dev veth3"
1854 run_cmd "$IP nexthop add id 102 group 100/101"
1880 $IP nexthop replace id 102 group 100/101 type resilient
1906 run_cmd "$IP nexthop add id 100 via 172.16.1.2 dev veth1"
1907 run_cmd "$IP nexthop add id 101 via 172.16.2.2 dev veth3"
1908 run_cmd "$IP nexthop add id 102 group 100/101 type resilient buckets 512 idle_timer 0"
1941 run_cmd "$IP nexthop get id 1"
1942 log_test $? 2 "Nexthop get on non-existent id"
1945 run_cmd "$IP nexthop add id 1"
1950 run_cmd "$IP nexthop add id 1 dev veth1"
1956 run_cmd "$IP nexthop add id 1 dev veth1"
1961 run_cmd "$IP nexthop add id 1 dev veth1"
1964 # create nh with duplicate id
1965 run_cmd "$IP nexthop add id 1 dev veth3"
1966 log_test $? 2 "Nexthop with duplicate id"
1969 run_cmd "$IP nexthop add id 2 blackhole"
1973 run_cmd "$IP nexthop replace id 2 blackhole dev veth1"
1979 check_nexthop "id 2" "id 2 blackhole"
1988 run_cmd "$IP nexthop add id 101 group 1"
1991 run_cmd "$IP nexthop add id 102 group 2"
1995 run_cmd "$IP nexthop add id 103 group 1/2"
1999 run_cmd "$IP nexthop replace id 2 dev veth3"
2000 run_cmd "$IP nexthop replace id 102 group 1/2"
2001 run_cmd "$IP nexthop replace id 2 blackhole"
2005 run_cmd "$IP nexthop add id 103 group 12"
2009 run_cmd "$IP nexthop add id 103 group 1/1"
2013 run_cmd "$IP nexthop replace id 2 group 1"
2017 run_cmd "$IP nexthop replace id 101 dev veth1"
2021 run_cmd "$IP nexthop add id 104 group 1 dev veth1"
2025 run_cmd "$IP nexthop add id 105 blackhole proto 99"
2026 run_cmd "$IP nexthop add id 106 blackhole proto 100"
2027 run_cmd "$IP nexthop add id 107 blackhole proto 99"
2029 check_nexthop "id 105" ""
2030 check_nexthop "id 106" "id 106 blackhole proto 100"
2031 check_nexthop "id 107" ""
2033 check_nexthop "id 106" ""
2038 run_cmd "$IP nexthop add id 104 group 1 blackhole"
2048 echo "nexthop add id $i blackhole" >> $batch_file
2091 run_cmd "$IP nexthop add id 1 dev veth1"
2097 run_cmd "$IP nexthop add id 101 group 1 type resilient buckets 8"
2100 run_cmd "$IP nexthop get id 101"
2101 check_nexthop "id 101" \
2102 "id 101 group 1 type resilient buckets 8 idle_timer 120 unbalanced_timer 0 unbalanced_time 0"
2105 run_cmd "$IP nexthop add id 102 group 1 type resilient
2107 run_cmd "$IP nexthop get id 102"
2108 check_nexthop "id 102" \
2109 "id 102 group 1 type resilient buckets 4 idle_timer 100 unbalanced_timer 5 unbalanced_time 0"
2112 run_cmd "$IP nexthop add id 103 group 1 type resilient buckets 0"
2119 run_cmd "$IP nexthop replace id 101 group 1 type resilient
2122 check_nexthop "id 101" \
2123 "id 101 group 1 type resilient buckets 8 idle_timer 240 unbalanced_timer 80 unbalanced_time 0"
2126 run_cmd "$IP nexthop replace id 101 group 1 type resilient idle_timer 512"
2128 check_nexthop "id 101" \
2129 "id 101 group 1 type resilient buckets 8 idle_timer 512 unbalanced_timer 80 unbalanced_time 0"
2132 run_cmd "$IP nexthop replace id 101 group 1 type resilient unbalanced_timer 256"
2134 check_nexthop "id 101" \
2135 "id 101 group 1 type resilient buckets 8 idle_timer 512 unbalanced_timer 256 unbalanced_time 0"
2138 run_cmd "$IP nexthop replace id 101 group 1 type resilient"
2140 check_nexthop "id 101" \
2141 "id 101 group 1 type resilient buckets 8 idle_timer 512 unbalanced_timer 256 unbalanced_time 0"
2144 run_cmd "$IP nexthop replace id 101 group 1"
2147 run_cmd "$IP nexthop replace id 101 group 1 type mpath"
2150 run_cmd "$IP nexthop replace id 101 group 1 type resilient buckets 1024"
2153 check_nexthop "id 101" \
2154 "id 101 group 1 type resilient buckets 8 idle_timer 512 unbalanced_timer 256 unbalanced_time 0"
2162 run_cmd "$IP nexthop add id 1 dev veth1"
2163 run_cmd "$IP nexthop add id 2 dev veth3"
2164 run_cmd "$IP nexthop add id 101 group 1/2 type resilient buckets 4"
2165 run_cmd "$IP nexthop add id 201 group 1/2"
2168 "id 101 index 0 nhid 2 id 101 index 1 nhid 2 id 101 index 2 nhid 1 id 101 index 3 nhid 1"
2171 check_nexthop_bucket "list id 101" \
2172 "id 101 index 0 nhid 2 id 101 index 1 nhid 2 id 101 index 2 nhid 1 id 101 index 3 nhid 1"
2176 (( $($IP -j nexthop bucket list id 101 |
2182 "id 101 index 2 nhid 1 id 101 index 3 nhid 1"
2186 "id 101 index 0 nhid 2 id 101 index 1 nhid 2"
2189 run_cmd "$IP nexthop bucket list id 111"
2192 run_cmd "$IP nexthop bucket list id 201"
2208 check_nexthop_bucket "get id 101 index 0" "id 101 index 0 nhid 2"
2211 run_cmd "$IP nexthop bucket get id 101 index 999"
2214 run_cmd "$IP nexthop bucket get id 201 index 0"
2217 run_cmd "$IP nexthop bucket get id 999 index 0"
2226 run_cmd "$IP nexthop add id 1 dev veth1"
2227 run_cmd "$IP nexthop add id 2 dev veth3"
2228 run_cmd "$IP nexthop add id 101
2232 check_nexthop_buckets_balance "list id 101" \
2237 run_cmd "$IP nexthop replace id 101
2239 check_nexthop_buckets_balance "list id 101" \
2245 run_cmd "$IP nexthop replace id 101
2248 run_cmd "$IP nexthop replace id 101
2250 check_nexthop_buckets_balance "list id 101" \
2304 if [ "$(id -u)" -ne 0 ];then