FIX: VXLAN scale
[csit.git] / resources / libraries / robot / hoststack / tcp_setup.robot
1 # Copyright (c) 2019 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Library | resources.libraries.python.InterfaceUtil
16 | Library | resources.libraries.python.IPUtil
17 | Library | resources.libraries.python.tcp.TCPUtils
18 |
19 | Resource | resources/libraries/robot/ip/ip4.robot
20 |
21 | Documentation | L2 keywords to set up VPP to test tcp.
22
23 *** Keywords ***
24 | Set up HTTP server with parameters on the VPP node
25 | | [Documentation]
26 | | ... | Configure IP address on the port, set it up and start HTTP server on
27 | | ... | the VPP.
28 | |
29 | | ... | *Arguments:*
30 | | ... | - http_static_plugin - Use the HTTP static plugin http server.
31 | | ... | Type: boolean
32 | | ... | - prealloc_fifos - Max number of connections you expect to handle
33 | | ... | at one time. Type: string
34 | | ... | - fifo_size - FIFO size in kB. Type: string
35 | | ... | - private_segment_size - Private segment size. Number + unit.
36 | | ... | Type: string
37 | |
38 | | ... | *Example:*
39 | |
40 | | ... | \| Set up HTTP server with paramters on the VPP node \| ${true}\
41 | | ... | \| 400 \| 4096 \| 2g \|
42 | |
43 | | [Arguments] | ${http_static_plugin} | ${prealloc_fifos} | ${fifo_size}
44 | | ... | ${private_segment_size}
45 | |
46 | | Set Interface State | ${dut1} | ${dut1_if1} | up
47 | | VPP Interface Set IP Address | ${dut1} | ${dut1_if1} | 192.168.10.2 | 24
48 | | VPP Interface Set IP Address | ${dut1} | ${dut1_if1} | 192.168.20.2 | 24
49 | | VPP Interface Set IP Address | ${dut1} | ${dut1_if1} | 192.168.30.2 | 24
50 | | VPP Interface Set IP Address | ${dut1} | ${dut1_if1} | 192.168.40.2 | 24
51 | | VPP Interface Set IP Address | ${dut1} | ${dut1_if1} | 192.168.50.2 | 24
52 | | VPP Interface Set IP Address | ${dut1} | ${dut1_if1} | 192.168.60.2 | 24
53 | | VPP Interface Set IP Address | ${dut1} | ${dut1_if1} | 192.168.70.2 | 24
54 | | VPP Interface Set IP Address | ${dut1} | ${dut1_if1} | 192.168.80.2 | 24
55 | | Vpp Node Interfaces Ready Wait | ${dut1}
56 | | Start VPP HTTP server params | ${dut1} | ${http_static_plugin}
57 | | ... | ${prealloc_fifos} | ${fifo_size} | ${private_segment_size}