16791e236b0b30033c0a64524bd249a5fb99c645
[csit.git] / tests / func / honeycomb / 090_provider_backbone_bridge.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 | ${super_if}= | ${node['interfaces']['port1']['name']}
16
17 *** Settings ***
18 | Resource | resources/libraries/robot/default.robot
19 | Resource | resources/libraries/robot/honeycomb/honeycomb.robot
20 | Resource | resources/libraries/robot/honeycomb/provider_backbone_bridge.robot
21 | Variables | resources/test_data/honeycomb/pbb/pbb.py
22 | Documentation | *Honeycomb provider backbone bridge test suite.*
23 | Suite Teardown | Run Keyword If Any Tests Failed
24 | ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node}
25 | Force Tags | honeycomb_sanity
26
27 *** Test Cases ***
28 # TODO: add verifications once operational data or VPP dump is available.
29 | TC01: Honeycomb sets PBB sub-interface
30 | | [Documentation] | Honeycomb creates a new PBB sub-interface.
31 | | ...
32 | | Honeycomb creates PBB sub interface | ${node} | ${super_if}
33 | | ... | ${cfg_pbb_sub_if_1}
34
35 | TC02: Honeycomb modifies existing PBB sub-interface
36 | | [Documentation] | Honeycomb modifies an existing PBB sub-interface.
37 | | ...
38 | | Honeycomb creates PBB sub interface | ${node} | ${super_if}
39 | | ... | ${cfg_pbb_sub_if_1_mod}
40
41 | TC03: Honeycomb deletes existing PBB sub-interface
42 | | [Documentation] | Honeycomb deletes an existing PBB sub-interface.
43 | | ...
44 | | Honeycomb Removes PBB sub interface
45 | | ... | ${node} | ${super_if}
46
47 | TC05: Honeycomb fails to set wrong destination-address for new PBB sub-interface
48 | | [Documentation] | Honeycomb fails to create a new PBB sub-interface with\
49 | | ... | wrong value of parameter destination-address, type yang:mac-address.
50 | | ...
51 | | Honeycomb fails to create PBB sub interface | ${node} | ${super_if}
52 | | ... | ${cfg_pbb_sub_if_wrong_dst_addr}
53
54 | TC06: Honeycomb fails to set wrong source-address for new PBB sub-interface
55 | | [Documentation] | Honeycomb fails to create a new PBB sub-interface with\
56 | | ... | wrong value of parameter source-address, type yang:mac-address.
57 | | ...
58 | | Honeycomb fails to create PBB sub interface | ${node} | ${super_if}
59 | | ... | ${cfg_pbb_sub_if_wrong_src_addr}
60
61 | TC07: Honeycomb fails to set wrong b-vlan-tag-vlan-id for new PBB sub-interface
62 | | [Documentation] | Honeycomb fails to create a new PBB sub-interface with\
63 | | ... | wrong value of parameter b-vlan-tag-vlan-id, type uint16, 12 bit\
64 | | ... | range, range "1..4095".
65 | | ...
66 | | Honeycomb fails to create PBB sub interface | ${node} | ${super_if}
67 | | ... | ${cfg_pbb_sub_if_wrong_vlan_tag}
68
69 | TC08: Honeycomb fails to set wrong i-tag-isid for new PBB sub-interface
70 | | [Documentation] | Honeycomb fails to create a new PBB sub-interface with\
71 | | ... | wrong value of parameter i-tag-isid, type uint32, 24 bit range,\
72 | | ... | range "1..16777215".
73 | | ...
74 | | Honeycomb fails to create PBB sub interface | ${node} | ${super_if}
75 | | ... | ${cfg_pbb_sub_if_wrong_i_tag}
76
77 | TC07: Honeycomb fails to create new PBB sub-interface without vlan tag
78 | | [Documentation] | Honeycomb fails to create a new PBB sub-interface without\
79 | | ... | parameter b-vlan-tag-vlan-id.
80 | | ...
81 | | Honeycomb fails to create PBB sub interface | ${node} | ${super_if}
82 | | ... | ${cfg_pbb_sub_if_no_vlan_tag}