CSIT-1337: Migrate L2Util library from VAT to PAPI
[csit.git] / resources / libraries / robot / honeycomb / papi.robot
1 # Copyright (c) 2019 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.L2Util
16
17 *** Keywords ***
18 | Get L2 FIB entry PAPI
19 | | [Documentation] | Retrieve the operational data about the specified L2 \
20 | | ... | FIB entry using Python API.
21 | | ...
22 | | ... | *Arguments:*
23 | | ... | - node - Information about a DUT node. Type: dictionary
24 | | ... | - bd_index - Index of the bridge domain. Type: integer
25 | | ... | - mac - MAC address. Type: string
26 | | ...
27 | | ... | *Example:*
28 | | ... | \| Get L2 FIB entry PAPI \
29 | | ... | \| ${nodes['DUT1']} \| test_bd \| 00:fe:c8:e5:46:d1 \|
30 | | ...
31 | | [Arguments] | ${node} | ${bd_index} | ${mac}
32 | | ...
33 | | [Return] | ${l2_fib_data}
34 | | ...
35 | | ${l2_fib_data}= | Get L2 FIB entry by MAC | ${node} | ${bd_index}
36 | | ... | ${mac}
37
38 | Get L2 FIB table PAPI
39 | | [Documentation] | Retrieve L2 FIB table data of the specified bridge \
40 | | ... | domain using Python API.
41 | | ...
42 | | ... | *Arguments:*
43 | | ... | - node - Information about a DUT node. Type: dictionary
44 | | ... | - bd_index - Index of the bridge domain. Type: integer
45 | | ...
46 | | ... | *Example:*
47 | | ... | \| Get L2 FIB table PAPI \| ${nodes['DUT1']} \| test_bd \|
48 | | ...
49 | | [Arguments] | ${node} | ${bd_index}
50 | | ...
51 | | [Return] | ${l2_fib_data}
52 | | ...
53 | | ${l2_fib_data}= | Get L2 FIB table | ${node} | ${bd_index}