diff options
author | 2016-07-06 13:38:18 +0200 | |
---|---|---|
committer | 2016-07-06 14:07:54 +0200 | |
commit | 12defda1182a88e98a20d63c32fe897359663ad7 (patch) | |
tree | f7e45f0da7617cd57b8aca5c3fca5a2021d69e07 /tests/data_plane/vpp_lite_topo/lisp_6_remote_mapping.sh | |
parent | 572c17d6b9db44b8e0fb70222a13272fe41a4a7e (diff) |
Refactor basic LISP tests
Change-Id: Ibc11d4d82006ea11580d3b3e269f81709eedb53a
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'tests/data_plane/vpp_lite_topo/lisp_6_remote_mapping.sh')
-rw-r--r-- | tests/data_plane/vpp_lite_topo/lisp_6_remote_mapping.sh | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/data_plane/vpp_lite_topo/lisp_6_remote_mapping.sh b/tests/data_plane/vpp_lite_topo/lisp_6_remote_mapping.sh deleted file mode 100644 index f25e8ec..0000000 --- a/tests/data_plane/vpp_lite_topo/lisp_6_remote_mapping.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -function ping_lisp6 { - sudo ip netns exec vppns1 ping6 -c 10 6:0:2::2 - if [ $? -ne 0 ] ; then - echo "Can not ping other machine" - exit -1 - fi -} - -sudo ip netns exec vppns1 \ - bash -c " - ip link set dev lo up - ip addr add 6:0:1::2/64 dev veth_vpp1 - ip route add 6:0:2::0/64 via 6:0:1::1 -" - -sudo ip netns exec vppns2 \ - bash -c " - ip link set dev lo up - ip addr add 6:0:2::2/64 dev veth_vpp2 - ip route add 6:0:1::0/64 via 6:0:2::1 -" - -ping_lisp6 - -expect << EOF -spawn telnet localhost 5003 -expect -re ".*>" -send "set int ip address del host-intervpp2 6:0:3::2/64\r" -expect -re ".*>" -send "set int ip address host-intervpp2 6:0:3::20/64\r" -expect -re ".*>" -EOF - -expect << EOF -spawn telnet localhost 5002 -expect -re ".*>" -send "lisp remote-mapping del vni 0 deid 6:0:2::0/64 seid 6:0:1::0/64 rloc 6:0:3::2\r" -expect -re ".*>" -send "lisp remote-mapping add vni 0 deid 6:0:2::0/64 seid 6:0:1::0/64 rloc 6:0:3::20\r" -expect -re ".*>" -EOF - -ping_lisp6 |