FIX: if MAC address must be updated after AVF interface creation
[csit.git] / resources / libraries / robot / overlay / gre.robot
1 # Copyright (c) 2016 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 | Resource | resources/libraries/robot/shared/interfaces.robot
16
17 *** Keywords ***
18 | Create GRE tunnel interface and set it up
19 | | [Documentation] | Create GRE tunnel interface and set it up on defined VPP node and put \
20 | | ... | the interface to UP state.
21 | | ...
22 | | ... | *Arguments:*
23 | | ... | - dut_node - DUT node where to create GRE tunnel. Type: dictionary
24 | | ... | - source_ip_address - GRE tunnel source IP address. Type: string
25 | | ... | - destination_ip_address - GRE tunnel destination IP address.
26 | | ... |   Type: string
27 | | ...
28 | | ... | *Return:*
29 | | ... | - name - Name of created GRE tunnel interface. Type: string
30 | | ... | - index - SW interface index of created GRE tunnel interface.
31 | | ... |   Type: integer
32 | | ...
33 | | ... | *Example:*
34 | | ...
35 | | ... | \| ${gre_name} \| ${gre_index}= \
36 | | ... | \| Create GRE tunnel interface and set it up \| ${dut} \
37 | | ... | \| 192.0.1.1 \| 192.0.1.2 \|
38 | | ...
39 | | [Arguments] | ${dut_node} | ${source_ip_address} | ${destination_ip_address}
40 | | ${name} | ${index}= | Create GRE tunnel interface
41 | | ... | ${dut_node} | ${source_ip_address} | ${destination_ip_address}
42 | | Set Interface State | ${dut_node} | ${index} | up
43 | | [Return] | ${name} | ${index}