QEMU VM guest-ping fix
[csit.git] / tests / suites / honeycomb / 1 - interface_management.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 interface to run tests on.
16 | ${node}= | ${nodes['DUT1']}
17 | ${interface}= | ${node['interfaces'].values()[0]['name']}
18 # Configuration which will be set and verified during tests.
19 | @{ipv4_address}= | 192.168.0.2 | 255.255.255.0
20 | @{ipv4_neighbor}= | 192.168.0.3 | 08:00:27:c0:5d:37
21 | &{ipv4_settings}= | enabled=${True} | forwarding=${True} | mtu=9000
22 | @{ipv6_address}= | 10::10 | 64
23 | @{ipv6_neighbor}= | 10::11 | 08:00:27:c0:5d:37
24 | &{ipv6_settings}= | enabled=${True} | forwarding=${True} | mtu=9000
25 | ... | dup-addr-detect-transmits=5
26 | &{ethernet}= | mtu=9000
27 | &{routing}= | vrf-id=27
28 | &{vxlan_settings}= | src=10.0.1.20 | dst=10.0.3.20 | vni=1000
29 | ... | encap-vrf-id=1000
30
31 *** Settings ***
32 | Resource | resources/libraries/robot/default.robot
33 | Resource | resources/libraries/robot/honeycomb/honeycomb.robot
34 | Resource | resources/libraries/robot/honeycomb/interfaces.robot
35 | Suite Setup | Run keywords | Setup all DUTs before test | AND
36 | ... | Setup Honeycomb service on DUTs | ${node}
37 | Documentation | *Honeycomb interface management test suite.*
38 | ...
39 | ... | Test suite uses the first interface of the first DUT node.
40
41 *** Test Cases ***
42 | Honeycomb configures and reads interface state
43 | | [Documentation] | Check if Honeycomb API can modify the admin state of\
44 | | ... | VPP interfaces.
45 | | [Tags] | honeycomb_sanity
46 | | Given Interface state is | ${node} | ${interface} | down
47 | | When Honeycomb sets interface state | ${node} | ${interface} | up
48 | | Then Interface state from Honeycomb should be
49 | | ... | ${node} | ${interface} | up
50 | | And Interface state from VAT should be | ${node} | ${interface} | up
51 | | When Honeycomb sets interface state | ${node} | ${interface} | down
52 | | Then Interface state from Honeycomb should be
53 | | ... | ${node} | ${interface} | down
54 | | And Interface state from VAT should be | ${node} | ${interface} | down
55
56 | Honeycomb modifies interface configuration - ipv4
57 | | [Documentation] | Check if Honeycomb API can configure interfaces for ipv4.
58 | | [Tags] | honeycomb_sanity
59 | | When Honeycomb sets interface ipv4 configuration
60 | | ... | ${node} | ${interface} | @{ipv4_address} | @{ipv4_neighbor}
61 | | ... | ${ipv4_settings}
62 | | Then IPv4 config from Honeycomb should be
63 | | ... | ${node} | ${interface} | @{ipv4_address} | @{ipv4_neighbor}
64 | | ... | ${ipv4_settings}
65 | | And IPv4 config from VAT should be
66 | | ... | ${node} | ${interface} | @{ipv4_address}
67
68 | Honeycomb modifies interface configuration - ipv6
69 | | [Documentation] | Check if Honeycomb API can configure interfaces for ipv6.
70 | | [Tags] | honeycomb_sanity
71 | | When Honeycomb sets interface ipv6 configuration
72 | | ... | ${node} | ${interface} | @{ipv6_address} | @{ipv6_neighbor}
73 | | ... | ${ipv6_settings}
74 | | Then IPv6 config from Honeycomb should be
75 | | ... | ${node} | ${interface} | @{ipv6_address} | @{ipv6_neighbor}
76 | | ... | ${ipv6_settings}
77 | | And IPv6 config from VAT should be
78 | | ... | ${node} | ${interface} | @{ipv6_address}
79
80 | Honeycomb modifies interface configuration - ethernet,routing
81 | | [Documentation] | Check if Honeycomb API can configure interface ethernet\
82 | | ... | and routing settings.
83 | | [Tags] | honeycomb_sanity
84 | | When Honeycomb sets interface ethernet and routing configuration
85 | | ... | ${node} | ${interface} | ${ethernet} | ${routing}
86 | | Then Interface ethernet and routing configuration from Honeycomb should be
87 | | ... | ${node} | ${interface} | ${ethernet} | ${routing}
88 | | And Interface ethernet and routing configuration from VAT should be
89 | | ... | ${node} | ${interface} | ${ethernet['mtu']} | ${routing['vrf-id']}
90
91 | Honeycomb modifies interface configuration - VxLAN
92 | | [Documentation] | Check if Honeycomb API can configure interface VxLAN \
93 | | ... | settings.
94 | | [Tags] | honeycomb_sanity
95 | | When Honeycomb sets interface VxLAN configuration
96 | | ... | ${node} | ${interface} | &{vxlan_settings}
97 | | Then VxLAN configuration from Honeycomb should be
98 | | ... | ${node} | ${interface} | &{vxlan_settings}
99 | | And VxLAN configuration from VAT should be
100 | | ... | ${node} | ${interface} | &{vxlan_settings}