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:
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.L2Util
18 | Get L2 FIB entry PAPI
19 | | [Documentation] | Retrieve the operational data about the specified L2 \
20 | | ... | FIB entry using Python API.
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
28 | | ... | \| Get L2 FIB entry PAPI \
29 | | ... | \| ${nodes['DUT1']} \| test_bd \| 00:fe:c8:e5:46:d1 \|
31 | | [Arguments] | ${node} | ${bd_index} | ${mac}
33 | | [Return] | ${l2_fib_data}
35 | | ${l2_fib_data}= | Get L2 FIB entry by MAC | ${node} | ${bd_index}
38 | Get L2 FIB table PAPI
39 | | [Documentation] | Retrieve L2 FIB table data of the specified bridge \
40 | | ... | domain using Python API.
42 | | ... | *Arguments:*
43 | | ... | - node - Information about a DUT node. Type: dictionary
44 | | ... | - bd_index - Index of the bridge domain. Type: integer
47 | | ... | \| Get L2 FIB table PAPI \| ${nodes['DUT1']} \| test_bd \|
49 | | [Arguments] | ${node} | ${bd_index}
51 | | [Return] | ${l2_fib_data}
53 | | ${l2_fib_data}= | Get L2 FIB table | ${node} | ${bd_index}