summaryrefslogtreecommitdiffstats
path: root/tests/data_plane/vpp_lite_topo/lisp_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data_plane/vpp_lite_topo/lisp_test.sh')
-rwxr-xr-xtests/data_plane/vpp_lite_topo/lisp_test.sh176
1 files changed, 0 insertions, 176 deletions
diff --git a/tests/data_plane/vpp_lite_topo/lisp_test.sh b/tests/data_plane/vpp_lite_topo/lisp_test.sh
deleted file mode 100755
index abacd42..0000000
--- a/tests/data_plane/vpp_lite_topo/lisp_test.sh
+++ /dev/null
@@ -1,176 +0,0 @@
-#!/usr/bin/env bash
-
-if [ "$1" == "-h" ] || [ "$1" == "-help" ] ; then
- echo "lisp_test.sh [ip4] [ip6] [ip4_ip6] [4o6] [6o4] [remote] [remote6]"
- echo " ip4 - test ip4 topology"
- echo " ip6 - test ip6 topology"
- echo " ip4_ip6 - test ip4 and ip6 topology"
- echo " 4o6 - test ip4 over ip6"
- echo " 6o4 - test ip6 over ip4"
- echo " remote - test static mapping, without ODL"
- echo " remote6 - test static mapping for IPv6, without ODL"
- exit 0
-fi
-
-set -x
-
-VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/"
-VPP1_CONF="vpp1.conf"
-VPP2_CONF="vpp2.conf"
-ODL_CONFIG_DIR="../configs/odl/"
-ODL_ADD_CONFIG1="add_ipv4_odl1.txt"
-ODL_ADD_CONFIG1_4o6="add_ipv4o6_odl1.txt"
-ODL_ADD_CONFIG1_6="add_ipv6_odl1.txt"
-ODL_ADD_CONFIG1_6o4="add_ipv6o4_odl1.txt"
-ODL_ADD_CONFIG2="add_ipv4_odl2.txt"
-ODL_ADD_CONFIG2_4o6="add_ipv4o6_odl2.txt"
-ODL_ADD_CONFIG2_6="add_ipv6_odl2.txt"
-ODL_ADD_CONFIG2_6o4="add_ipv6o4_odl2.txt"
-ODL_REPLACE_CONFIG2="replace_ipv4_odl2.txt"
-ODL_REPLACE_CONFIG2_4o6="replace_ipv4o6_odl2.txt"
-ODL_REPLACE_CONFIG2_6="replace_ipv6_odl2.txt"
-ODL_REPLACE_CONFIG2_6o4="replace_ipv6o4_odl2.txt"
-
-source config.sh
-source odl_utils.sh
-
-# make sure there are no vpp instances running
-sudo pkill vpp
-
-# delete previous incarnations if they exist
-sudo ip netns exec intervppns ifconfig vppbr down
-sudo ip netns exec intervppns brctl delbr vppbr
-sudo ip link del dev veth_vpp1 &> /dev/null
-sudo ip link del dev veth_vpp2 &> /dev/null
-sudo ip link del dev veth_intervpp1 &> /dev/null
-sudo ip link del dev veth_intervpp2 &> /dev/null
-sudo ip link del dev veth_odl &> /dev/null
-sudo ip netns del vppns1 &> /dev/null
-sudo ip netns del vppns2 &> /dev/null
-sudo ip netns del intervppns &> /dev/null
-
-if [ "$1" != "remote" ] && [ "$1" != "remote6" ] ; then
- odl_clear_all
-fi
-
-if [ "$1" == "clean" ] ; then
- exit 0;
-fi
-
-sleep 1
-
-# create vpp to clients and inter-vpp namespaces
-sudo ip netns add vppns1
-sudo ip netns add vppns2
-sudo ip netns add intervppns
-
-# create vpp and odl interfaces and set them in intervppns
-sudo ip link add veth_intervpp1 type veth peer name intervpp1
-sudo ip link add veth_intervpp2 type veth peer name intervpp2
-sudo ip link add veth_odl type veth peer name odl
-sudo ip link set dev intervpp1 up
-sudo ip link set dev intervpp2 up
-sudo ip link set dev odl up
-sudo ip link set dev veth_intervpp1 up netns intervppns
-sudo ip link set dev veth_intervpp2 up netns intervppns
-sudo ip link set dev veth_odl up netns intervppns
-
-# create bridge in intervppns and add vpp and odl interfaces
-sudo ip netns exec intervppns brctl addbr vppbr
-sudo ip netns exec intervppns brctl addif vppbr veth_intervpp1
-sudo ip netns exec intervppns brctl addif vppbr veth_intervpp2
-sudo ip netns exec intervppns brctl addif vppbr veth_odl
-sudo ip netns exec intervppns ifconfig vppbr up
-
-# create and configure 1st veth client to vpp pair
-sudo ip link add veth_vpp1 type veth peer name vpp1
-sudo ip link set dev vpp1 up
-sudo ip link set dev veth_vpp1 up netns vppns1
-
-# create and configure 2nd veth client to vpp pair
-sudo ip link add veth_vpp2 type veth peer name vpp2
-sudo ip link set dev vpp2 up
-sudo ip link set dev veth_vpp2 up netns vppns2
-
-# set odl iface ip and disable checksum offloading
-sudo ip addr add 6.0.3.100/24 dev odl
-sudo ip addr add 6:0:3::100/64 dev odl
-sudo ethtool --offload odl rx off tx off
-
-if [ "$1" == "ip6" ] ; then
- VPP1_CONF="vpp1_6.conf"
- VPP2_CONF="vpp2_6.conf"
-fi
-
-if [ "$1" == "ip4_ip6" ] ; then
- VPP1_CONF="vpp1_ip4_6.conf"
- VPP2_CONF="vpp2_ip4_6.conf"
-fi
-
-if [ "$1" == "4o6" ] ; then
- VPP1_CONF="vpp1_4o6.conf"
- VPP2_CONF="vpp2_4o6.conf"
-fi
-
-if [ "$1" == "6o4" ] ; then
- VPP1_CONF="vpp1_6o4.conf"
- VPP2_CONF="vpp2_6o4.conf"
-fi
-
-if [ "$1" == "remote" ] ; then
- VPP1_CONF="vpp1_remote.conf"
- VPP2_CONF="vpp2_remote.conf"
-fi
-
-if [ "$1" == "remote6" ] ; then
- VPP1_CONF="vpp1_6_remote.conf"
- VPP2_CONF="vpp2_6_remote.conf"
-fi
-
-# start vpp1 and vpp2 in separate chroot
-sudo $VPP_LITE_BIN \
- unix { log /tmp/vpp1.log cli-listen \
- localhost:5002 full-coredump \
- exec $VPP_LITE_CONF/${VPP1_CONF} } \
- api-trace { on } api-segment {prefix xtr1}
-
-sudo $VPP_LITE_BIN \
- unix { log /tmp/vpp2.log cli-listen \
- localhost:5003 full-coredump \
- exec $VPP_LITE_CONF/${VPP2_CONF}} \
- api-trace { on } api-segment {prefix xtr2}
-
-
-if [ "$#" == 0 ] || [ "$1" == "ip4" ] ; then
- source lisp_ip4.sh
-fi
-
-if [ "$1" == "ip6" ] ; then
- source lisp_ip6.sh
-fi
-
-if [ "$1" == "ip4_ip6" ] ; then
- source lisp_ip4.sh
- source lisp_ip6.sh
-
- ping_lisp
- ping_lisp6
-fi
-
-if [ "$1" == "4o6" ] ; then
- source lisp_ip4o6.sh
-fi
-
-if [ "$1" == "6o4" ] ; then
- source lisp_ip6o4.sh
-fi
-
-if [ "$1" == "remote" ] ; then
- source lisp_remote_mapping.sh
-fi
-
-if [ "$1" == "remote6" ] ; then
- source lisp_6_remote_mapping.sh
-fi
-
-echo "Success"
href='#n371'>371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576