4 echo "invalid command syntax" 1>&2
5 echo "Usage: $0 <0|128|129|130>" 1>&2
14 * ) echo "error" ; exit ;;
17 R0
=$
(cat /tmp
/topotests
/isis_sr_flex_algo_topo2.test_isis_sr_flex_algo_topo
2/rt0.pid
)
18 R9
=$
(cat /tmp
/topotests
/isis_sr_flex_algo_topo2.test_isis_sr_flex_algo_topo
2/rt9.pid
)
22 cat <<EOF | nsenter -a -t $R0 vtysh
26 policy color 1 endpoint 9.9.9.9
29 candidate-path preference 100 name sid-algorithm explicit segment-list sid-algorithm-$1
35 cat <<EOF | nsenter -a -t $R9 vtysh
39 policy color 1 endpoint 10.10.10.10
42 candidate-path preference 100 name sid-algorithm explicit segment-list sid-algorithm-$1