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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 | Library | resources.libraries.python.honeycomb.HcAPIKwInterfaces.InterfaceKeywords
18 | Honeycomb creates PBB sub-interface
19 | | [Documentation] | Uses Honeycomb API to set PBB sub-interface on an\
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
30 | | ... | \| Honeycomb creates PBB sub-interface \| ${node} \| ${super_if}\
31 | | ... | \| ${cfg_pbb_sub_if_1} \|
33 | | [Arguments] | ${node} | ${super_if} | ${params}
35 | | Set Interface Up | ${node} | ${super_if}
36 | | Create PBB Sub Interface
37 | | ... | ${node} | ${super_if} | ${params}
39 | Honeycomb removes PBB sub-interface
40 | | [Documentation] | Uses Honeycomb API to remove PBB sub-interface from its\
41 | | ... | super interface.
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
49 | | ... | \| Honeycomb removes PBB sub-interface\
50 | | ... | \| ${node} \| ${super_if} \|
52 | | [Arguments] | ${node} | ${super_if}
54 | | Delete PBB Sub Interface | ${node} | ${super_if}
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.
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
68 | | ... | \| Honeycomb fails to create PBB sub-interface\
69 | | ... | \| ${node} \| ${super_if} \| ${cfg_pbb_sub_if_no_vlan_tag} \|
71 | | [Arguments] | ${node} | ${super_if} | ${params}
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}