summaryrefslogtreecommitdiffstats
path: root/src/vnet/vnet_all_api_h.h
AgeCommit message (Expand)AuthorFilesLines
2019-10-14gso: Add gso feature arcMohsin Kazmi1-0/+1
2019-10-07dhcp: Move to pluginNeale Ranns1-3/+0
2019-09-25api: split api generated filesOle Troan1-1/+0
2019-09-16api: autogenerate api trace print/endianOle Troan1-0/+4
2019-08-22dns: make the dns name resolver a pluginDave Barach1-1/+0
2019-07-05sctp: move to plugins, disabled by defaultFlorin Coras1-1/+0
2019-06-18ipsec: ipsec-tun protectNeale Ranns1-1/+0
2019-01-25deprecate tapcliDamjan Marion1-1/+0
2019-01-21virtio: Native virtio driverMohsin Kazmi1-0/+1
2018-11-22Add RFC5424 syslog protocol support (VPP-1139)Matus Fabian1-0/+1
2018-09-10vxlan-gbp: Add support for vxlan gbpMohsin Kazmi1-0/+1
2018-07-07PipesNeale Ranns1-0/+1
2018-06-25MAP: Move MAP-E/T to a plugin.Ole Troan1-1/+0
2018-06-21Implement DHCPv6 IA NA client (VPP-1094)Juraj Sloboda1-0/+1
2018-06-08Implement DHCPv6 PD client (VPP-718, VPP-1050)Juraj Sloboda1-0/+1
2018-05-04Flow: Rename IPFIX exporter.Ole Troan1-1/+1
2018-03-21bond: Add bonding driver and LACP protocolSteven1-0/+1
2018-03-16QoS recording and markingNeale Ranns1-0/+1
2018-03-16IPv6 ND Router discovery control plane (VPP-1095)Juraj Sloboda1-0/+1
2018-03-14IPIP: Add IP{v4,v6} over IP{v4,v6} configured tunnel support.Ole Troan1-0/+1
2018-03-01SCTP: API to add a sub-connectionMarco Varlese1-0/+1
2017-12-18SR-MPLS: binary API and automated steeringPablo Camarillo1-18/+17
2017-12-04tap_v2: move code to vnet/devices/tapDamjan Marion1-1/+1
2017-11-30virtio: fast TAP interfaces with vhost-net backendDamjan Marion1-0/+1
2017-11-10Break up vpe.apiNeale Ranns1-0/+3
2017-11-09BIERNeale Ranns1-0/+1
2017-11-07UDP Encapsulation.Neale Ranns1-0/+1
2017-10-13VPP-1027: DNS name resolverDave Barach1-0/+1
2017-10-06Initial GENEVE TUNNEL implementation and tests.Marco Varlese1-0/+1
2017-08-17TCP source address automationDave Barach1-0/+1
2017-07-05Add API support for LLDP config/interface setSteve Shin1-0/+1
2017-06-08P2P Ethernet - APIPavel Kotucek1-0/+1
2017-05-05First commit SR MPLSPablo Camarillo1-1/+1
2017-03-01dpdk: be a pluginDamjan Marion1-3/+0
2017-03-01VPP-598: tcp stack initial commitDave Barach1-0/+1
2017-02-21Add Overlay Network Engine APIFilip Tehlar1-0/+1
2017-01-27API refactoring : policerPavel Kotucek1-0/+1
2017-01-27API refactoring : copPavel Kotucek1-0/+1
2017-01-26API refactoring : dhcpPavel Kotucek1-0/+1
2017-01-25API refactoring : flowPavel Kotucek1-0/+1
2017-01-25API refactoring : classifyPavel Kotucek1-0/+1
2017-01-10API refactoring : l2, mpls, srPavel Kotucek1-0/+2
2017-01-10API refactoring : dpdkPavel Kotucek1-0/+3
2016-12-28Reorganize source tree to use single autotools instanceDamjan Marion1-0/+57
="CENTOS" sudo yum install -y python-devel python-virtualenv VIRL_TOPOLOGY=$(cat ${SCRIPT_DIR}/VIRL_TOPOLOGY_CENTOS) VIRL_RELEASE=$(cat ${SCRIPT_DIR}/VIRL_RELEASE_CENTOS) else DISTRO="UBUNTU" export DEBIAN_FRONTEND=noninteractive sudo apt-get -y update sudo apt-get -y install libpython2.7-dev python-virtualenv VIRL_TOPOLOGY=$(cat ${SCRIPT_DIR}/VIRL_TOPOLOGY_UBUNTU) VIRL_RELEASE=$(cat ${SCRIPT_DIR}/VIRL_RELEASE_UBUNTU) fi SSH_OPTIONS="-i ${VIRL_PKEY} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o BatchMode=yes -o LogLevel=error" function ssh_do() { echo echo "### " ssh $@ ssh ${SSH_OPTIONS} $@ } rm -f ${VIRL_PKEY} cat > ${VIRL_PKEY} <<EOF -----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEA+IH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LKAKZ/R/K32hAsikBC8SVPQTPniyaifFWx81diblalff2hX4ipTf7Yx24I wMIMZuW7Im/R7QMef4+94G3Bad7p7JuE/qnAEHJ2OBnu+eYfxaK35XDsrq6XMazS NqHE7hOq3giVfgg+C12hCKMCgYEAtu9dbYcG5owbehxzfRI2/OCRsjz/t1bv1seM xVMND4XI6xb/apBWAZgZpIFrqrWoIBM3ptfsKipZe91ngBPUnL9s0Dolx452RVAj yctHB8uRxWYgqDkjsxtzXf1HnZBBkBS8CUzYj+hdfuddoeKLaY3invXLCiV+PpXS U4KAK9kCgYEAtSv0m5+Fg74BbAiFB6kCh11FYkW94YI6B/E2D/uVTD5dJhyEUFgZ cWsudXjMki8734WSpMBqBp/J8wG3C9ZS6IpQD+U7UXA+roB7Qr+j4TqtWfM+87Rh maOpG56uAyR0w5Z9BhwzA3VakibVk9KwDgZ29WtKFzuATLFnOtCS46E= -----END RSA PRIVATE KEY----- EOF chmod 600 ${VIRL_PKEY} # # Pick a random host from the array of VIRL servers, and attempt # to reach it and verify it's status. # # The server must be reachable, and have a "status" file with # the content "PRODUCTION", to be selected. # # If the server is not reachable, or does not have the correct # status, remove it from the array and start again. # # Abort if there are no more servers left in the array. # while [[ ! "$VIRL_SERVER" ]] do num_hosts=${#VIRL_SERVERS[@]} if [ $num_hosts == 0 ] then echo "No more VIRL candidate hosts available, failing." exit 127 fi element=$[ $RANDOM % $num_hosts ] virl_server_candidate=${VIRL_SERVERS[$element]} virl_server_status=$(ssh ${SSH_OPTIONS} ${VIRL_USERNAME}@${virl_server_candidate} cat $VIRL_SERVER_STATUS_FILE 2>&1) echo VIRL HOST $virl_server_candidate status is \"$virl_server_status\" if [ "$virl_server_status" == "$VIRL_SERVER_EXPECTED_STATUS" ] then # Candidate is in good status. Select this server. VIRL_SERVER="$virl_server_candidate" else # Candidate is in bad status. Remove from array. VIRL_SERVERS=("${VIRL_SERVERS[@]:0:$element}" "${VIRL_SERVERS[@]:$[$element+1]}") fi done # Temporarily download VPP and DPDK packages from nexus.fd.io case "$DISTRO" in CENTOS ) VPP_ARTIFACTS="vpp vpp-devel vpp-lib vpp-plugins" DPDK_ARTIFACTS="" PACKAGE="rpm" VPP_CLASSIFIER="" DPDK_STABLE_VER=$(cat ${SCRIPT_DIR}/DPDK_STABLE_VER).x86_64 VPP_REPO_URL=$(cat ${SCRIPT_DIR}/VPP_REPO_URL_CENTOS) VPP_STABLE_VER=$(cat ${SCRIPT_DIR}/VPP_STABLE_VER_CENTOS) ;; UBUNTU ) VPP_ARTIFACTS="vpp vpp-dbg vpp-dev vpp-lib vpp-plugins" DPDK_ARTIFACTS="vpp-dpdk-dkms" PACKAGE="deb" VPP_CLASSIFIER="-deb" DPDK_STABLE_VER=$(cat ${SCRIPT_DIR}/DPDK_STABLE_VER)_amd64 VPP_REPO_URL=$(cat ${SCRIPT_DIR}/VPP_REPO_URL_UBUNTU) VPP_STABLE_VER=$(cat ${SCRIPT_DIR}/VPP_STABLE_VER_UBUNTU) esac if [ "${#}" -ne "0" ]; then arr=(${@}) echo ${arr[0]} # Download DPDK parts not included in dpdk plugin of vpp build for ARTIFACT in ${DPDK_ARTIFACTS}; do wget -q "${VPP_REPO_URL}/${ARTIFACT}/${DPDK_STABLE_VER}/${ARTIFACT}-${DPDK_STABLE_VER}${VPP_CLASSIFIER}.${PACKAGE}" || exit done else rm -f *.${PACKAGE} for ARTIFACT in ${DPDK_ARTIFACTS}; do wget -q "${VPP_REPO_URL}/${ARTIFACT}/${DPDK_STABLE_VER}/${ARTIFACT}-${DPDK_STABLE_VER}${VPP_CLASSIFIER}.${PACKAGE}" || exit done for ARTIFACT in ${VPP_ARTIFACTS}; do wget -q "${VPP_REPO_URL}/${ARTIFACT}/${VPP_STABLE_VER}/${ARTIFACT}-${VPP_STABLE_VER}${VPP_CLASSIFIER}.${PACKAGE}" || exit done fi VPP_PKGS=(*.$PACKAGE) echo ${VPP_PKGS[@]} VIRL_DIR_LOC="/tmp" VPP_PKGS_FULL=(${VPP_PKGS[@]}) # Prepend directory location at remote host to deb file list for index in "${!VPP_PKGS_FULL[@]}"; do VPP_PKGS_FULL[${index}]=${VIRL_DIR_LOC}/${VPP_PKGS_FULL[${index}]} done echo "Updated file names: " ${VPP_PKGS_FULL[@]} # Copy the files to VIRL host scp ${SSH_OPTIONS} *.${PACKAGE} \ ${VIRL_USERNAME}@${VIRL_SERVER}:${VIRL_DIR_LOC}/ result=$? if [ "${result}" -ne "0" ]; then echo "Failed to copy vpp deb files to virl host" echo ${result} exit ${result} fi # Start a simulation on VIRL server echo "Starting simulation on VIRL server" function stop_virl_simulation { ssh ${SSH_OPTIONS} ${VIRL_USERNAME}@${VIRL_SERVER}\ "stop-testcase ${VIRL_SID}" } VIRL_SID=$(ssh ${SSH_OPTIONS} \ ${VIRL_USERNAME}@${VIRL_SERVER} \ "start-testcase -vv --copy ${VIRL_TOPOLOGY} \ --expiry ${VIRL_SESSION_EXPIRY} \ --release ${VIRL_RELEASE} ${VPP_PKGS_FULL[@]}") retval=$? if [ ${retval} -ne "0" ]; then echo "VIRL simulation start failed" exit ${retval} fi if [[ ! "${VIRL_SID}" =~ session-[a-zA-Z0-9_]{6} ]]; then echo "No VIRL session ID reported." exit 127 fi # Upon script exit, cleanup the simulation execution trap stop_virl_simulation EXIT echo ${VIRL_SID} ssh_do ${VIRL_USERNAME}@${VIRL_SERVER} cat /scratch/${VIRL_SID}/topology.yaml # Download the topology file from virl session scp ${SSH_OPTIONS} \ ${VIRL_USERNAME}@${VIRL_SERVER}:/scratch/${VIRL_SID}/topology.yaml \ topologies/enabled/topology.yaml retval=$? if [ ${retval} -ne "0" ]; then echo "Failed to copy topology file from VIRL simulation" exit ${retval} fi virtualenv --system-site-packages env . env/bin/activate echo pip install pip install -r ${SCRIPT_DIR}/requirements.txt # There are used three iterations of tests there to check # the stability and reliability of the results RC=0 MORE_FAILS=0 for test_set in 1 2 3 do echo echo ${test_set}. test loop PYTHONPATH=`pwd` pybot -L TRACE -W 136\ -v TOPOLOGY_PATH:${SCRIPT_DIR}/topologies/enabled/topology.yaml \ --suite "tests.vpp.func" \ --include vm_envAND3_node_single_link_topo \ --include vm_envAND3_node_double_link_topo \ --exclude PERFTEST \ --noncritical EXPECTED_FAILING \ --output log_test_set${test_set} \ tests/ PARTIAL_RC=$(echo $?) if [ ${PARTIAL_RC} -eq 250 ]; then MORE_FAILS=1 fi RC=$((RC+PARTIAL_RC)) done # Log the final result if [ ${RC} -eq 0 ]; then set +x echo echo "========================================================================================================================================" echo "Final result of all test loops: | PASS |" echo "All critical tests have passed." echo "========================================================================================================================================" echo set -x elif [ ${MORE_FAILS} -eq 0 ]; then if [ ${RC} -eq 1 ]; then HLP_STR="test has" else HLP_STR="tests have" fi set +x echo echo "========================================================================================================================================" echo "Final result of all test loops: | FAIL |" echo "${RC} critical ${HLP_STR} failed." echo "========================================================================================================================================" echo set -x else set +x echo echo "========================================================================================================================================" echo "Final result of all test loops: | FAIL |" echo "More then 250 critical tests have failed in one test loop." echo "========================================================================================================================================" echo set -x fi echo Post-processing test data... # Rebot output post-processing rebot --noncritical EXPECTED_FAILING \ --output output.xml \ ./log_test_set1.xml ./log_test_set2.xml ./log_test_set3.xml # Remove unnecessary log files rm -f ./log_test_set1.xml ./log_test_set2.xml ./log_test_set3.xml echo Post-processing finished. if [ ${RC} -eq 0 ]; then RETURN_STATUS=0 else RETURN_STATUS=1 fi exit ${RETURN_STATUS}