Lines Matching refs:ns
7 local ns=$1; shift
13 ip -n $ns -j -p -$family route show $route \
29 local ns=$1; shift
34 busywait 5000 __fib_trap_check $ns $family "$route" $should_fail
39 local ns=$1; shift
43 fib_trap_check $ns 4 "$route" $should_fail
48 local ns=$1; shift
52 fib_trap_check $ns 6 "$route" $should_fail
57 local ns=$1; shift
63 ip -n $ns link add name dummy$i type dummy
64 ip -n $ns link set dev dummy$i up
67 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 0 metric 1024
68 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 tos 0 metric 1024" false
71 ip -n $ns route append 192.0.2.0/24 dev dummy2 tos 0 metric 1024
72 fib4_trap_check $ns "192.0.2.0/24 dev dummy2 tos 0 metric 1024" true
75 ip -n $ns route prepend 192.0.2.0/24 dev dummy3 tos 0 metric 1024
76 fib4_trap_check $ns "192.0.2.0/24 dev dummy3 tos 0 metric 1024" false
79 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 tos 0 metric 1024" true
85 ip -n $ns link del dev dummy$i
91 local ns=$1; shift
95 ip -n $ns link add name dummy1 type dummy
96 ip -n $ns link set dev dummy1 up
98 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 0 metric 1024
99 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 tos 0 metric 1024" false
102 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 8 metric 1024
103 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 tos 8 metric 1024" false
106 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 tos 0 metric 1024" true
109 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 4 metric 1024
110 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 tos 4 metric 1024" true
115 ip -n $ns link del dev dummy1
120 local ns=$1; shift
124 ip -n $ns link add name dummy1 type dummy
125 ip -n $ns link set dev dummy1 up
127 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric 1024
128 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 metric 1024" false
131 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric 1022
132 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 metric 1022" false
135 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 metric 1024" true
138 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric 1023
139 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 metric 1023" true
144 ip -n $ns link del dev dummy1
149 local ns=$1; shift
155 ip -n $ns link add name dummy$i type dummy
156 ip -n $ns link set dev dummy$i up
159 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric 1024
160 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 metric 1024" false
163 ip -n $ns route replace 192.0.2.0/24 dev dummy2 metric 1024
164 fib4_trap_check $ns "192.0.2.0/24 dev dummy2 metric 1024" false
169 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric 1025
170 ip -n $ns route replace 192.0.2.0/24 dev dummy2 metric 1025
172 fib4_trap_check $ns "192.0.2.0/24 dev dummy2 metric 1024" false
174 fib4_trap_check $ns "192.0.2.0/24 dev dummy2 metric 1025" true
180 ip -n $ns link del dev dummy$i
186 local ns=$1; shift
191 ip -n $ns link add name dummy1 type dummy
192 ip -n $ns link set dev dummy1 up
198 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric $metric
201 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 metric 1024" false
204 ip -n $ns route del 192.0.2.0/24 dev dummy1 metric 1024
205 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 metric 1025" false
208 ip -n $ns route del 192.0.2.0/24 dev dummy1 metric 1026
209 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 metric 1025" false
214 ip -n $ns link del dev dummy1
219 local ns=$1; shift
223 ip -n $ns link add name dummy1 type dummy
224 ip -n $ns link set dev dummy1 up
229 ip -n $ns route add 192.0.2.0/24 dev dummy1
230 ip -n $ns route add 192.0.2.0/25 dev dummy1
232 fib4_trap_check $ns "192.0.2.0/24 dev dummy1" false
235 fib4_trap_check $ns "192.0.2.0/25 dev dummy1" false
240 ip -n $ns link del dev dummy1
245 local ns=$1; shift
250 ip -n $ns link add name dummy1 type dummy
251 ip -n $ns link set dev dummy1 up
253 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric 1024
254 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric 1025
256 devlink -N $ns dev reload $devlink_dev
258 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 metric 1024" false
261 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 metric 1025" true
266 ip -n $ns link del dev dummy1
271 local ns=$1; shift
276 ip -n $ns link add name dummy1 type dummy
277 ip -n $ns link set dev dummy1 up
279 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 0
280 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 4
282 devlink -N $ns dev reload $devlink_dev
284 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 tos 4" false
287 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 tos 0" true
292 ip -n $ns link del dev dummy1
297 local ns=$1; shift
302 ip -n $ns link add name dummy1 type dummy
303 ip -n $ns link set dev dummy1 up
305 ip -n $ns route add 192.0.2.0/24 dev dummy1
306 ip -n $ns route add 192.0.2.0/25 dev dummy1
308 devlink -N $ns dev reload $devlink_dev
310 fib4_trap_check $ns "192.0.2.0/24 dev dummy1" false
313 fib4_trap_check $ns "192.0.2.0/25 dev dummy1" false
318 ip -n $ns link del dev dummy1
323 local ns=$1; shift
328 ip -n $ns link add name dummy1 type dummy
329 ip -n $ns link set dev dummy1 up
334 ip -n $ns route add 192.0.2.0/24 dev dummy1 metric $metric
337 ip -n $ns link del dev dummy1
344 local ns=$1; shift
349 ip -n $ns link add name dummy$i type dummy
350 ip -n $ns link set dev dummy$i up
353 ip -n $ns route add 2001:db8:1::/64 dev dummy1 metric 1024
354 fib6_trap_check $ns "2001:db8:1::/64 dev dummy1 metric 1024" false
357 ip -n $ns route append 2001:db8:1::/64 dev dummy2 metric 1024
358 fib6_trap_check $ns "2001:db8:1::/64 dev dummy2 metric 1024" true
361 fib6_trap_check $ns "2001:db8:1::/64 dev dummy1 metric 1024" false
367 ip -n $ns link del dev dummy$i
373 local ns=$1; shift
377 ip -n $ns link add name dummy1 type dummy
378 ip -n $ns link set dev dummy1 up
380 ip -n $ns route add 2001:db8:1::/64 dev dummy1 metric 1024
381 fib6_trap_check $ns "2001:db8:1::/64 dev dummy1 metric 1024" false
384 ip -n $ns route add 2001:db8:1::/64 dev dummy1 metric 1022
385 fib6_trap_check $ns "2001:db8:1::/64 dev dummy1 metric 1022" false
388 fib6_trap_check $ns "2001:db8:1::/64 dev dummy1 metric 1024" true
391 ip -n $ns route add 2001:db8:1::/64 dev dummy1 metric 1023
392 fib6_trap_check $ns "2001:db8:1::/64 dev dummy1 metric 1023" true
397 ip -n $ns link del dev dummy1
402 local ns=$1; shift
410 ip -n $ns link add name dummy$i type dummy
411 ip -n $ns link set dev dummy$i up
412 ip -n $ns address add 2001:db8:$i::1/64 dev dummy$i
415 ip -n $ns route add 2001:db8:10::/64 via 2001:db8:1::2 metric 1024
416 fib6_trap_check $ns "2001:db8:10::/64 metric 1024" false
419 ip -n $ns route append 2001:db8:10::/64 via 2001:db8:2::2 metric 1024
420 fib6_trap_check $ns "2001:db8:10::/64 metric 1024" false
423 ip -n $ns route add 2001:db8:10::/64 via 2001:db8:1::2 metric 1025
424 fib6_trap_check $ns "2001:db8:10::/64 metric 1025" true
427 ip -n $ns route append 2001:db8:10::/64 via 2001:db8:2::2 metric 1025
428 fib6_trap_check $ns "2001:db8:10::/64 metric 1025" true
431 fib6_trap_check $ns "2001:db8:10::/64 metric 1024" false
437 ip -n $ns link del dev dummy$i
443 local ns=$1; shift
449 ip -n $ns link add name dummy$i type dummy
450 ip -n $ns link set dev dummy$i up
453 ip -n $ns route add 2001:db8:1::/64 dev dummy1 metric 1024
454 fib6_trap_check $ns "2001:db8:1::/64 dev dummy1 metric 1024" false
457 ip -n $ns route replace 2001:db8:1::/64 dev dummy2 metric 1024
458 fib6_trap_check $ns "2001:db8:1::/64 dev dummy2 metric 1024" false
463 ip -n $ns route add 2001:db8:1::/64 dev dummy1 metric 1025
464 ip -n $ns route replace 2001:db8:1::/64 dev dummy2 metric 1025
466 fib6_trap_check $ns "2001:db8:1::/64 dev dummy2 metric 1024" false
468 fib6_trap_check $ns "2001:db8:1::/64 dev dummy2 metric 1025" true
474 ip -n $ns link del dev dummy$i
480 local ns=$1; shift
485 ip -n $ns link add name dummy$i type dummy
486 ip -n $ns link set dev dummy$i up
487 ip -n $ns address add 2001:db8:$i::1/64 dev dummy$i
490 ip -n $ns route add 2001:db8:10::/64 metric 1024 \
493 fib6_trap_check $ns "2001:db8:10::/64 metric 1024" false
496 ip -n $ns route add 2001:db8:10::/64 metric 1022 \
499 fib6_trap_check $ns "2001:db8:10::/64 metric 1022" false
502 ip -n $ns route add 2001:db8:10::/64 metric 1023 \
505 fib6_trap_check $ns "2001:db8:10::/64 metric 1024" true
508 fib6_trap_check $ns "2001:db8:10::/64 metric 1023" true
514 ip -n $ns link del dev dummy$i
520 local ns=$1; shift
525 ip -n $ns link add name dummy$i type dummy
526 ip -n $ns link set dev dummy$i up
527 ip -n $ns address add 2001:db8:$i::1/64 dev dummy$i
530 ip -n $ns route add 2001:db8:10::/64 metric 1024 \
532 fib6_trap_check $ns "2001:db8:10::/64 metric 1024" false
535 ip -n $ns route append 2001:db8:10::/64 metric 1024 \
538 fib6_trap_check $ns "2001:db8:10::/64 metric 1024" false
541 ip -n $ns route add 2001:db8:10::/64 metric 1025 \
543 fib6_trap_check $ns "2001:db8:10::/64 metric 1025" true
546 ip -n $ns route append 2001:db8:10::/64 metric 1025 \
549 fib6_trap_check $ns "2001:db8:10::/64 metric 1025" true
552 fib6_trap_check $ns "2001:db8:10::/64 metric 1024" false
558 ip -n $ns link del dev dummy$i
564 local ns=$1; shift
570 ip -n $ns link add name dummy$i type dummy
571 ip -n $ns link set dev dummy$i up
572 ip -n $ns address add 2001:db8:$i::1/64 dev dummy$i
575 ip -n $ns route add 2001:db8:10::/64 metric 1024 \
578 fib6_trap_check $ns "2001:db8:10::/64 metric 1024" false
581 ip -n $ns route replace 2001:db8:10::/64 metric 1024 \
584 fib6_trap_check $ns "2001:db8:10::/64 metric 1024" false
589 ip -n $ns route add 2001:db8:10::/64 metric 1025 \
592 ip -n $ns route replace 2001:db8:10::/64 metric 1025 \
596 fib6_trap_check $ns "2001:db8:10::/64 metric 1024" false
598 fib6_trap_check $ns "2001:db8:10::/64 metric 1025" true
604 ip -n $ns link del dev dummy$i
610 local ns=$1; shift
618 ip -n $ns link add name dummy$i type dummy
619 ip -n $ns link set dev dummy$i up
620 ip -n $ns address add 2001:db8:$i::1/64 dev dummy$i
623 ip -n $ns route add 2001:db8:10::/64 dev dummy1 metric 1024
624 fib6_trap_check $ns "2001:db8:10::/64 dev dummy1 metric 1024" false
627 ip -n $ns route append 2001:db8:10::/64 metric 1024 \
629 fib6_trap_check $ns "2001:db8:10::/64 dev dummy2 metric 1024" true
632 fib6_trap_check $ns "2001:db8:10::/64 dev dummy1 metric 1024" false
638 ip -n $ns link del dev dummy$i
644 local ns=$1; shift
649 ip -n $ns link add name dummy$i type dummy
650 ip -n $ns link set dev dummy$i up
651 ip -n $ns address add 2001:db8:$i::1/64 dev dummy$i
658 ip -n $ns route add 2001:db8:10::/64 dev dummy1 metric 1024
659 ip -n $ns route del 2001:db8:10::/64 dev dummy1 metric 1024
666 ip -n $ns route add 2001:db8:10::/64 dev dummy1 metric 1024
667 ip -n $ns route add 2001:db8:10::/64 dev dummy1 metric 1025
668 ip -n $ns route del 2001:db8:10::/64 dev dummy1 metric 1025
670 fib6_trap_check $ns "2001:db8:10::/64 dev dummy1 metric 1024" false
675 ip -n $ns route del 2001:db8:10::/64 dev dummy1 metric 1024
681 ip -n $ns route add 2001:db8:10::/64 dev dummy1 metric 1024
682 ip -n $ns route add 2001:db8:10::/64 dev dummy1 metric 1025
683 ip -n $ns route del 2001:db8:10::/64 dev dummy1 metric 1024
685 fib6_trap_check $ns "2001:db8:10::/64 dev dummy1 metric 1025" false
690 ip -n $ns route del 2001:db8:10::/64 dev dummy1 metric 1025
696 ip -n $ns route add 2001:db8:10::/64 dev dummy1 metric 1024
697 ip -n $ns route add 2001:db8:10::/64 metric 1025 \
700 ip -n $ns route del 2001:db8:10::/64 dev dummy1 metric 1024
702 fib6_trap_check $ns "2001:db8:10::/64 metric 1025" false
707 ip -n $ns route del 2001:db8:10::/64 metric 1025
710 ip -n $ns route add 2001:db8:10::/64 metric 1024 \
713 ip -n $ns route del 2001:db8:10::/64 metric 1024 \
716 fib6_trap_check $ns "2001:db8:10::/64 metric 1024" false
721 ip -n $ns route del 2001:db8:10::/64 metric 1024
724 ip -n $ns link del dev dummy$i
730 local ns=$1; shift
735 ip -n $ns link add name dummy$i type dummy
736 ip -n $ns link set dev dummy$i up
737 ip -n $ns address add 2001:db8:$i::1/64 dev dummy$i
744 ip -n $ns route add 2001:db8:10::/64 metric 1024 \
747 ip -n $ns route del 2001:db8:10::/64 metric 1024
754 ip -n $ns route add 2001:db8:10::/64 metric 1024 \
757 ip -n $ns route add 2001:db8:10::/64 metric 1025 \
760 ip -n $ns route del 2001:db8:10::/64 metric 1025
762 fib6_trap_check $ns "2001:db8:10::/64 metric 1024" false
767 ip -n $ns route del 2001:db8:10::/64 metric 1024
773 ip -n $ns route add 2001:db8:10::/64 metric 1024 \
776 ip -n $ns route add 2001:db8:10::/64 dev dummy1 metric 1025
777 ip -n $ns route del 2001:db8:10::/64 metric 1024
779 fib6_trap_check $ns "2001:db8:10::/64 dev dummy1 metric 1025" false
784 ip -n $ns route del 2001:db8:10::/64 dev dummy1 metric 1025
790 ip -n $ns route add 2001:db8:10::/64 metric 1024 \
793 ip -n $ns route add 2001:db8:10::/64 metric 1025 \
796 ip -n $ns route del 2001:db8:10::/64 metric 1024
798 fib6_trap_check $ns "2001:db8:10::/64 metric 1025" false
803 ip -n $ns route del 2001:db8:10::/64 metric 1025
806 ip -n $ns link del dev dummy$i
812 local ns=$1; shift
818 ip -n $ns link add name dummy$i type dummy
819 ip -n $ns link set dev dummy$i up
822 ip -n $ns route add 2001:db8:1::/64 dev dummy1
823 ip -n $ns route append 2001:db8:1::/64 dev dummy2
825 devlink -N $ns dev reload $devlink_dev
827 fib6_trap_check $ns "2001:db8:1::/64 dev dummy1" false
830 fib6_trap_check $ns "2001:db8:1::/64 dev dummy2" true
836 ip -n $ns link del dev dummy$i
842 local ns=$1; shift
848 ip -n $ns link add name dummy$i type dummy
849 ip -n $ns link set dev dummy$i up
850 ip -n $ns address add 2001:db8:$i::1/64 dev dummy$i
853 ip -n $ns route add 2001:db8:10::/64 metric 1024 \
856 ip -n $ns route add 2001:db8:10::/64 metric 1025 \
860 devlink -N $ns dev reload $devlink_dev
862 fib6_trap_check $ns "2001:db8:10::/64 metric 1024" false
865 fib6_trap_check $ns "2001:db8:10::/64 metric 1025" true
871 ip -n $ns link del dev dummy$i