]> git.proxmox.com Git - mirror_frr.git/blob - tests/topotests/isis_sr_flex_algo_topo2/configure-te.sh
Merge pull request #13455 from sri-mohan1/srib-ldpd
[mirror_frr.git] / tests / topotests / isis_sr_flex_algo_topo2 / configure-te.sh
1 #!/bin/sh
2
3 if [ $# -ne 1 ]; then
4 echo "invalid command syntax" 1>&2
5 echo "Usage: $0 <0|128|129|130>" 1>&2
6 exit 1
7 fi
8
9 case "$1" in
10 0 ) echo ;;
11 128 ) echo ;;
12 129 ) echo ;;
13 130 ) echo ;;
14 * ) echo "error" ; exit ;;
15 esac
16
17 R0=$(cat /tmp/topotests/isis_sr_flex_algo_topo2.test_isis_sr_flex_algo_topo2/rt0.pid)
18 R9=$(cat /tmp/topotests/isis_sr_flex_algo_topo2.test_isis_sr_flex_algo_topo2/rt9.pid)
19
20 set -x
21
22 cat <<EOF | nsenter -a -t $R0 vtysh
23 conf te
24 segment-routing
25 traffic-eng
26 policy color 1 endpoint 9.9.9.9
27 name sid-algorithm
28 binding-sid 111
29 candidate-path preference 100 name sid-algorithm explicit segment-list sid-algorithm-$1
30 exit
31 exit
32 exit
33 EOF
34
35 cat <<EOF | nsenter -a -t $R9 vtysh
36 conf te
37 segment-routing
38 traffic-eng
39 policy color 1 endpoint 10.10.10.10
40 name sid-algorithm
41 binding-sid 222
42 candidate-path preference 100 name sid-algorithm explicit segment-list sid-algorithm-$1
43 exit
44 exit
45 exit
46 EOF