Find PDR using binary search
[csit.git] / tests / suites / honeycomb / 2 - 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 # Node and interfaces to run tests on.
16 | ${node}= | ${nodes['DUT1']}
17 | ${interface}= | ${node['interfaces']['port1']['name']}
18 | ${vx_interface}= | vx_tunnel_test
19 # Configuration which will be set and verified during tests.
20 | &{vxlan_settings}= | src=192.168.0.2 | dst=192.168.0.3 | vni=${88}
21 | ... | encap-vrf-id=${0}
22 | &{vxlan_settings2}= | src=192.168.0.4 | dst=192.168.0.5 | vni=${47}
23 | ... | encap-vrf-id=${0}
24 | &{vxlan_settings_ipv6}= | src=10::10 | dst=10::11 | vni=${88}
25 | ... | encap-vrf-id=${0}
26
27 *** Settings ***
28 | Resource | resources/libraries/robot/default.robot
29 | Resource | resources/libraries/robot/honeycomb/interfaces.robot
30 | Resource | resources/libraries/robot/honeycomb/vxlan.robot
31 # import additional VxLAN settings from resource file
32 | Variables | tests/suites/honeycomb/resources/vxlan.py
33 | Documentation | *Honeycomb VxLAN management test suite.*
34 | ...
35 | ... | Test suite uses the first interface of the first DUT node.
36
37 *** Test Cases ***
38 | Honeycomb configures VxLAN tunnel
39 | | [Documentation] | Check if Honeycomb API can configure VxLAN settings.
40 | | [Tags] | honeycomb_sanity
41 | | Given VxLAN configuration from Honeycomb should be empty
42 | | ... | ${node} | ${vx_interface}
43 | | And VxLAN configuration from VAT should be empty | ${node}
44 | | When Honeycomb sets interface VxLAN configuration
45 | | ... | ${node} | ${vx_interface} | ${vxlan_settings}
46 | | Then VxLAN configuration from Honeycomb should be
47 | | ... | ${node} | ${vx_interface} | ${vxlan_settings}
48 | | And VxLAN configuration from VAT should be
49 | | ... | ${node} | ${vxlan_settings}
50
51 | Honeycomb disables VxLAN tunnel
52 | | [Documentation] | Check if Honeycomb API can reset VxLAN configuration.
53 | | [Tags] | honeycomb_sanity
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 does not set VxLAN configuration on another interface type
64 | | [Documentation] | Check if Honeycomb API prevents setting VxLAN\
65 | | ... | on incorrect interface.
66 | | [Tags] | honeycomb_sanity
67 | | Given VxLAN configuration from Honeycomb should be empty
68 | | ... | ${node} | ${interface}
69 | | And VxLAN configuration from VAT should be empty | ${node}
70 | | When Honeycomb fails setting VxLan on different interface type
71 | | ... | ${node} | ${interface} | ${vxlan_settings2}
72 | | Then VxLAN configuration from Honeycomb should be empty
73 | | ... | ${node} | ${interface}
74 | | And VxLAN configuration from VAT should be empty
75 | | ... | ${node}
76
77 | Honeycomb does not set invalid VxLAN configuration
78 | | [Documentation] | Check if Honeycomb API prevents setting incorrect VxLAN\
79 | | ... | settings.
80 | | [Tags] | honeycomb_sanity
81 | | Given VxLAN configuration from Honeycomb should be empty
82 | | ... | ${node} | ${vx_interface}
83 | | And VxLAN configuration from VAT should be empty | ${node}
84 | | When Honeycomb fails setting invalid VxLAN configuration
85 | | ... | ${node} | ${vx_interface} | ${vxlan_invalid}
86 | | Then VxLAN configuration from Honeycomb should be empty
87 | | ... | ${node} | ${vx_interface}
88
89 | Honeycomb configures VxLAN tunnel with ipv6
90 | | [Documentation] | Check if Honeycomb API can configure VxLAN with\
91 | | ... | ipv6 settings.
92 | | [Tags] | honeycomb_sanity
93 | | Given VxLAN configuration from Honeycomb should be empty
94 | | ... | ${node} | ${vx_interface}
95 | | And VxLAN configuration from VAT should be empty | ${node}
96 | | When Honeycomb sets interface VxLAN configuration
97 | | ... | ${node} | ${vx_interface} | ${vxlan_settings_ipv6}
98 | | Then VxLAN configuration from Honeycomb should be
99 | | ... | ${node} | ${vx_interface} | ${vxlan_settings_ipv6}
100 | | And VxLAN configuration from VAT should be
101 | | ... | ${node} | ${vxlan_settings_ipv6}
102