Lines Matching refs:IP
180 IP="ip -netns me"
183 $IP li add veth1 type veth peer name veth2
184 $IP li set veth1 up
185 $IP addr add 172.16.1.1/24 dev veth1
186 $IP -6 addr add 2001:db8:91::1/64 dev veth1 nodad
188 $IP li add veth3 type veth peer name veth4
189 $IP li set veth3 up
190 $IP addr add 172.16.2.1/24 dev veth3
191 $IP -6 addr add 2001:db8:92::1/64 dev veth3 nodad
193 $IP li set veth2 netns peer up
197 $IP li set veth4 netns peer up
262 out=$($IP nexthop ls ${nharg} 2>/dev/null)
274 out=$($IP nexthop bucket ${nharg} \
286 out=$($IP route ls match ${pfx} 2>/dev/null)
297 out=$($IP -6 route ls match ${pfx} 2>/dev/null | sed -e 's/pref medium//')
330 run_cmd "$IP nexthop add id $nhidstr via $ipstr$iter dev veth1"
346 run_cmd "$IP nexthop add id $grpidstr group $grpstr"
352 run_cmd "$IP nexthop list"
369 run_cmd "$IP nexthop add id 100 via $ipstr dev veth1"
370 run_cmd "$IP nexthop add id 1000 group 100 type resilient buckets $buckets"
371 run_cmd "$IP nexthop bucket list"
380 if out=$($IP -j route get "$pfx" | jq -re ".[0].dev"); then
402 mpid=`($IP monitor $mtype > $tmpfile & echo $!) 2>/dev/null`
425 $IP nexthop help 2>&1 | grep -q fdb
434 $IP nexthop help 2>&1 | grep -q resilient
455 run_cmd "$IP nexthop add id 61 via 2001:db8:91::2 fdb"
456 run_cmd "$IP nexthop add id 62 via 2001:db8:91::3 fdb"
457 run_cmd "$IP nexthop add id 102 group 61/62 fdb"
462 run_cmd "$IP nexthop get id 102"
467 run_cmd "$IP nexthop add id 63 via 2001:db8:91::4"
468 run_cmd "$IP nexthop add id 64 via 2001:db8:91::5"
469 run_cmd "$IP nexthop add id 103 group 63/64 fdb"
473 run_cmd "$IP nexthop add id 65 via 2001:db8:91::5 fdb"
474 run_cmd "$IP nexthop add id 66 via 2001:db8:91::6 fdb"
475 run_cmd "$IP nexthop add id 104 group 65/66"
479 run_cmd "$IP nexthop add id 67 blackhole fdb"
483 run_cmd "$IP nexthop add id 68 via 2001:db8:91::7 dev veth1 fdb"
487 run_cmd "$IP nexthop add id 68 via 2001:db8:91::7 onlink fdb"
491 run_cmd "$IP nexthop add id 69 encap mpls 101 via 2001:db8:91::8 dev veth1 fdb"
494 …run_cmd "$IP link add name vx10 type vxlan id 1010 local 2001:db8:91::9 remote 2001:db8:91::10 dst…
502 run_cmd "$IP -6 ro add 2001:db8:101::1/128 nhid 66"
505 run_cmd "$IP -6 ro add 2001:db8:101::1/128 nhid 103"
508 run_cmd "$IP nexthop del id 61"
512 run_cmd "$IP nexthop del id 102"
518 $IP link del dev vx10
535 run_cmd "$IP nexthop add id 12 via 172.16.1.2 fdb"
536 run_cmd "$IP nexthop add id 13 via 172.16.1.3 fdb"
537 run_cmd "$IP nexthop add id 102 group 12/13 fdb"
542 run_cmd "$IP nexthop get id 102"
547 run_cmd "$IP nexthop add id 14 via 172.16.1.2"
548 run_cmd "$IP nexthop add id 15 via 172.16.1.3"
549 run_cmd "$IP nexthop add id 103 group 14/15 fdb"
553 run_cmd "$IP nexthop add id 16 via 172.16.1.2 fdb"
554 run_cmd "$IP nexthop add id 17 via 172.16.1.3 fdb"
555 run_cmd "$IP nexthop add id 104 group 14/15"
559 run_cmd "$IP nexthop add id 18 blackhole fdb"
563 run_cmd "$IP nexthop add id 16 via 172.16.1.2 dev veth1 fdb"
567 run_cmd "$IP nexthop add id 16 via 172.16.1.2 onlink fdb"
571 run_cmd "$IP nexthop add id 17 encap mpls 101 via 172.16.1.2 dev veth1 fdb"
574 …run_cmd "$IP link add name vx10 type vxlan id 1010 local 10.0.0.1 remote 10.0.0.2 dstport 4789 nol…
582 run_cmd "$IP ro add 172.16.0.0/22 nhid 15"
585 run_cmd "$IP ro add 172.16.0.0/22 nhid 103"
588 run_cmd "$IP nexthop del id 12"
592 run_cmd "$IP nexthop del id 102"
598 $IP link del dev vx10
620 run_cmd "$IP nexthop add id 1 via ${gws["veth1"]} dev veth1"
621 run_cmd "$IP nexthop add id 2 via ${gws["veth3"]} dev veth3"
622 run_cmd "$IP nexthop add id 1001 group 1/2"
623 run_cmd "$IP ro add 172.16.101.0/24 nhid 1001"
638 run_cmd "$IP neigh add ${gws[$dev]} dev $dev nud failed"
643 run_cmd "$IP neigh del ${gws[$dev]} dev $dev"
647 run_cmd "$IP neigh add 172.16.1.2 dev veth1 nud incomplete"
648 run_cmd "$IP neigh add 172.16.2.2 dev veth3 nud incomplete"
649 run_cmd "$IP route get 172.16.101.1"
673 run_cmd "$IP nexthop add id 1 via ${gws["veth1"]} dev veth1"
674 run_cmd "$IP nexthop add id 2 via ${gws["veth3"]} dev veth3"
675 run_cmd "$IP nexthop add id 1001 group 1/2"
676 run_cmd "$IP ro add 2001:db8:101::/64 nhid 1001"
691 run_cmd "$IP neigh add ${gws[$dev]} dev $dev nud failed"
696 run_cmd "$IP neigh del ${gws[$dev]} dev $dev"
700 run_cmd "$IP neigh add 2001:db8:91::2 dev veth1 nud incomplete"
701 run_cmd "$IP neigh add 2001:db8:92::2 dev veth3 nud incomplete"
702 run_cmd "$IP route get 2001:db8:101::1"
720 run_cmd "$IP nexthop add id 52 via 2001:db8:91::2 dev veth1"
728 run_cmd "$IP nexthop get id 52"
732 run_cmd "$IP nexthop del id 52"
740 run_cmd "$IP nexthop add id 52 via 2001:db8:92::3"
744 run_cmd "$IP nexthop add id 53 via 2001:db8:3::3 dev veth1"
748 run_cmd "$IP nexthop add id 53 via 2001:db8:3::3 dev veth1 onlink"
753 run_cmd "$IP -6 nexthop add id 55 via 2001:db8:91::3 dev veth1"
754 run_cmd "$IP nexthop add id 56 via 2001:db8:91::4 dev veth1"
755 run_cmd "$IP nexthop add id 57 via 2001:db8:91::5 dev veth1"
756 run_cmd "$IP li set dev veth1 down"
769 run_cmd "$IP link set dev veth1 up"
770 run_cmd "$IP link add veth1.10 link veth1 up type vlan id 10"
771 run_cmd "$IP link add veth1.20 link veth1 up type vlan id 20"
772 run_cmd "$IP -6 addr add 2001:db8:91::1/64 dev veth1.10"
773 run_cmd "$IP -6 addr add 2001:db8:92::1/64 dev veth1.20"
774 run_cmd "$IP -6 neigh add 2001:db8:91::2 lladdr 00:11:22:33:44:55 dev veth1.10"
775 run_cmd "$IP -6 neigh add 2001:db8:92::2 lladdr 00:11:22:33:44:55 dev veth1.20"
776 run_cmd "$IP nexthop add id 100 via 2001:db8:91::2 dev veth1.10"
777 run_cmd "$IP nexthop add id 101 via 2001:db8:92::2 dev veth1.20"
778 run_cmd "$IP nexthop add id 102 group 100"
779 run_cmd "$IP route add 2001:db8:101::1/128 nhid 102"
787 run_cmd "$IP nexthop replace id 102 group 101"
788 run_cmd "$IP route del 2001:db8:101::1/128"
791 run_cmd "$IP nexthop replace id 102 group 100/101"
798 run_cmd "$IP nexthop del id 102"
804 run_cmd "$IP nexthop del id 100"
816 run_cmd "$IP link del veth1.20"
817 run_cmd "$IP nexthop flush"
831 run_cmd "$IP nexthop add id 61 via 2001:db8:91::2 dev veth1"
832 run_cmd "$IP nexthop add id 101 group 61"
836 run_cmd "$IP nexthop get id 101"
841 run_cmd "$IP nexthop del id 101"
845 $IP nexthop flush >/dev/null 2>&1
851 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
852 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
853 run_cmd "$IP nexthop add id 64 via 2001:db8:91::4 dev veth1"
854 run_cmd "$IP nexthop add id 65 dev veth1"
855 run_cmd "$IP nexthop add id 102 group 62/63/64/65"
860 run_cmd "$IP nexthop del id 63"
865 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
866 run_cmd "$IP nexthop add id 103 group 62/63,2/64,3/65,4"
871 run_cmd "$IP nexthop del id 63"
876 run_cmd "$IP li set dev veth1 down"
883 run_cmd "$IP li set dev veth1 up"
885 $IP nexthop flush >/dev/null 2>&1
889 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
890 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
891 run_cmd "$IP nexthop add id 64 via 2001:db8:91::4 dev veth1"
892 run_cmd "$IP nexthop add id 65 via 2001:db8:91::5 dev veth1"
894 run_cmd "$IP nexthop add id 72 via 2001:db8:92::2 dev veth3"
895 run_cmd "$IP nexthop add id 73 via 2001:db8:92::3 dev veth3"
896 run_cmd "$IP nexthop add id 74 via 2001:db8:92::4 dev veth3"
897 run_cmd "$IP nexthop add id 75 via 2001:db8:92::5 dev veth3"
901 run_cmd "$IP nexthop add id 104 group 62"
902 run_cmd "$IP nexthop add id 105 group 62"
906 run_cmd "$IP nexthop flush groups"
910 run_cmd "$IP nexthop add id 105 group 62/63/72/73/64"
911 run_cmd "$IP li set veth1 down"
915 run_cmd "$IP nexthop add id 106 group 105/74"
921 run_cmd "$IP -6 nexthop add id 31 blackhole"
922 run_cmd "$IP nexthop add id 107 group 31"
925 run_cmd "$IP nexthop add id 108 group 31/24"
948 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
949 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
950 run_cmd "$IP nexthop add id 102 group 62/63 type resilient buckets 2 idle_timer 0"
952 run_cmd "$IP nexthop del id 63"
960 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
961 run_cmd "$IP nexthop replace id 102 group 62/63 type resilient buckets 2 idle_timer 0"
969 $IP nexthop flush >/dev/null 2>&1
974 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
975 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
976 run_cmd "$IP nexthop add id 102 group 62,3/63,1 type resilient buckets 4 idle_timer 0"
978 run_cmd "$IP nexthop del id 63"
986 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
987 run_cmd "$IP nexthop replace id 102 group 62,3/63,1 type resilient buckets 4 idle_timer 0"
1007 run_cmd "$IP nexthop add id 81 via 2001:db8:91::2 dev veth1"
1008 run_cmd "$IP ro add 2001:db8:101::1/128 nhid 81"
1011 run_cmd "$IP ro delete 2001:db8:101::1/128 nhid 81"
1014 run_cmd "$IP ro add 2001:db8:101::1/128 nhid 81"
1018 run_cmd "$IP nexthop add id 82 via 2001:db8:92::2 dev veth3"
1019 run_cmd "$IP nexthop add id 122 group 81/82"
1020 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 122"
1027 run_cmd "$IP -6 nexthop add id 83 blackhole"
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"
1057 run_cmd "$IP -6 nexthop add id 85 dev veth1"
1058 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 85"
1062 run_cmd "$IP nexthop add id 123 group 81/85"
1063 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 123"
1070 run_cmd "$IP ro delete 2001:db8:101::1/128"
1071 run_cmd "$IP nexthop add id 84 via 172.16.1.1 dev veth1"
1072 run_cmd "$IP ro add 2001:db8:101::1/128 nhid 84"
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"
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"
1083 run_cmd "$IP nexthop add id 86 via 2001:db8:92::2 dev veth3"
1084 run_cmd "$IP nexthop add id 87 via 172.16.1.1 dev veth1"
1085 run_cmd "$IP nexthop add id 88 via 172.16.1.1 dev veth1"
1086 run_cmd "$IP nexthop add id 124 group 86/87/88"
1087 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 124"
1090 run_cmd "$IP nexthop del id 88"
1091 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 124"
1094 run_cmd "$IP nexthop del id 87"
1095 run_cmd "$IP ro replace 2001:db8:101::1/128 nhid 124"
1098 run_cmd "$IP ro delete 2001:db8:101::1/128"
1099 run_cmd "$IP nexthop add id 87 via 172.16.1.1 dev veth1"
1100 run_cmd "$IP nexthop add id 88 via 172.16.1.1 dev veth1"
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"
1113 $IP nexthop flush >/dev/null 2>&1
1118 run_cmd "$IP nexthop add id 86 via 2001:db8:91::2 dev veth1"
1119 run_cmd "$IP ro add 2001:db8:101::1/128 nhid 81"
1122 run_cmd "$IP ro add 2001:db8:101::2/128 nhid 86 from 2001:db8:91::1"
1126 run_cmd "$IP ro add 2001:db8:101::2/128 nhid 86 congctl lock foo"
1130 $IP nexthop flush >/dev/null 2>&1
1132 run_cmd "$IP nexthop add id 91 via 2001:db8:91::2 dev veth1"
1133 run_cmd "$IP nexthop add id 92 via 2001:db8:92::2 dev veth3"
1134 run_cmd "$IP nexthop add id 93 group 91/92"
1135 run_cmd "$IP -6 ro add default nhid 91"
1138 run_cmd "$IP -6 ro replace default nhid 93"
1159 $IP nexthop flush >/dev/null 2>&1
1175 $IP nexthop flush >/dev/null 2>&1
1181 $IP nexthop del id 100
1182 $IP nexthop add id 100 via 2001:db8:91::2 dev veth1
1189 $IP nexthop replace id 102 group 100/101
1209 run_cmd "$IP nexthop add id 100 via 2001:db8:91::2 dev veth1"
1210 run_cmd "$IP nexthop add id 101 via 2001:db8:92::2 dev veth3"
1211 run_cmd "$IP nexthop add id 102 group 100/101"
1212 run_cmd "$IP route add 2001:db8:101::1 nhid 102"
1213 run_cmd "$IP route add 2001:db8:101::2 nhid 102"
1237 $IP nexthop replace id 102 group 100/101 type resilient
1263 run_cmd "$IP nexthop add id 100 via 2001:db8:91::2 dev veth1"
1264 run_cmd "$IP nexthop add id 101 via 2001:db8:92::2 dev veth3"
1265 run_cmd "$IP nexthop add id 102 group 100/101 type resilient buckets 512 idle_timer 0"
1266 run_cmd "$IP route add 2001:db8:101::1 nhid 102"
1267 run_cmd "$IP route add 2001:db8:101::2 nhid 102"
1301 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1309 run_cmd "$IP nexthop get id 12"
1313 run_cmd "$IP nexthop del id 12"
1321 run_cmd "$IP nexthop add id 12 via 172.16.2.3"
1325 run_cmd "$IP nexthop add id 13 via 172.16.3.2 dev veth1"
1329 run_cmd "$IP nexthop add id 13 via 172.16.3.2 dev veth1 onlink"
1334 run_cmd "$IP nexthop add id 15 via 172.16.1.3 dev veth1"
1335 run_cmd "$IP nexthop add id 16 via 172.16.1.4 dev veth1"
1336 run_cmd "$IP nexthop add id 17 via 172.16.1.5 dev veth1"
1337 run_cmd "$IP li set dev veth1 down"
1344 run_cmd "$IP li set dev veth1 up"
1345 run_cmd "$IP nexthop add id 12 via 172.16.1.3 dev veth1"
1347 run_cmd "$IP route add 172.16.101.1/32 nhid 12"
1348 run_cmd "$IP route delete 172.16.101.1/32 dev veth1"
1353 run_cmd "$IP route delete 172.16.101.1/32 nhid 12"
1354 run_cmd "$IP nexthop del id 12"
1356 run_cmd "$IP nexthop add id 21 via 172.16.1.6 dev veth1"
1357 run_cmd "$IP ro add 172.16.101.0/24 nhid 21"
1358 …run_cmd "$IP ro del 172.16.101.0/24 nexthop via 172.16.1.7 dev veth1 nexthop via 172.16.1.8 dev ve…
1361 run_cmd "$IP nexthop add id 22 via 172.16.1.6 dev veth1"
1362 run_cmd "$IP ro add 172.16.102.0/24 nhid 22"
1363 run_cmd "$IP ro del 172.16.102.0/24 dev veth1"
1366 run_cmd "$IP ro del 172.16.102.0/24 via 172.16.1.6"
1369 run_cmd "$IP ro del 172.16.102.0/24"
1382 run_cmd "$IP nexthop add id 11 via 172.16.1.2 dev veth1"
1383 run_cmd "$IP nexthop add id 101 group 11"
1387 run_cmd "$IP nexthop get id 101"
1392 run_cmd "$IP nexthop del id 101"
1396 $IP nexthop flush >/dev/null 2>&1
1400 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1401 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1402 run_cmd "$IP nexthop add id 14 via 172.16.1.4 dev veth1"
1403 run_cmd "$IP nexthop add id 15 via 172.16.1.5 dev veth1"
1404 run_cmd "$IP nexthop add id 102 group 12/13/14/15"
1409 run_cmd "$IP nexthop del id 13"
1414 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1415 run_cmd "$IP nexthop add id 103 group 12/13,2/14,3/15,4"
1420 run_cmd "$IP nexthop del id 13"
1425 run_cmd "$IP li set dev veth1 down"
1432 run_cmd "$IP li set dev veth1 up"
1434 $IP nexthop flush >/dev/null 2>&1
1438 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1439 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1440 run_cmd "$IP nexthop add id 14 via 172.16.1.4 dev veth1"
1441 run_cmd "$IP nexthop add id 15 via 172.16.1.5 dev veth1"
1443 run_cmd "$IP nexthop add id 22 via 172.16.2.2 dev veth3"
1444 run_cmd "$IP nexthop add id 23 via 172.16.2.3 dev veth3"
1445 run_cmd "$IP nexthop add id 24 via 172.16.2.4 dev veth3"
1446 run_cmd "$IP nexthop add id 25 via 172.16.2.5 dev veth3"
1450 run_cmd "$IP nexthop add id 104 group 12"
1451 run_cmd "$IP nexthop add id 105 group 12"
1455 run_cmd "$IP nexthop flush groups"
1459 run_cmd "$IP nexthop add id 105 group 12/13/22/23/14"
1460 run_cmd "$IP li set veth1 down"
1464 run_cmd "$IP nexthop add id 106 group 105/24"
1470 run_cmd "$IP nexthop add id 31 blackhole"
1471 run_cmd "$IP nexthop add id 107 group 31"
1474 run_cmd "$IP nexthop add id 108 group 31/24"
1494 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1495 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1496 run_cmd "$IP nexthop add id 102 group 12/13 type resilient buckets 2 idle_timer 0"
1498 run_cmd "$IP nexthop del id 13"
1506 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1507 run_cmd "$IP nexthop replace id 102 group 12/13 type resilient buckets 2 idle_timer 0"
1515 $IP nexthop flush >/dev/null 2>&1
1520 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1521 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1522 run_cmd "$IP nexthop add id 102 group 12,3/13,1 type resilient buckets 4 idle_timer 0"
1524 run_cmd "$IP nexthop del id 13"
1532 run_cmd "$IP nexthop add id 13 via 172.16.1.3 dev veth1"
1533 run_cmd "$IP nexthop replace id 102 group 12,3/13,1 type resilient buckets 4 idle_timer 0"
1548 run_cmd "$IP nexthop add id 11 via ${lladdr} dev veth1"
1550 run_cmd "$IP ro add 172.16.101.1/32 nhid 11"
1555 run_cmd "$IP nexthop add id 12 via 172.16.1.2 dev veth1"
1556 run_cmd "$IP nexthop add id 101 group 11/12"
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"
1580 run_cmd "$IP nexthop add id 21 via 172.16.1.2 dev veth1"
1581 run_cmd "$IP ro add 172.16.101.1/32 nhid 21"
1585 run_cmd "$IP ro delete 172.16.101.1/32 nhid 21"
1591 run_cmd "$IP nexthop add id 22 via 172.16.1.2 dev veth1"
1592 run_cmd "$IP ro add 172.16.101.1/32 nhid 22 scope host"
1595 run_cmd "$IP nexthop replace id 22 dev veth3"
1596 run_cmd "$IP ro add 172.16.101.1/32 nhid 22 scope host"
1597 run_cmd "$IP nexthop replace id 22 via 172.16.2.2 dev veth3"
1601 run_cmd "$IP ro add 172.16.101.2/32 nhid 22 congctl lock foo"
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"
1613 run_cmd "$IP nexthop add id 122 group 21/22"
1614 run_cmd "$IP ro replace 172.16.101.1/32 nhid 122"
1618 run_cmd "$IP ro delete 172.16.101.1/32 nhid 122"
1623 run_cmd "$IP nexthop add id 501 via 172.16.1.2 dev veth1"
1624 run_cmd "$IP ro add default nhid 501"
1625 run_cmd "$IP ro add default via 172.16.1.3 dev veth1 metric 20"
1630 run_cmd "$IP ro del default nhid 501"
1631 run_cmd "$IP ro del default via 172.16.1.3 dev veth1 metric 20"
1632 run_cmd "$IP ro add default via 172.16.1.2 dev veth1 metric 20"
1633 run_cmd "$IP nexthop replace id 501 via 172.16.1.3 dev veth1"
1634 run_cmd "$IP ro add default nhid 501 metric 20"
1638 run_cmd "$IP nexthop delete nhid 501"
1639 run_cmd "$IP ro del default"
1644 run_cmd "$IP nexthop add id 23 blackhole"
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"
1674 run_cmd "$IP nexthop add id 85 dev veth1"
1675 run_cmd "$IP ro replace 172.16.101.1/32 nhid 85"
1679 run_cmd "$IP nexthop add id 123 group 21/85"
1680 run_cmd "$IP ro replace 172.16.101.1/32 nhid 123"
1689 run_cmd "$IP nexthop add id 24 via ${lladdr} dev veth1"
1691 run_cmd "$IP ro replace 172.16.101.1/32 nhid 24"
1695 $IP neigh sh | grep -q "${lladdr} dev veth1"
1698 $IP neigh sh | grep 'dev veth1'
1701 $IP neigh sh | grep -q "172.16.101.1 dev eth1"
1704 $IP neigh sh | grep 'dev veth1'
1708 run_cmd "$IP nexthop add id 25 via 172.16.1.2 dev veth1"
1709 run_cmd "$IP nexthop add id 101 group 24/25"
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"
1723 $IP neigh sh | grep -q "${lladdr} dev veth1"
1726 $IP neigh sh | grep 'dev veth1'
1729 $IP neigh sh | grep -q "172.16.101.1 dev eth1"
1732 $IP neigh sh | grep 'dev veth1'
1735 run_cmd "$IP ro del 172.16.101.1/32 via inet6 ${lladdr} dev veth1"
1736 run_cmd "$IP -4 ro add default via inet6 ${lladdr} dev veth1"
1743 run_cmd "$IP nexthop add id 51 encap mpls 101 via 172.16.1.2 dev veth1"
1748 run_cmd "$IP nexthop add id 52 encap mpls 102 via inet6 2001:db8:91::2 dev veth1"
1764 $IP nexthop flush >/dev/null 2>&1
1780 $IP nexthop flush >/dev/null 2>&1
1827 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
1828 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
1829 run_cmd "$IP nexthop add id 122 group 62/63"
1832 run_cmd "$IP -6 ro add 2001:db8:101::1/128 nhid 122"
1842 run_cmd "$IP nexthop add id 64 via 2001:db8:91::4 dev veth1"
1844 run_cmd "$IP nexthop replace id 122 group 62/64"
1852 run_cmd "$IP -6 ro del 2001:db8:101::1/128 nhid 122"
1854 run_cmd "$IP nexthop add id 62 via 2001:db8:91::2 dev veth1"
1855 run_cmd "$IP nexthop add id 63 via 2001:db8:91::3 dev veth1"
1856 run_cmd "$IP nexthop add id 122 group 62/63"
1859 run_cmd "$IP -6 ro add 2001:db8:101::1/128 nhid 122"
1869 run_cmd "$IP nexthop add id 64 via 2001:db8:91::4 dev veth1"
1871 run_cmd "$IP nexthop replace id 122 group 62/64"
1877 run_cmd "$IP nexthop del id 122"
1898 run_cmd "$IP nexthop add id 21 via 172.16.1.2 dev veth1"
1899 run_cmd "$IP nexthop add id 22 via 172.16.1.2 dev veth1"
1900 run_cmd "$IP nexthop add id 122 group 21/22"
1903 run_cmd "$IP ro add 172.16.101.1/32 nhid 122"
1914 run_cmd "$IP nexthop add id 23 via 172.16.1.3 dev veth1"
1916 run_cmd "$IP nexthop replace id 122 group 21/23"
1923 run_cmd "$IP ro del 172.16.101.1/32 nhid 122"
1926 run_cmd "$IP ro add 172.16.101.1/32 nhid 122"
1937 run_cmd "$IP nexthop replace id 122 group 21/22"
1943 run_cmd "$IP nexthop del id 122"
1953 $IP nexthop del id 100
1954 $IP nexthop add id 100 via 172.16.1.2 dev veth1
1961 $IP nexthop replace id 102 group 100/101
1981 run_cmd "$IP nexthop add id 100 via 172.16.1.2 dev veth1"
1982 run_cmd "$IP nexthop add id 101 via 172.16.2.2 dev veth3"
1983 run_cmd "$IP nexthop add id 102 group 100/101"
1984 run_cmd "$IP route add 172.16.101.1 nhid 102"
1985 run_cmd "$IP route add 172.16.101.2 nhid 102"
2009 $IP nexthop replace id 102 group 100/101 type resilient
2035 run_cmd "$IP nexthop add id 100 via 172.16.1.2 dev veth1"
2036 run_cmd "$IP nexthop add id 101 via 172.16.2.2 dev veth3"
2037 run_cmd "$IP nexthop add id 102 group 100/101 type resilient buckets 512 idle_timer 0"
2038 run_cmd "$IP route add 172.16.101.1 nhid 102"
2039 run_cmd "$IP route add 172.16.101.2 nhid 102"
2067 run_cmd "$IP nexthop ls"
2070 run_cmd "$IP nexthop get id 1"
2074 run_cmd "$IP nexthop add id 1"
2078 $IP li set veth1 down
2079 run_cmd "$IP nexthop add id 1 dev veth1"
2083 $IP li set veth1 up
2085 run_cmd "$IP nexthop add id 1 dev veth1"
2090 run_cmd "$IP nexthop add id 1 dev veth1"
2094 run_cmd "$IP nexthop add id 1 dev veth3"
2098 run_cmd "$IP nexthop add id 2 blackhole"
2102 run_cmd "$IP nexthop replace id 2 blackhole dev veth1"
2107 run_cmd "$IP link set dev lo down"
2111 run_cmd "$IP link set dev lo up"
2114 run_cmd "$IP nexthop add id $((2**32-1)) blackhole"
2115 run_cmd "timeout 5 $IP nexthop"
2122 run_cmd "$IP nexthop add id 101 group 1"
2125 run_cmd "$IP nexthop add id 102 group 2"
2129 run_cmd "$IP nexthop add id 103 group 1/2"
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"
2139 run_cmd "$IP nexthop add id 103 group 12"
2143 run_cmd "$IP nexthop add id 103 group 1/1"
2147 run_cmd "$IP nexthop replace id 2 group 1"
2151 run_cmd "$IP nexthop replace id 101 dev veth1"
2155 run_cmd "$IP nexthop add id 104 group 1 dev veth1"
2159 run_cmd "$IP nexthop add id 105 blackhole proto 99"
2160 run_cmd "$IP nexthop add id 106 blackhole proto 100"
2161 run_cmd "$IP nexthop add id 107 blackhole proto 99"
2162 run_cmd "$IP nexthop flush proto 99"
2166 run_cmd "$IP nexthop flush proto 100"
2169 run_cmd "$IP nexthop flush proto 100"
2172 run_cmd "$IP nexthop add id 104 group 1 blackhole"
2175 $IP nexthop flush >/dev/null 2>&1
2185 $IP -b $batch_file
2186 $IP nexthop flush >/dev/null 2>&1
2187 [[ $($IP nexthop | wc -l) -eq 0 ]]
2203 count=$($IP -j nexthop bucket ${nharg} ${selector} | jq length)
2225 run_cmd "$IP nexthop add id 1 dev veth1"
2231 run_cmd "$IP nexthop add id 101 group 1 type resilient buckets 8"
2234 run_cmd "$IP nexthop get id 101"
2239 run_cmd "$IP nexthop add id 102 group 1 type resilient
2241 run_cmd "$IP nexthop get id 102"
2246 run_cmd "$IP nexthop add id 103 group 1 type resilient buckets 0"
2253 run_cmd "$IP nexthop replace id 101 group 1 type resilient
2260 run_cmd "$IP nexthop replace id 101 group 1 type resilient idle_timer 512"
2266 run_cmd "$IP nexthop replace id 101 group 1 type resilient unbalanced_timer 256"
2272 run_cmd "$IP nexthop replace id 101 group 1 type resilient"
2278 run_cmd "$IP nexthop replace id 101 group 1"
2281 run_cmd "$IP nexthop replace id 101 group 1 type mpath"
2284 run_cmd "$IP nexthop replace id 101 group 1 type resilient buckets 1024"
2295 $IP nexthop flush >/dev/null 2>&1
2296 run_cmd "$IP nexthop add id 1 dev veth1"
2297 run_cmd "$IP nexthop add id 2 dev veth3"
2298 run_cmd "$IP nexthop add id 101 group 1/2 type resilient buckets 4"
2299 run_cmd "$IP nexthop add id 201 group 1/2"
2310 (( $($IP -j nexthop bucket list id 101 |
2323 run_cmd "$IP nexthop bucket list id 111"
2326 run_cmd "$IP nexthop bucket list id 201"
2329 run_cmd "$IP nexthop bucket list dev bla"
2332 run_cmd "$IP nexthop bucket list groups"
2335 run_cmd "$IP nexthop bucket list fdb"
2339 run_cmd "$IP nexthop add id $((2**32-1)) group 1/2 type resilient buckets 4"
2340 run_cmd "timeout 5 $IP nexthop bucket"
2350 run_cmd "$IP nexthop bucket get id 101 index 999"
2353 run_cmd "$IP nexthop bucket get id 201 index 0"
2356 run_cmd "$IP nexthop bucket get id 999 index 0"
2363 $IP nexthop flush >/dev/null 2>&1
2365 run_cmd "$IP nexthop add id 1 dev veth1"
2366 run_cmd "$IP nexthop add id 2 dev veth3"
2367 run_cmd "$IP nexthop add id 101
2376 run_cmd "$IP nexthop replace id 101
2384 run_cmd "$IP nexthop replace id 101
2387 run_cmd "$IP nexthop replace id 101
2394 $IP nexthop flush >/dev/null 2>&1
2468 none) IP="ip -netns peer"; setup; exit 0;;