Lines Matching refs:IP

178 	IP="ip -netns me"
181 $IP li add veth1 type veth peer name veth2
182 $IP li set veth1 up
183 $IP addr add 172.16.1.1/24 dev veth1
184 $IP -6 addr add 2001:db8:91::1/64 dev veth1 nodad
186 $IP li add veth3 type veth peer name veth4
187 $IP li set veth3 up
188 $IP addr add 172.16.2.1/24 dev veth3
189 $IP -6 addr add 2001:db8:92::1/64 dev veth3 nodad
191 $IP li set veth2 netns peer up
195 $IP li set veth4 netns peer up
260 out=$($IP nexthop ls ${nharg} 2>/dev/null)
272 out=$($IP nexthop bucket ${nharg} \
284 out=$($IP route ls match ${pfx} 2>/dev/null)
295 out=$($IP -6 route ls match ${pfx} 2>/dev/null | sed -e 's/pref medium//')
328 run_cmd "$IP nexthop add id $nhidstr via $ipstr$iter dev veth1"
344 run_cmd "$IP nexthop add id $grpidstr group $grpstr"
350 run_cmd "$IP nexthop list"
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"
369 run_cmd "$IP nexthop bucket list"
379 mpid=`($IP monitor $mtype > $tmpfile & echo $!) 2>/dev/null`
402 $IP nexthop help 2>&1 | grep -q fdb
411 $IP nexthop help 2>&1 | grep -q resilient
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"
439 run_cmd "$IP nexthop get id 102"
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…
479 run_cmd "$IP -6 ro add 2001:db8:101::1/128 nhid 66"
482 run_cmd "$IP -6 ro add 2001:db8:101::1/128 nhid 103"
485 run_cmd "$IP nexthop del id 61"
489 run_cmd "$IP nexthop del id 102"
495 $IP link del dev vx10
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"
519 run_cmd "$IP nexthop get id 102"
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…
559 run_cmd "$IP ro add 172.16.0.0/22 nhid 15"
562 run_cmd "$IP ro add 172.16.0.0/22 nhid 103"
565 run_cmd "$IP nexthop del id 12"
569 run_cmd "$IP nexthop del id 102"
575 $IP link del dev vx10
591 run_cmd "$IP nexthop add id 52 via 2001:db8:91::2 dev veth1"
599 run_cmd "$IP nexthop get id 52"
603 run_cmd "$IP nexthop del 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"
627 run_cmd "$IP li set dev veth1 down"
640 run_cmd "$IP link set dev veth1 up"
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"
643 run_cmd "$IP -6 addr add 2001:db8:91::1/64 dev veth1.10"
644 run_cmd "$IP -6 addr add 2001:db8:92::1/64 dev veth1.20"
645 run_cmd "$IP -6 neigh add 2001:db8:91::2 lladdr 00:11:22:33:44:55 dev veth1.10"
646 run_cmd "$IP -6 neigh add 2001:db8:92::2 lladdr 00:11:22:33:44:55 dev veth1.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"
650 run_cmd "$IP route add 2001:db8:101::1/128 nhid 102"
658 run_cmd "$IP nexthop replace id 102 group 101"
659 run_cmd "$IP route del 2001:db8:101::1/128"
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"
687 run_cmd "$IP link del veth1.20"
688 run_cmd "$IP nexthop flush"
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"
712 run_cmd "$IP nexthop del id 101"
716 $IP nexthop flush >/dev/null 2>&1
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"
731 run_cmd "$IP nexthop del id 63"
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"
742 run_cmd "$IP nexthop del id 63"
747 run_cmd "$IP li set dev veth1 down"
754 run_cmd "$IP li set dev veth1 up"
756 $IP nexthop flush >/dev/null 2>&1
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"
777 run_cmd "$IP nexthop flush groups"
781 run_cmd "$IP nexthop add id 105 group 62/63/72/73/64"
782 run_cmd "$IP li set veth1 down"
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"
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"
840 $IP nexthop flush >/dev/null 2>&1
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"
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"
878 run_cmd "$IP nexthop add id 81 via 2001:db8:91::2 dev veth1"
879 run_cmd "$IP ro add 2001:db8:101::1/128 nhid 81"
882 run_cmd "$IP ro delete 2001:db8:101::1/128 nhid 81"
885 run_cmd "$IP ro add 2001:db8:101::1/128 nhid 81"
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"
891 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 122"
898 run_cmd "$IP -6 nexthop add id 83 blackhole"
899 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 83"
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"
911 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 122"
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"
929 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 85"
933 run_cmd "$IP nexthop add id 123 group 81/85"
934 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 123"
941 run_cmd "$IP ro delete 2001:db8:101::1/128"
942 run_cmd "$IP nexthop add id 84 via 172.16.1.1 dev veth1"
943 run_cmd "$IP ro add 2001:db8:101::1/128 nhid 84"
946 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 81"
947 run_cmd "$IP nexthop replace id 81 via 172.16.1.1 dev veth1"
950 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 122"
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"
958 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 124"
961 run_cmd "$IP nexthop del id 88"
962 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 124"
965 run_cmd "$IP nexthop del id 87"
966 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 124"
969 run_cmd "$IP ro delete 2001:db8:101::1/128"
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"
973 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 124"
976 run_cmd "$IP nexthop replace id 88 via 2001:db8:92::2 dev veth3"
977 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 124"
980 run_cmd "$IP nexthop replace id 87 via 2001:db8:92::2 dev veth3"
981 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 124"
984 $IP nexthop flush >/dev/null 2>&1
989 run_cmd "$IP nexthop add id 86 via 2001:db8:91::2 dev veth1"
990 run_cmd "$IP ro add 2001:db8:101::1/128 nhid 81"
993 run_cmd "$IP ro add 2001:db8:101::2/128 nhid 86 from 2001:db8:91::1"
997 run_cmd "$IP ro add 2001:db8:101::2/128 nhid 86 congctl lock foo"
1001 $IP nexthop flush >/dev/null 2>&1
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"
1006 run_cmd "$IP -6 ro add default nhid 91"
1009 run_cmd "$IP -6 ro replace default nhid 93"
1030 $IP nexthop flush >/dev/null 2>&1
1046 $IP nexthop flush >/dev/null 2>&1
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"
1083 run_cmd "$IP route add 2001:db8:101::1 nhid 102"
1084 run_cmd "$IP route add 2001:db8:101::2 nhid 102"
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"
1137 run_cmd "$IP route add 2001:db8:101::1 nhid 102"
1138 run_cmd "$IP route add 2001:db8:101::2 nhid 102"
1172 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1180 run_cmd "$IP nexthop get id 12"
1184 run_cmd "$IP nexthop del id 12"
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"
1208 run_cmd "$IP li set dev veth1 down"
1215 run_cmd "$IP li set dev veth1 up"
1216 run_cmd "$IP nexthop add id 12 via 172.16.1.3 dev veth1"
1218 run_cmd "$IP route add 172.16.101.1/32 nhid 12"
1219 run_cmd "$IP route delete 172.16.101.1/32 dev veth1"
1224 run_cmd "$IP route delete 172.16.101.1/32 nhid 12"
1225 run_cmd "$IP nexthop del id 12"
1237 run_cmd "$IP nexthop add id 11 via 172.16.1.2 dev veth1"
1238 run_cmd "$IP nexthop add id 101 group 11"
1242 run_cmd "$IP nexthop get id 101"
1247 run_cmd "$IP nexthop del id 101"
1251 $IP nexthop flush >/dev/null 2>&1
1255 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1256 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1257 run_cmd "$IP nexthop add id 14 via 172.16.1.4 dev veth1"
1258 run_cmd "$IP nexthop add id 15 via 172.16.1.5 dev veth1"
1259 run_cmd "$IP nexthop add id 102 group 12/13/14/15"
1264 run_cmd "$IP nexthop del id 13"
1269 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1270 run_cmd "$IP nexthop add id 103 group 12/13,2/14,3/15,4"
1275 run_cmd "$IP nexthop del id 13"
1280 run_cmd "$IP li set dev veth1 down"
1287 run_cmd "$IP li set dev veth1 up"
1289 $IP nexthop flush >/dev/null 2>&1
1293 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1294 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1295 run_cmd "$IP nexthop add id 14 via 172.16.1.4 dev veth1"
1296 run_cmd "$IP nexthop add id 15 via 172.16.1.5 dev veth1"
1298 run_cmd "$IP nexthop add id 22 via 172.16.2.2 dev veth3"
1299 run_cmd "$IP nexthop add id 23 via 172.16.2.3 dev veth3"
1300 run_cmd "$IP nexthop add id 24 via 172.16.2.4 dev veth3"
1301 run_cmd "$IP nexthop add id 25 via 172.16.2.5 dev veth3"
1305 run_cmd "$IP nexthop add id 104 group 12"
1306 run_cmd "$IP nexthop add id 105 group 12"
1310 run_cmd "$IP nexthop flush groups"
1314 run_cmd "$IP nexthop add id 105 group 12/13/22/23/14"
1315 run_cmd "$IP li set veth1 down"
1319 run_cmd "$IP nexthop add id 106 group 105/24"
1325 run_cmd "$IP nexthop add id 31 blackhole"
1326 run_cmd "$IP nexthop add id 107 group 31"
1329 run_cmd "$IP nexthop add id 108 group 31/24"
1349 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1350 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1351 run_cmd "$IP nexthop add id 102 group 12/13 type resilient buckets 2 idle_timer 0"
1353 run_cmd "$IP nexthop del id 13"
1361 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1362 run_cmd "$IP nexthop replace id 102 group 12/13 type resilient buckets 2 idle_timer 0"
1370 $IP nexthop flush >/dev/null 2>&1
1375 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1376 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1377 run_cmd "$IP nexthop add id 102 group 12,3/13,1 type resilient buckets 4 idle_timer 0"
1379 run_cmd "$IP nexthop del id 13"
1387 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1388 run_cmd "$IP nexthop replace id 102 group 12,3/13,1 type resilient buckets 4 idle_timer 0"
1403 run_cmd "$IP nexthop add id 11 via ${lladdr} dev veth1"
1405 run_cmd "$IP ro add 172.16.101.1/32 nhid 11"
1410 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1411 run_cmd "$IP nexthop add id 101 group 11/12"
1413 run_cmd "$IP ro replace 172.16.101.1/32 nhid 101"
1418 run_cmd "$IP ro replace 172.16.101.1/32 via inet6 ${lladdr} dev veth1"
1422 run_cmd "$IP ro replace 172.16.101.1/32 via inet6 2001:db8:50::1 dev veth1"
1435 run_cmd "$IP nexthop add id 21 via 172.16.1.2 dev veth1"
1436 run_cmd "$IP ro add 172.16.101.1/32 nhid 21"
1440 run_cmd "$IP ro delete 172.16.101.1/32 nhid 21"
1446 run_cmd "$IP nexthop add id 22 via 172.16.1.2 dev veth1"
1447 run_cmd "$IP ro add 172.16.101.1/32 nhid 22 scope host"
1450 run_cmd "$IP nexthop replace id 22 dev veth3"
1451 run_cmd "$IP ro add 172.16.101.1/32 nhid 22 scope host"
1452 run_cmd "$IP nexthop replace id 22 via 172.16.2.2 dev veth3"
1456 run_cmd "$IP ro add 172.16.101.2/32 nhid 22 congctl lock foo"
1462 run_cmd "$IP nexthop replace id 21 via 172.16.1.2 dev veth1"
1463 run_cmd "$IP ro replace 172.16.101.1/32 nhid 21"
1467 run_cmd "$IP nexthop replace id 22 via 172.16.2.2 dev veth3"
1468 run_cmd "$IP nexthop add id 122 group 21/22"
1469 run_cmd "$IP ro replace 172.16.101.1/32 nhid 122"
1473 run_cmd "$IP ro delete 172.16.101.1/32 nhid 122"
1478 run_cmd "$IP nexthop add id 501 via 172.16.1.2 dev veth1"
1479 run_cmd "$IP ro add default nhid 501"
1480 run_cmd "$IP ro add default via 172.16.1.3 dev veth1 metric 20"
1485 run_cmd "$IP ro del default nhid 501"
1486 run_cmd "$IP ro del default via 172.16.1.3 dev veth1 metric 20"
1487 run_cmd "$IP ro add default via 172.16.1.2 dev veth1 metric 20"
1488 run_cmd "$IP nexthop replace id 501 via 172.16.1.3 dev veth1"
1489 run_cmd "$IP ro add default nhid 501 metric 20"
1493 run_cmd "$IP nexthop delete nhid 501"
1494 run_cmd "$IP ro del default"
1499 run_cmd "$IP nexthop add id 23 blackhole"
1500 run_cmd "$IP ro replace 172.16.101.1/32 nhid 23"
1504 run_cmd "$IP nexthop replace id 23 via 172.16.1.2 dev veth1"
1508 run_cmd "$IP nexthop replace id 23 blackhole"
1512 run_cmd "$IP ro replace 172.16.101.1/32 nhid 122"
1515 run_cmd "$IP nexthop replace id 122 group 23"
1519 run_cmd "$IP nexthop replace id 122 group 21/22"
1529 run_cmd "$IP nexthop add id 85 dev veth1"
1530 run_cmd "$IP ro replace 172.16.101.1/32 nhid 85"
1534 run_cmd "$IP nexthop add id 123 group 21/85"
1535 run_cmd "$IP ro replace 172.16.101.1/32 nhid 123"
1544 run_cmd "$IP nexthop add id 24 via ${lladdr} dev veth1"
1546 run_cmd "$IP ro replace 172.16.101.1/32 nhid 24"
1550 $IP neigh sh | grep -q "${lladdr} dev veth1"
1553 $IP neigh sh | grep 'dev veth1'
1556 $IP neigh sh | grep -q "172.16.101.1 dev eth1"
1559 $IP neigh sh | grep 'dev veth1'
1563 run_cmd "$IP nexthop add id 25 via 172.16.1.2 dev veth1"
1564 run_cmd "$IP nexthop add id 101 group 24/25"
1566 run_cmd "$IP ro replace 172.16.101.1/32 nhid 101"
1574 run_cmd "$IP ro replace 172.16.101.1/32 via inet6 ${lladdr} dev veth1"
1578 $IP neigh sh | grep -q "${lladdr} dev veth1"
1581 $IP neigh sh | grep 'dev veth1'
1584 $IP neigh sh | grep -q "172.16.101.1 dev eth1"
1587 $IP neigh sh | grep 'dev veth1'
1590 run_cmd "$IP ro del 172.16.101.1/32 via inet6 ${lladdr} dev veth1"
1591 run_cmd "$IP -4 ro add default via inet6 ${lladdr} dev veth1"
1598 run_cmd "$IP nexthop add id 51 encap mpls 101 via 172.16.1.2 dev veth1"
1603 run_cmd "$IP nexthop add id 52 encap mpls 102 via inet6 2001:db8:91::2 dev veth1"
1619 $IP nexthop flush >/dev/null 2>&1
1635 $IP nexthop flush >/dev/null 2>&1
1682 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
1683 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
1684 run_cmd "$IP nexthop add id 122 group 62/63"
1687 run_cmd "$IP -6 ro add 2001:db8:101::1/128 nhid 122"
1697 run_cmd "$IP nexthop add id 64 via 2001:db8:91::4 dev veth1"
1699 run_cmd "$IP nexthop replace id 122 group 62/64"
1707 run_cmd "$IP -6 ro del 2001:db8:101::1/128 nhid 122"
1709 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
1710 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
1711 run_cmd "$IP nexthop add id 122 group 62/63"
1714 run_cmd "$IP -6 ro add 2001:db8:101::1/128 nhid 122"
1724 run_cmd "$IP nexthop add id 64 via 2001:db8:91::4 dev veth1"
1726 run_cmd "$IP nexthop replace id 122 group 62/64"
1732 run_cmd "$IP nexthop del id 122"
1753 run_cmd "$IP nexthop add id 21 via 172.16.1.2 dev veth1"
1754 run_cmd "$IP nexthop add id 22 via 172.16.1.2 dev veth1"
1755 run_cmd "$IP nexthop add id 122 group 21/22"
1758 run_cmd "$IP ro add 172.16.101.1/32 nhid 122"
1769 run_cmd "$IP nexthop add id 23 via 172.16.1.3 dev veth1"
1771 run_cmd "$IP nexthop replace id 122 group 21/23"
1778 run_cmd "$IP ro del 172.16.101.1/32 nhid 122"
1781 run_cmd "$IP ro add 172.16.101.1/32 nhid 122"
1792 run_cmd "$IP nexthop replace id 122 group 21/22"
1798 run_cmd "$IP nexthop del id 122"
1808 $IP nexthop del id 100
1809 $IP nexthop add id 100 via 172.16.1.2 dev veth1
1816 $IP nexthop replace id 102 group 100/101
1836 run_cmd "$IP nexthop add id 100 via 172.16.1.2 dev veth1"
1837 run_cmd "$IP nexthop add id 101 via 172.16.2.2 dev veth3"
1838 run_cmd "$IP nexthop add id 102 group 100/101"
1839 run_cmd "$IP route add 172.16.101.1 nhid 102"
1840 run_cmd "$IP route add 172.16.101.2 nhid 102"
1864 $IP nexthop replace id 102 group 100/101 type resilient
1890 run_cmd "$IP nexthop add id 100 via 172.16.1.2 dev veth1"
1891 run_cmd "$IP nexthop add id 101 via 172.16.2.2 dev veth3"
1892 run_cmd "$IP nexthop add id 102 group 100/101 type resilient buckets 512 idle_timer 0"
1893 run_cmd "$IP route add 172.16.101.1 nhid 102"
1894 run_cmd "$IP route add 172.16.101.2 nhid 102"
1922 run_cmd "$IP nexthop ls"
1925 run_cmd "$IP nexthop get id 1"
1929 run_cmd "$IP nexthop add id 1"
1933 $IP li set veth1 down
1934 run_cmd "$IP nexthop add id 1 dev veth1"
1938 $IP li set veth1 up
1940 run_cmd "$IP nexthop add id 1 dev veth1"
1945 run_cmd "$IP nexthop add id 1 dev veth1"
1949 run_cmd "$IP nexthop add id 1 dev veth3"
1953 run_cmd "$IP nexthop add id 2 blackhole"
1957 run_cmd "$IP nexthop replace id 2 blackhole dev veth1"
1962 run_cmd "$IP link set dev lo down"
1966 run_cmd "$IP link set dev lo up"
1972 run_cmd "$IP nexthop add id 101 group 1"
1975 run_cmd "$IP nexthop add id 102 group 2"
1979 run_cmd "$IP nexthop add id 103 group 1/2"
1983 run_cmd "$IP nexthop replace id 2 dev veth3"
1984 run_cmd "$IP nexthop replace id 102 group 1/2"
1985 run_cmd "$IP nexthop replace id 2 blackhole"
1989 run_cmd "$IP nexthop add id 103 group 12"
1993 run_cmd "$IP nexthop add id 103 group 1/1"
1997 run_cmd "$IP nexthop replace id 2 group 1"
2001 run_cmd "$IP nexthop replace id 101 dev veth1"
2005 run_cmd "$IP nexthop add id 104 group 1 dev veth1"
2009 run_cmd "$IP nexthop add id 105 blackhole proto 99"
2010 run_cmd "$IP nexthop add id 106 blackhole proto 100"
2011 run_cmd "$IP nexthop add id 107 blackhole proto 99"
2012 run_cmd "$IP nexthop flush proto 99"
2016 run_cmd "$IP nexthop flush proto 100"
2019 run_cmd "$IP nexthop flush proto 100"
2022 run_cmd "$IP nexthop add id 104 group 1 blackhole"
2025 $IP nexthop flush >/dev/null 2>&1
2035 $IP -b $batch_file
2036 $IP nexthop flush >/dev/null 2>&1
2037 [[ $($IP nexthop | wc -l) -eq 0 ]]
2053 count=$($IP -j nexthop bucket ${nharg} ${selector} | jq length)
2075 run_cmd "$IP nexthop add id 1 dev veth1"
2081 run_cmd "$IP nexthop add id 101 group 1 type resilient buckets 8"
2084 run_cmd "$IP nexthop get id 101"
2089 run_cmd "$IP nexthop add id 102 group 1 type resilient
2091 run_cmd "$IP nexthop get id 102"
2096 run_cmd "$IP nexthop add id 103 group 1 type resilient buckets 0"
2103 run_cmd "$IP nexthop replace id 101 group 1 type resilient
2110 run_cmd "$IP nexthop replace id 101 group 1 type resilient idle_timer 512"
2116 run_cmd "$IP nexthop replace id 101 group 1 type resilient unbalanced_timer 256"
2122 run_cmd "$IP nexthop replace id 101 group 1 type resilient"
2128 run_cmd "$IP nexthop replace id 101 group 1"
2131 run_cmd "$IP nexthop replace id 101 group 1 type mpath"
2134 run_cmd "$IP nexthop replace id 101 group 1 type resilient buckets 1024"
2145 $IP nexthop flush >/dev/null 2>&1
2146 run_cmd "$IP nexthop add id 1 dev veth1"
2147 run_cmd "$IP nexthop add id 2 dev veth3"
2148 run_cmd "$IP nexthop add id 101 group 1/2 type resilient buckets 4"
2149 run_cmd "$IP nexthop add id 201 group 1/2"
2160 (( $($IP -j nexthop bucket list id 101 |
2173 run_cmd "$IP nexthop bucket list id 111"
2176 run_cmd "$IP nexthop bucket list id 201"
2179 run_cmd "$IP nexthop bucket list dev bla"
2182 run_cmd "$IP nexthop bucket list groups"
2185 run_cmd "$IP nexthop bucket list fdb"
2195 run_cmd "$IP nexthop bucket get id 101 index 999"
2198 run_cmd "$IP nexthop bucket get id 201 index 0"
2201 run_cmd "$IP nexthop bucket get id 999 index 0"
2208 $IP nexthop flush >/dev/null 2>&1
2210 run_cmd "$IP nexthop add id 1 dev veth1"
2211 run_cmd "$IP nexthop add id 2 dev veth3"
2212 run_cmd "$IP nexthop add id 101
2221 run_cmd "$IP nexthop replace id 101
2229 run_cmd "$IP nexthop replace id 101
2232 run_cmd "$IP nexthop replace id 101
2239 $IP nexthop flush >/dev/null 2>&1
2313 none) IP="ip -netns peer"; setup; exit 0;;