Lines Matching defs:run_cmd

89 run_cmd() {
150 run_cmd ip link add name "$devdummy" type dummy
151 run_cmd ip link set "$devdummy" up
156 run_cmd ip link del dev "$devdummy"
163 run_cmd ip netconf show dev "$dev"
165 run_cmd ip -$f netconf show dev "$dev"
182 run_cmd ip link add name "$devbr" type bridge
183 run_cmd ip link set dev "$devdummy" master "$devbr"
184 run_cmd ip link set "$devbr" up
185 run_cmd ip link add link "$devbr" name "$vlandev" type vlan id 1
186 run_cmd ip addr add dev "$vlandev" 10.200.7.23/30
187 run_cmd ip -6 addr add dev "$vlandev" dead:42::1234/64
188 run_cmd ip -d link
189 run_cmd ip r s t all
194 run_cmd ip -6 addr del dev "$vlandev" dead:42::1234/64
195 run_cmd ip link del dev "$vlandev"
196 run_cmd ip link del dev "$devbr"
213 run_cmd ip tunnel add $gredev mode gre remote $rem local $loc ttl 1
214 run_cmd ip link set $gredev up
215 run_cmd ip addr add 10.23.7.10 dev $gredev
216 run_cmd ip route add 10.23.8.0/30 dev $gredev
217 run_cmd ip addr add dev "$devdummy" 10.23.7.11/24
218 run_cmd ip link
219 run_cmd ip addr
222 run_cmd ip addr del dev "$devdummy" 10.23.7.11/24
223 run_cmd ip link del $gredev
239 run_cmd tc qdisc add dev "$dev" root handle 1: htb
240 run_cmd tc class add dev "$dev" parent 1: classid 1:10 htb rate 1mbit
241 run_cmd tc filter add dev "$dev" parent 1:0 prio 5 handle ffe: protocol ip u32 divisor 256
242 run_cmd tc filter add dev "$dev" parent 1:0 prio 5 handle ffd: protocol ip u32 divisor 256
243 run_cmd tc filter add dev "$dev" parent 1:0 prio 5 handle ffc: protocol ip u32 divisor 256
244 run_cmd tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32 ht ffe:2: match ip src 10.0.0.3 flowid 1:10
245 run_cmd tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:2 u32 ht ffe:2: match ip src 10.0.0.2 flowid 1:10
246 run_cmd tc filter show dev "$dev" parent 1:0
247 run_cmd tc filter del dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32
248 run_cmd tc filter show dev "$dev" parent 1:0
249 run_cmd tc qdisc del dev "$dev" root handle 1: htb
262 run_cmd ip rule add fwmark 1 lookup 100
263 run_cmd ip route add local 0.0.0.0/0 dev lo table 100
264 run_cmd ip r s t all
265 run_cmd ip rule del fwmark 1 lookup 100
266 run_cmd ip route del local 0.0.0.0/0 dev lo table 100
280 run_cmd ip route get 127.0.0.1
281 run_cmd ip route get 127.0.0.1 dev "$devdummy"
282 run_cmd ip route get ::1
283 run_cmd ip route get fe80::1 dev "$devdummy"
284 run_cmd ip route get 127.0.0.1 from 127.0.0.1 oif lo tos 0x10 mark 0x1
285 run_cmd ip route get ::1 from ::1 iif lo oif lo tos 0x10 mark 0x1
286 run_cmd ip addr add dev "$devdummy" 10.23.7.11/24
287 run_cmd ip route get 10.23.7.11 from 10.23.7.12 iif "$devdummy"
288 run_cmd ip route add 10.23.8.0/24 \
293 run_cmd ip route get 10.23.8.11
295 run_cmd ip route get 10.23.8.11
297 run_cmd ip route del 10.23.8.0/24
298 run_cmd ip addr del dev "$devdummy" 10.23.7.11/24
324 run_cmd ip addr add 10.23.11.$i/32 dev "$devdummy" preferred_lft $lft valid_lft $((lft+1))
330 run_cmd ip addr show dev "$devdummy"
345 run_cmd ip -6 addr add $test_addr dev "$devdummy" valid_lft 300 preferred_lft 300
347 run_cmd ip -6 addr del $test_addr dev "$devdummy"
360 run_cmd ifconfig "$devdummy"
385 run_cmd ip addrlabel add prefix dead::/64 dev lo label 1
387 run_cmd ip addrlabel del prefix dead::/64 dev lo label 1
388 run_cmd ip addrlabel add prefix dead::/64 label 1
389 run_cmd ip addrlabel del prefix dead::/64 label 1
417 run_cmd ip link set dev "$devdummy" alias "$namewant"
447 run_cmd ip link set dev "$devdummy" alias "$namewant"
463 run_cmd ip link show type vrf
468 run_cmd ip link add "$vrfname" type vrf table 10
479 run_cmd ip link set dev "$vrfname" up
480 run_cmd ip link set dev "$devdummy" master "$vrfname"
481 run_cmd ip link del dev "$vrfname"
496 run_cmd ip -netns "$testns" link add "$vxlan" type vxlan id 42 group 239.1.1.1 \
503 run_cmd ip -netns "$testns" addr add 10.2.11.49/24 dev "$vxlan"
504 run_cmd ip -netns "$testns" link set up dev "$vxlan"
505 run_cmd ip -netns "$testns" link add link "$vxlan" name "$vlan" type vlan id 1
512 run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan ttl 64
513 run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan nolearning
527 run_cmd ip -netns "$testns" link del "$vxlan"
552 run_cmd ip -netns "$testns" fou add port 7777 ipproto 47
557 run_cmd ip -netns "$testns" fou add port 8888 ipproto 4
559 run_cmd ip -netns "$testns" fou del port 7777
577 run_cmd ip -netns "$testns" link set lo up
578 run_cmd ip -netns "$testns" link add name "$devdummy" type dummy
579 run_cmd ip -netns "$testns" link set "$devdummy" up
580 run_cmd kci_test_encap_vxlan
581 run_cmd kci_test_encap_fou
596 run_cmd ip link add link "$devdummy" "$msname" type macsec port 42 encrypt on
601 run_cmd ip macsec add "$msname" tx sa 0 pn 1024 on key 01 12345678901234567890123456789012
602 run_cmd ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef"
603 run_cmd ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef" sa 0 pn 1 on key 00 0123456789abcdef0123456789abcdef
604 run_cmd ip macsec show
605 run_cmd ip link del dev "$msname"
629 run_cmd ip link add link "$devdummy" "$msname" type macsec port 42 encrypt on
635 run_cmd ip link set dev "$msname" up
639 run_cmd ip link del dev "$vlanname"
640 run_cmd ip link del dev "$msname"
664 run_cmd ip link add $team type team
670 run_cmd ip link add $dummy type dummy
671 run_cmd ip link set $dummy master $team
672 run_cmd ip link set $team up
673 run_cmd ip link add $bridge type bridge vlan_filtering 1
674 run_cmd ip link set $bridge up
675 run_cmd ip link set $team master $bridge
676 run_cmd ip link add link $bridge name $vlan \
678 run_cmd ip link set $vlan up
680 run_cmd ip link del $vlan
681 run_cmd ip link del $bridge
682 run_cmd ip link del $team
683 run_cmd ip link del $dummy
702 run_cmd ip link add $team up type team
703 run_cmd ip link add $bridge up type bridge vlan_filtering 1
704 run_cmd ip link add $dummy up type dummy
705 run_cmd ip link set $dummy master $bridge
706 run_cmd ip link set $team master $bridge
712 run_cmd bridge link set dev $dummy flood off learning off
714 run_cmd ip link del $dummy
715 run_cmd ip link del $bridge
716 run_cmd ip link del $team
730 run_cmd ip link add $team up type team
731 run_cmd ip link add $bridge up type bridge vlan_filtering 1
732 run_cmd ip link add $dummy up type dummy
733 run_cmd ip link set $dummy master $bridge
734 run_cmd ip link set $team master $bridge
736 run_cmd sysfs_write 0 /sys/class/net/$dummy/brport/unicast_flood
737 run_cmd sysfs_write 0 /sys/class/net/$dummy/brport/learning
739 run_cmd ip link del $dummy
740 run_cmd ip link del $bridge
741 run_cmd ip link del $team
775 run_cmd ip x s flush ; ip x p flush
783 run_cmd ip x s add $ipsecid \
789 run_cmd test $lines -eq 2
793 run_cmd test $lines -eq 2
794 run_cmd ip x s delete $ipsecid
797 run_cmd test $lines -eq 0
800 run_cmd ip x p add $ipsecsel \
806 run_cmd test $lines -eq 2
811 run_cmd test $lines -eq 2
813 run_cmd ip x p delete $ipsecsel
816 run_cmd test $lines -eq 0
821 run_cmd test $lines -eq 20
825 run_cmd ip x s flush
826 run_cmd ip x p flush
870 run_cmd modprobe -q netdevsim
898 run_cmd ip x p add dir out src $srcip/24 dst $dstip/24 \
902 run_cmd ip x p add dir in src $dstip/24 dst $srcip/24 \
906 run_cmd ip x s add proto esp src $srcip dst $dstip spi 9 \
910 run_cmd ip x s add proto esp src $dstip dst $srcip spi 9 \
932 run_cmd diff $sysfsf - << EOF
986 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type gretap seq \
990 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
991 run_cmd ip -netns "$testns" link set dev $DEV_NS up
992 run_cmd ip -netns "$testns" link del "$DEV_NS"
995 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type gretap external
996 run_cmd ip -netns "$testns" link del "$DEV_NS"
1027 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6gretap seq \
1031 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" fc00:200::1/96
1032 run_cmd ip -netns "$testns" link set dev $DEV_NS up
1033 run_cmd ip -netns "$testns" link del "$DEV_NS"
1036 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6gretap external
1037 run_cmd ip -netns "$testns" link del "$DEV_NS"
1065 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan seq \
1070 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
1071 run_cmd ip -netns "$testns" link set dev $DEV_NS up
1072 run_cmd ip -netns "$testns" link del "$DEV_NS"
1075 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan seq \
1080 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
1081 run_cmd ip -netns "$testns" link set dev $DEV_NS up
1082 run_cmd ip -netns "$testns" link del "$DEV_NS"
1085 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan external
1086 run_cmd ip -netns "$testns" link del "$DEV_NS"
1114 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6erspan seq \
1119 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
1120 run_cmd ip -netns "$testns" link set dev $DEV_NS up
1121 run_cmd ip -netns "$testns" link del "$DEV_NS"
1124 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6erspan seq \
1129 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
1130 run_cmd ip -netns "$testns" link set dev $DEV_NS up
1131 run_cmd ip -netns "$testns" link del "$DEV_NS"
1134 run_cmd ip -netns "$testns" link add dev "$DEV_NS" \
1137 run_cmd ip -netns "$testns" link del "$DEV_NS"
1171 run_cmd $IP link add "$vxlandev" type vxlan id 10 local $localip \
1173 run_cmd $IP link add name "$brdev" type bridge
1174 run_cmd $IP link set dev "$vxlandev" master "$brdev"
1175 run_cmd $BRIDGE fdb add $test_mac dev "$vxlandev" master
1176 run_cmd $BRIDGE fdb add $test_mac dev "$vxlandev" dst $dstip self
1211 run_cmd $IP link add $dummydev type dummy
1212 run_cmd $IP link add name $brdev type bridge vlan_filtering 1
1213 run_cmd $IP link set dev $dummydev master $brdev
1214 run_cmd $BRIDGE fdb add $test_mac dev $dummydev master static vlan 1
1215 run_cmd $BRIDGE vlan del vid 1 dev $dummydev
1216 run_cmd $BRIDGE fdb get $test_mac br $brdev vlan 1
1217 run_cmd $BRIDGE fdb del $test_mac dev $dummydev master vlan 1
1244 run_cmd ip neigh add $dstip lladdr $dstmac dev "$devdummy"
1246 run_cmd ip neigh del $dstip lladdr $dstmac dev "$devdummy"
1249 run_cmd ip neigh add proxy $dstip dev "$devdummy"
1251 run_cmd ip neigh del proxy $dstip dev "$devdummy"
1254 run_cmd ip neigh add $dstip6 lladdr $dstmac dev "$devdummy"
1256 run_cmd ip neigh del $dstip6 lladdr $dstmac dev "$devdummy"
1259 run_cmd ip neigh add proxy $dstip6 dev "$devdummy"
1261 run_cmd ip neigh del proxy $dstip6 dev "$devdummy"
1279 run_cmd ip neigh add $proxy $dstip dev "$devdummy" lladdr $dstmac nud permanent
1284 run_cmd ip neigh change $proxy $dstip dev "$devdummy" extern_learn
1289 run_cmd ip neigh change $proxy $dstip dev "$devdummy"
1294 run_cmd ip neigh change $proxy $dstip dev "$devdummy" protocol boot
1298 run_cmd ip neigh change $proxy $dstip dev "$devdummy"
1302 run_cmd ip neigh change $proxy $dstip dev "$devdummy" protocol static
1307 run_cmd ip neigh change $proxy $dstip dev "$devdummy" managed
1310 run_cmd ip neigh change $proxy $dstip dev "$devdummy" lladdr $dstmac
1314 run_cmd ip neigh del $proxy $dstip dev "$devdummy"
1332 run_cmd modprobe -q netdevsim
1347 run_cmd ip link add name test-bond0 type bond mode 802.3ad
1348 run_cmd ip link set dev $dev10 master test-bond0
1349 run_cmd ip link set dev $dev20 master test-bond0
1350 run_cmd ip link add name test-br0 type bridge
1351 run_cmd ip link set dev test-bond0 master test-br0
1478 run_cmd ip -netns $testns link add dev $bond type bond mode balance-rr
1479 run_cmd ip -netns $testns link add dev $devdummy type dummy
1480 run_cmd ip -netns $testns link set dev $devdummy up
1481 run_cmd ip -netns $testns link set dev $devdummy master $bond down
1543 run_cmd ip -n $testns link add ${devdummy} type dummy
1544 run_cmd ip -n $testns link set ${devdummy} up
1545 run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.use_tempaddr=1
1546 run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.temp_prefered_lft=10
1547 run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.temp_valid_lft=25
1548 run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.max_desync_factor=1
1554 run_cmd ip -n $testns addr add 2001:db8:7e57:${i}::1/64 mngtmpaddr dev ${devdummy}
1567 run_cmd ip -n $testns addr del 2001:db8:7e57:${i}::1/64 $mng_flag dev ${devdummy}
1569 run_cmd ip -n $testns addr change 2001:db8:7e57:${i}::1/64 dev ${devdummy}
1592 run_cmd ip link add name vx0 up state up type vxlan id 10010 dstport 4789
1594 run_cmd ip link set dev vx0 down
1596 run_cmd ip link set dev vx0 up
1599 run_cmd ip link del dev vx0
1603 run_cmd ip link add name vx0 up type vxlan id 10010 dstport 4789
1605 run_cmd ip link set dev vx0 state up
1608 run_cmd ip link del dev vx0