X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Foverlay%2Fsrv6.robot;h=83ec8949a4c6bbd535d5429069dabd7fc055e877;hb=HEAD;hp=806cab2f4d82b922059a279ec6ed004ceaaaf005;hpb=a6f1a1511bbede1b86e95d00cfad340897432c92;p=csit.git diff --git a/resources/libraries/robot/overlay/srv6.robot b/resources/libraries/robot/overlay/srv6.robot index 806cab2f4d..83ec8949a4 100644 --- a/resources/libraries/robot/overlay/srv6.robot +++ b/resources/libraries/robot/overlay/srv6.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Cisco and/or its affiliates. +# Copyright (c) 2023 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -248,7 +248,7 @@ | | Run Keyword If | ${dut2_status} | | ... | VPP Interface Set IP Address | | ... | ${dut2} | ${DUT2_${int}2}[0] | ${dut2_if2_ip6} | ${prefix} -| | Vpp All Ra Suppress Link Layer | ${nodes} +| | Vpp Interfaces RA Suppress On All Nodes | ${nodes} | | FOR | ${number} | IN RANGE | 2 | ${dst_addr_nr}+2 | | | ${hexa_nr}= | Convert To Hex | ${number} | | | VPP Add IP Neighbor @@ -263,12 +263,13 @@ | | ... | VPP Add IP Neighbor | | ... | ${dut1} | ${DUT1_${int}2}[0] | ${dut2_if1_ip6} | | ... | ${DUT2_${int}1_mac}[0] -| | Run Keyword Unless | ${dut2_status} +| | Run Keyword If | not ${dut2_status} | | ... | VPP Add IP Neighbor | | ... | ${dut1} | ${DUT1_${int}2}[0] | ${dut2_if1_ip6} | ${TG_pf2_mac}[0] | | Run Keyword If | ${dut2_status} | | ... | VPP Add IP Neighbor -| | ... | ${dut2} | ${DUT2_${int}1}[0] | ${dut1_if2_ip6}| ${DUT1_${int}2_mac}[0] +| | ... | ${dut2} | ${DUT2_${int}1}[0] | ${dut1_if2_ip6} +| | ... | ${DUT1_${int}2_mac}[0] | | ${sid1}= | Set Variable If | | ... | "${n}" == "1" | ${dut2_sid1} | | ... | "${n}" == "2" | ${dut2_sid1_1} @@ -366,16 +367,10 @@ | | Set up memif interfaces on DUT node | ${dut1} | ${sock1} | ${sock1} | | ... | ${1} | dut1-memif-1-if1 | dut1-memif-1-if2 | ${rxq_count_int} | | ... | ${rxq_count_int} -| | VPP Set interface MTU | ${dut1} | ${dut1-memif-1-if1} -| | VPP Set interface MTU | ${dut1} | ${dut1-memif-1-if2} | | Run Keyword If | ${dut2_status} | | ... | Set up memif interfaces on DUT node | ${dut2} | ${sock2} | ${sock2} | | ... | ${1} | dut2-memif-1-if1 | dut2-memif-1-if2 | ${rxq_count_int} | | ... | ${rxq_count_int} -| | Run Keyword If | ${dut2_status} -| | ... | VPP Set interface MTU | ${dut2} | ${dut2-memif-1-if1} -| | Run Keyword If | ${dut2_status} -| | ... | VPP Set interface MTU | ${dut2} | ${dut2-memif-1-if2} | | FOR | ${dut} | IN | @{duts} | | | Show Memif | ${nodes['${dut}']} | | END @@ -399,12 +394,12 @@ | | Run Keyword If | ${dut2_status} | | ... | VPP Interface Set IP Address | ${dut2} | ${dut2-memif-1-if2} | | ... | ${dut2-memif-1-if2_ip6} | ${mem_prefix} -| | Vpp All Ra Suppress Link Layer | ${nodes} +| | Vpp Interfaces RA Suppress On All Nodes | ${nodes} | | Run Keyword If | ${dut2_status} | | ... | VPP Add IP Neighbor | | ... | ${dut1} | ${DUT1_${int}2}[0] | ${dut2_if1_ip6} | | ... | ${DUT2_${int}1_mac}[0] -| | Run Keyword Unless | ${dut2_status} +| | Run Keyword If | not ${dut2_status} | | ... | VPP Add IP Neighbor | | ... | ${dut1} | ${DUT1_${int}2}[0] | ${dut2_if1_ip6} | ${TG_pf2_mac}[0] | | Run Keyword If | ${dut2_status} @@ -427,15 +422,15 @@ | | ... | VPP Add IP Neighbor | ${dut2} | | ... | ${dut2-memif-1-if1} | ${dut2_nh} | ${dut2-memif-1-if2_mac} | | Vpp Route Add | ${dut1} | ${dut2_sid1} | ${sid_prefix} -| | ... | gateway=${dut2_if1_ip6} | interface=${dut1_if2} +| | ... | gateway=${dut2_if1_ip6} | interface=${DUT1_${int}2}[0] | | Vpp Route Add | ${dut1} | ${out_sid2_1} | ${sid_prefix} -| | ... | gateway=${tg_if1_ip6_subnet}2 | interface=${dut1_if1} +| | ... | gateway=${tg_if1_ip6_subnet}2 | interface=${DUT1_${int}1}[0] | | Run Keyword If | ${dut2_status} | | ... | Vpp Route Add | ${dut2} | ${dut1_sid2} | ${sid_prefix} -| | ... | gateway=${dut1_if2_ip6} | interface=${dut2_if1} +| | ... | gateway=${dut1_if2_ip6} | interface=${DUT2_${int}1}[0] | | Run Keyword If | ${dut2_status} | | ... | Vpp Route Add | ${dut2} | ${out_sid1_1} | ${sid_prefix} -| | ... | gateway=${tg_if2_ip6_subnet}2 | interface=${dut2_if2} +| | ... | gateway=${tg_if2_ip6_subnet}2 | interface=${DUT2_${int}2}[0] # Configure SRv6 for direction0 on DUT1 | | Set SR Encaps Source Address on DUT | ${dut1} | ${dut1_sid1} | | @{sid_list_dir0}= | Create List | ${dut2_sid1} | ${out_sid1_1}