diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2016-09-28 14:31:35 +0200 |
---|---|---|
committer | Filip Tehlar <ftehlar@cisco.com> | 2016-09-28 14:31:35 +0200 |
commit | ae57efc8dc2cd1d70352497b2cb6d57cddb06fa2 (patch) | |
tree | 0d72111b2d9f0c562373f2e09c219d7664f97120 /tests/data_plane/vpp_lite_topo/topologies | |
parent | bf231ba795387064e7c4f1781240619429a4ef29 (diff) |
Add adjacency test
* add 4o4 and 6o6 LISP adjacency tests
* rename basic_topo file to 2_node_topo
Change-Id: Iea386b10948437f5b6ee3c5539deb22bc923f88e
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'tests/data_plane/vpp_lite_topo/topologies')
-rw-r--r-- | tests/data_plane/vpp_lite_topo/topologies/2_node_topo.sh (renamed from tests/data_plane/vpp_lite_topo/topologies/basic_topo.sh) | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/tests/data_plane/vpp_lite_topo/topologies/basic_topo.sh b/tests/data_plane/vpp_lite_topo/topologies/2_node_topo.sh index 15aaa51..eafa09e 100644 --- a/tests/data_plane/vpp_lite_topo/topologies/basic_topo.sh +++ b/tests/data_plane/vpp_lite_topo/topologies/2_node_topo.sh @@ -1,6 +1,37 @@ -#!/usr/bin/env bash -function basic_topo_clean +# +# +--------+ +# | | +# | MR | +# | | +# +--------+ +# |6.0.3.100 +#6:0:1::2 |6:0:3::100 +#6.0.1.2 vpp1 +--------+ | +--------+ +# +---------+ |intervpp1 |intervpp2| |vpp2 +# | VPP1 +----------+---------+ VPP2 +---------+ +# | | | | 6.0.2.2 +# +--------+ +--------+ 6:0:2::2 +# + +function set_arp +{ + mac=`ip netns exec vppns1 ip a show dev veth_vpp1 | grep "link/ether" | awk '{print $2}'` + echo "set ip arp host-vpp1 6.0.1.2 $mac" | nc 0 5002 + echo "set ip6 neighbor host-vpp1 6:0:1::2 $mac" | nc 0 5002 + + mac=`ip netns exec vppns2 ip a show dev veth_vpp2 | grep "link/ether" | awk '{print $2}'` + echo "set ip arp host-vpp2 6.0.2.2 $mac" | nc 0 5003 + echo "set ip6 neighbor host-vpp2 6:0:2::2 $mac" | nc 0 5003 + + mac=`echo "sh hard host-intervpp1" | nc 0 5002 | grep 'Ethernet address' | awk '{print $3}'` + echo "set ip arp host-intervpp2 6.0.3.1 $mac" | nc 0 5003 + + mac=`echo "sh hard host-intervpp2" | nc 0 5003 | grep 'Ethernet address' | awk '{print $3}'` + echo "set ip arp host-intervpp1 6.0.3.2 $mac" | nc 0 5002 +} + +function 2_node_topo_clean { echo "Clearing all VPP instances.." pkill vpp --signal 9 @@ -23,7 +54,7 @@ function basic_topo_clean fi } -function basic_topo_setup +function 2_node_topo_setup { # create vpp to clients and inter-vpp namespaces @@ -107,4 +138,6 @@ function basic_topo_setup post_curl "add-mapping" ${ODL_CONFIG_FILE1} post_curl "add-mapping" ${ODL_CONFIG_FILE2} fi + + set_arp } |