Lines Matching refs:testns

445 	run_cmd ip -netns "$testns" link add "$vxlan" type vxlan id 42 group 239.1.1.1 \
452 run_cmd ip -netns "$testns" addr add 10.2.11.49/24 dev "$vxlan"
453 run_cmd ip -netns "$testns" link set up dev "$vxlan"
454 run_cmd ip -netns "$testns" link add link "$vxlan" name "$vlan" type vlan id 1
457 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan vni 43
458 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan group ffe5::5 dev "$devdummy"
459 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan ttl inherit
461 run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan ttl 64
462 run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan nolearning
464 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan proxy
465 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan norsc
466 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan l2miss
467 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan l3miss
468 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan external
469 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udpcsum
470 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udp6zerocsumtx
471 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udp6zerocsumrx
472 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan remcsumtx
473 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan remcsumrx
474 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan gbp
475 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan gpe
476 run_cmd ip -netns "$testns" link del "$vxlan"
501 run_cmd ip -netns "$testns" fou add port 7777 ipproto 47
506 run_cmd ip -netns "$testns" fou add port 8888 ipproto 4
507 run_cmd_fail ip -netns "$testns" fou del port 9999
508 run_cmd ip -netns "$testns" fou del port 7777
521 setup_ns testns
523 end_test "SKIP encap tests: cannot add net namespace $testns"
526 run_cmd ip -netns "$testns" link set lo up
527 run_cmd ip -netns "$testns" link add name "$devdummy" type dummy
528 run_cmd ip -netns "$testns" link set "$devdummy" up
532 ip netns del "$testns"
784 setup_ns testns
786 end_test "SKIP gretap tests: cannot add net namespace $testns"
793 ip netns del "$testns"
798 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type gretap seq \
802 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
803 run_cmd ip -netns "$testns" link set dev $DEV_NS up
804 run_cmd ip -netns "$testns" link del "$DEV_NS"
807 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type gretap external
808 run_cmd ip -netns "$testns" link del "$DEV_NS"
812 ip netns del "$testns"
817 ip netns del "$testns"
825 setup_ns testns
827 end_test "SKIP ip6gretap tests: cannot add net namespace $testns"
834 ip netns del "$testns"
839 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6gretap seq \
843 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" fc00:200::1/96
844 run_cmd ip -netns "$testns" link set dev $DEV_NS up
845 run_cmd ip -netns "$testns" link del "$DEV_NS"
848 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6gretap external
849 run_cmd ip -netns "$testns" link del "$DEV_NS"
853 ip netns del "$testns"
858 ip netns del "$testns"
870 setup_ns testns
872 end_test "SKIP erspan tests: cannot add net namespace $testns"
877 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan seq \
882 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
883 run_cmd ip -netns "$testns" link set dev $DEV_NS up
884 run_cmd ip -netns "$testns" link del "$DEV_NS"
887 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan seq \
892 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
893 run_cmd ip -netns "$testns" link set dev $DEV_NS up
894 run_cmd ip -netns "$testns" link del "$DEV_NS"
897 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type erspan external
898 run_cmd ip -netns "$testns" link del "$DEV_NS"
902 ip netns del "$testns"
907 ip netns del "$testns"
919 setup_ns testns
921 end_test "SKIP ip6erspan tests: cannot add net namespace $testns"
926 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6erspan seq \
931 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
932 run_cmd ip -netns "$testns" link set dev $DEV_NS up
933 run_cmd ip -netns "$testns" link del "$DEV_NS"
936 run_cmd ip -netns "$testns" link add dev "$DEV_NS" type ip6erspan seq \
941 run_cmd ip -netns "$testns" addr add dev "$DEV_NS" 10.1.1.100/24
942 run_cmd ip -netns "$testns" link set dev $DEV_NS up
943 run_cmd ip -netns "$testns" link del "$DEV_NS"
946 run_cmd ip -netns "$testns" link add dev "$DEV_NS" \
949 run_cmd ip -netns "$testns" link del "$DEV_NS"
953 ip netns del "$testns"
958 ip netns del "$testns"
976 setup_ns testns
978 end_test "SKIP fdb get tests: cannot add net namespace $testns"
981 IP="ip -netns $testns"
982 BRIDGE="bridge -netns $testns"
993 ip netns del $testns &>/dev/null
1016 setup_ns testns
1018 end_test "SKIP fdb del tests: cannot add net namespace $testns"
1021 IP="ip -netns $testns"
1022 BRIDGE="bridge -netns $testns"
1032 ip netns del $testns &>/dev/null
1224 setup_ns testns
1226 end_test "SKIP bonding tests: cannot add net namespace $testns"
1230 run_cmd ip -netns $testns link add dev $bond type bond mode balance-rr
1231 run_cmd ip -netns $testns link add dev $devdummy type dummy
1232 run_cmd ip -netns $testns link set dev $devdummy up
1233 run_cmd ip -netns $testns link set dev $devdummy master $bond down
1236 ip netns del "$testns"
1241 ip netns del "$testns"
1254 local addr_list=$(ip -j -n $testns addr show dev ${dev})
1288 setup_ns testns
1290 end_test "SKIP mngtmpaddr tests: cannot add net namespace $testns"
1295 run_cmd ip -n $testns link add ${devdummy} type dummy
1296 run_cmd ip -n $testns link set ${devdummy} up
1297 run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.use_tempaddr=1
1298 run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.temp_prefered_lft=10
1299 run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.temp_valid_lft=25
1300 run_cmd ip netns exec $testns sysctl -w net.ipv6.conf.${devdummy}.max_desync_factor=1
1306 run_cmd ip -n $testns addr add 2001:db8:7e57:${i}::1/64 mngtmpaddr dev ${devdummy}
1319 run_cmd ip -n $testns addr del 2001:db8:7e57:${i}::1/64 $mng_flag dev ${devdummy}
1321 run_cmd ip -n $testns addr change 2001:db8:7e57:${i}::1/64 dev ${devdummy}
1333 ip netns del "$testns"