CSIT-1009: SRv6 proxy tests
[csit.git] / resources / libraries / robot / overlay / srv6.robot
index 9be3f97..a0a557e 100644 (file)
 | | ... | None; required for L3 xconnects). Type: string
 | | ... | - fib_table - FIB table for IPv4/IPv6 lookup (Optional, default value:
 | | ... | None; required for L3 routing). Type: string
+| | ... | - out_if - Interface name of local interface for sending traffic
+| | ... | towards the Service Function (Optional, default value: None;
+| | ... | required for SRv6 endpoint to SR-unaware appliance). Type: string
+| | ... | - in_if - Interface name of local interface receiving the traffic
+| | ... | coming back from the Service Function (Optional, default value:
+| | ... | None; required for SRv6 endpoint to SR-unaware appliance).
+| | ... | Type: string
+| | ... | - src_addr - Source address on the packets coming back on in_if
+| | ... | interface (Optional, default value: None; required for SRv6 endpoint
+| | ... | to SR-unaware appliance via static proxy). Type: string
+| | ... | - sid_list - SID list (Optional, default value: []; required for SRv6
+| | ... | endpoint to SR-unaware appliance via static proxy). Type: list
 | | ...
 | | ... | *Example:*
 | | ...
 | | ... | \| end.dx4 \| interface=GigabitEthernet0/8/0 \| next_hop=10.0.0.1 \|
 | | ... | \| Configure SR LocalSID on DUT \| ${nodes['DUT2']} \| E:: \
 | | ... | \| end.dt6 \| fib_table=2 \|
+| | ... | \| Configure SR LocalSID on DUT \| ${nodes['DUT2']} \| E:: \
+| | ... | \| end.ad \| next_hop=10.0.0.1 \| out_if=DUT2_VHOST1 \
+| | ... | \| in_if=DUT2_VHOST2 \|
+| | ... | \| Configure SR LocalSID on DUT \| ${nodes['DUT2']} \| E:: \
+| | ... | \| end.as \| next_hop=10.0.0.1 \| out_if=DUT2_VHOST1 \
+| | ... | \| in_if=DUT2_VHOST2 \| src_addr=B:: \| sid_list=['C::', 'D::'] \|
 | | ...
 | | [Arguments] | ${dut_node} | ${local_sid} | ${behavior}
 | | ... | ${interface}=${None} | ${next_hop}=${None} | ${fib_table}=${None}
+| | ... | ${out_if}=${None} | ${in_if}=${None} | ${src_addr}=${None}
+| | ... | @{sid_list}
 | | ...
 | | Configure SR LocalSID | ${dut_node} | ${local_sid} | ${behavior}
 | | ... | interface=${interface} | next_hop=${next_hop} | fib_table=${fib_table}
+| | ... | out_if=${out_if} | in_if=${in_if} | src_addr=${src_addr}
+| | ... | sid_list=${sid_list}
 
 | Delete SR LocalSID on DUT
 | | [Documentation] | Delete SRv6 LocalSID on the given DUT node.
 | | ... | *Arguments:*
 | | ... | - dut_node - DUT node where to create SRv6 policy on. Type: dictionary
 | | ... | - bsid - BindingSID - local SID IPv6 address. Type: string
-| | ... | - mode - Encapsulation / insertion mode (Optional, default value:
-| | ... | encap). Type: string
+| | ... | - mode - Encapsulation / insertion mode. Type: string
 | | ... | - sid_list - SID list. Type: list
 | | ...
 | | ... | *Example:*
 | | ...
-| | ... | \| Configure SR Policy on DUT \| ${nodes['DUT2']} \| D:: \
-| | ... | \| mode=insert \| E::\| F:: \|
+| | ... | \| Configure SR Policy on DUT \| ${nodes['DUT2']} \| A:: \| encap \
+| | ... | \| B::\| C:: \|
+| | ... | \| Configure SR Policy on DUT \| ${nodes['DUT2']} \| D:: \| insert \
+| | ... | \| E::\| F:: \|
 | | ...
-| | [Arguments] | ${dut_node} | ${bsid} | ${mode}=encap | @{sid_list}
+| | [Arguments] | ${dut_node} | ${bsid} | ${mode} | @{sid_list}
 | | ...
-| | Configure SR Policy | ${dut_node} | ${bsid} | @{sid_list} | mode=${mode}
+| | Configure SR Policy | ${dut_node} | ${bsid} | ${sid_list} | mode=${mode}
 
 | Delete SR Policy on DUT
 | | [Documentation] | Delete SRv6 policy on the given DUT node.
 | | [Arguments] | ${dut_node} | ${ip6_addr}
 | | ...
 | | Set SR Encaps Source Address | ${dut_node} | ip6_addr=${ip6_addr}
+
+| Show SR Policies on all DUTs
+| | [Documentation] | Show SRv6 policies on all DUT nodes in topology.
+| | ...
+| | ... | *Arguments:*
+| | ... | - nodes - Topology. Type: dictionary
+| | ...
+| | ... | *Example:*
+| | ...
+| | ... | \| Show SR Policies on all DUTs \| ${nodes} \|
+| | ...
+| | [Arguments] | ${nodes}
+| | ...
+| | ${duts}= | Get Matches | ${nodes} | DUT*
+| | :FOR | ${dut} | IN | @{duts}
+| | | Show SR Policies | ${nodes['${dut}']}
+
+| Show SR Steering Policies on all DUTs
+| | [Documentation] | Show SRv6 steering policies on all DUT nodes in topology.
+| | ...
+| | ... | *Arguments:*
+| | ... | - nodes - Topology. Type: dictionary
+| | ...
+| | ... | *Example:*
+| | ...
+| | ... | \| Show SR Steering Policies on all DUTs \| ${nodes} \|
+| | ...
+| | [Arguments] | ${nodes}
+| | ...
+| | ${duts}= | Get Matches | ${nodes} | DUT*
+| | :FOR | ${dut} | IN | @{duts}
+| | | Show SR Steering Policies | ${nodes['${dut}']}
+
+| Show SR LocalSIDs on all DUTs
+| | [Documentation] | Show SRv6 LocalSIDs on all DUT nodes in topology.
+| | ...
+| | ... | *Arguments:*
+| | ... | - nodes - Topology. Type: dictionary
+| | ...
+| | ... | *Example:*
+| | ...
+| | ... | \| Show SR LocalSIDs on all DUTs \| ${nodes} \|
+| | ...
+| | [Arguments] | ${nodes}
+| | ...
+| | ${duts}= | Get Matches | ${nodes} | DUT*
+| | :FOR | ${dut} | IN | @{duts}
+| | | Show SR LocalSIDs | ${nodes['${dut}']}