CSIT-158: Tap interface tests
[csit.git] / tests / func / honeycomb / 030_vxlan.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 *** Variables ***
15 # Interfaces to run tests on.
16 | ${interface}= | ${node['interfaces']['port1']['name']}
17 | ${vx_interface}= | vx_tunnel_test
18 # Configuration which will be set and verified during tests.
19 | &{vxlan_settings}= | src=192.168.0.2 | dst=192.168.0.3 | vni=${88}
20 | ... | encap-vrf-id=${0}
21 | &{vxlan_settings2}= | src=192.168.0.4 | dst=192.168.0.5 | vni=${47}
22 | ... | encap-vrf-id=${0}
23 | &{vxlan_settings_ipv6}= | src=10::10 | dst=10::11 | vni=${88}
24 | ... | encap-vrf-id=${0}
25 | &{vxlan_settings_ipv6_long}= | src=10:0:0:0:0:0:0:10 | dst=10:0:0:0:0:0:0:11
26 | ... | vni=${88} | encap-vrf-id=${0}
27
28 *** Settings ***
29 | Resource | resources/libraries/robot/default.robot
30 | Resource | resources/libraries/robot/honeycomb/interfaces.robot
31 | Resource | resources/libraries/robot/honeycomb/vxlan.robot
32 # import additional VxLAN settings from resource file
33 | Variables | resources/test_data/honeycomb/vxlan.py
34 | Force Tags | honeycomb_sanity
35 | Documentation | *Honeycomb VxLAN management test suite.*
36 | ...
37 | ... | Test suite uses the first interface of the first DUT node.
38
39 *** Test Cases ***
40 | Honeycomb configures VxLAN tunnel
41 | | [Documentation] | Check if Honeycomb API can configure VxLAN settings.
42 | | Given VxLAN configuration from Honeycomb should be empty
43 | | ... | ${node} | ${vx_interface}
44 | | And VxLAN configuration from VAT should be empty | ${node}
45 | | When Honeycomb sets interface VxLAN configuration
46 | | ... | ${node} | ${vx_interface} | ${vxlan_settings}
47 | | Then VxLAN configuration from Honeycomb should be
48 | | ... | ${node} | ${vx_interface} | ${vxlan_settings}
49 | | And VxLAN configuration from VAT should be
50 | | ... | ${node} | ${vxlan_settings}
51
52 | Honeycomb disables VxLAN tunnel
53 | | [Documentation] | Check if Honeycomb API can reset VxLAN configuration.
54 | | Given VxLAN configuration from Honeycomb should be
55 | | ... | ${node} | ${vx_interface} | ${vxlan_settings}
56 | | And VxLAN configuration from VAT should be
57 | | ... | ${node} | ${vxlan_settings}
58 | | When Honeycomb removes VxLAN tunnel settings | ${node} | ${vx_interface}
59 | | Then VxLAN configuration from Honeycomb should be empty
60 | | ... | ${node} | ${vx_interface}
61 | | And VxLAN configuration from VAT should be empty | ${node}
62
63 Honeycomb can configure VXLAN tunnel after one has been disabled
64 | | [Documentation] | Check if Honeycomb API can configure VxLAN settings again\
65 | | ... | after previous settings have been removed.
66 | | [Teardown] | Honeycomb removes VxLAN tunnel settings
67 | | ... | ${node} | ${vx_interface}
68 | | Given VxLAN configuration from Honeycomb should be empty
69 | | ... | ${node} | ${vx_interface}
70 | | And VxLAN configuration from VAT should be empty | ${node}
71 | | When Honeycomb sets interface VxLAN configuration
72 | | ... | ${node} | ${vx_interface} | ${vxlan_settings2}
73 | | Then VxLAN configuration from Honeycomb should be
74 | | ... | ${node} | ${vx_interface} | ${vxlan_settings2}
75 | | And VxLAN configuration from VAT should be
76 | | ... | ${node} | ${vxlan_settings2}
77
78 | Honeycomb does not set VxLAN configuration on another interface type
79 | | [Documentation] | Check if Honeycomb API prevents setting VxLAN\
80 | | ... | on incorrect interface.
81 | | Given VxLAN configuration from Honeycomb should be empty
82 | | ... | ${node} | ${interface}
83 | | And VxLAN configuration from VAT should be empty | ${node}
84 | | When Honeycomb fails setting VxLan on different interface type
85 | | ... | ${node} | ${interface} | ${vxlan_settings2}
86 | | Then VxLAN configuration from Honeycomb should be empty
87 | | ... | ${node} | ${interface}
88 | | And VxLAN configuration from VAT should be empty
89 | | ... | ${node}
90
91 | Honeycomb does not set invalid VxLAN configuration
92 | | [Documentation] | Check if Honeycomb API prevents setting incorrect VxLAN\
93 | | ... | settings.
94 | | Given VxLAN configuration from Honeycomb should be empty
95 | | ... | ${node} | ${vx_interface}
96 | | And VxLAN configuration from VAT should be empty | ${node}
97 | | When Honeycomb fails setting invalid VxLAN configuration
98 | | ... | ${node} | ${vx_interface} | ${vxlan_invalid}
99 | | Then VxLAN configuration from Honeycomb should be empty
100 | | ... | ${node} | ${vx_interface}
101
102 | Honeycomb configures VxLAN tunnel with ipv6
103 | | [Documentation] | Check if Honeycomb API can configure VxLAN with\
104 | | ... | ipv6 settings.
105 | | [Teardown] | Honeycomb removes VxLAN tunnel settings
106 | | ... | ${node} | ${vx_interface}
107 | | Given VxLAN configuration from Honeycomb should be empty
108 | | ... | ${node} | ${vx_interface}
109 | | And VxLAN configuration from VAT should be empty | ${node}
110 | | When Honeycomb sets interface VxLAN configuration
111 | | ... | ${node} | ${vx_interface} | ${vxlan_settings_ipv6}
112 | | Then VxLAN configuration from Honeycomb should be
113 | | ... | ${node} | ${vx_interface} | ${vxlan_settings_ipv6_long}
114 | | And VxLAN configuration from VAT should be
115 | | ... | ${node} | ${vxlan_settings_ipv6}