Fix Tap failing tests
[csit.git] / resources / libraries / robot / honeycomb / 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 *** Settings ***
15 | Library | resources.libraries.python.honeycomb.HcAPIKwInterfaces.InterfaceKeywords
16
17 *** Keywords ***
18 | Honeycomb creates PBB sub-interface
19 | | [Documentation] | Uses Honeycomb API to set PBB sub-interface on an\
20 | | ... | interface.
21 | | ...
22 | | ... | *Arguments:*
23 | | ... | - node - Information about a DUT node. Type: dictionary
24 | | ... | - super_if - Super-interface. Type: string
25 | | ... | - sub_if_id - Sub-interface ID. Type: string
26 | | ... | - params - Parameters of the sub-interface to be created.
27 | | ... | Type - dictionary
28 | | ...
29 | | ... | *Example:*
30 | | ... | \| Honeycomb creates PBB sub-interface \| ${node} \| ${super_if}\
31 | | ... | \| ${cfg_pbb_sub_if_1} \|
32 | | ...
33 | | [Arguments] | ${node} | ${super_if} | ${params}
34 | | ...
35 | | Set Interface Up | ${node} | ${super_if}
36 | | Create PBB Sub Interface
37 | | ... | ${node} | ${super_if} | ${params}
38
39 | Honeycomb removes PBB sub-interface
40 | | [Documentation] | Uses Honeycomb API to remove PBB sub-interface from its\
41 | | ... | super interface.
42 | | ...
43 | | ... | *Arguments:*
44 | | ... | - node - Information about a DUT node. Type: dictionary
45 | | ... | - super_if - Super-interface. Type: string
46 | | ... | - sub_if_id - Sub-interface ID. Type: string
47 | | ...
48 | | ... | *Example:*
49 | | ... | \| Honeycomb removes PBB sub-interface\
50 | | ... | \| ${node} \| ${super_if} \|
51 | | ...
52 | | [Arguments] | ${node} | ${super_if}
53 | | ...
54 | | Delete PBB Sub Interface | ${node} | ${super_if}
55
56 | Honeycomb fails to create PBB sub-interface
57 | | [Documentation] | Uses Honeycomb API to set PBB sub-interface with wrong\
58 | | ... | parameter(s) and expects to fail.
59 | | ...
60 | | ... | *Arguments:*
61 | | ... | - node - Information about a DUT node. Type: dictionary
62 | | ... | - super_if - Super-interface. Type: string
63 | | ... | - sub_if_id - Sub-interface ID. Type: string
64 | | ... | - params - Parameters of the sub-interface to be created.
65 | | ... | Type - dictionary
66 | | ...
67 | | ... | *Example:*
68 | | ... | \| Honeycomb fails to create PBB sub-interface\
69 | | ... | \| ${node} \| ${super_if} \| ${cfg_pbb_sub_if_no_vlan_tag} \|
70 | | ...
71 | | [Arguments] | ${node} | ${super_if} | ${params}
72 | | ...
73 | | Set Interface Up | ${node} | ${super_if}
74 | | Run keyword and expect error | *HoneycombError*not successful*.
75 | | ... | Create PBB Sub Interface
76 | | ... | ${node} | ${super_if} | ${params}