diff options
author | Tibor Frank <tifrank@cisco.com> | 2016-06-16 09:05:45 +0200 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2016-06-23 12:53:58 +0000 |
commit | 95253bdf705a06ec01c2a04f437bae2ef23355c3 (patch) | |
tree | 0c8ac3978d87b29dd705fe817d38ebf7346223b5 /resources/libraries/python/honeycomb/HcAPIKwInterfaces.py | |
parent | 33e58e512b91d57f0ccab05d6e57de11d7c9fd37 (diff) |
Add tests for Honeycomb L2 FIB support
JIRA: CSIT-168
- add tests for Honeycomb L2 FIB support
- add keywords for Honeycomb L2 FIB support
- fix typos
Change-Id: I81292c10e26e7ad05725034c1db1db0a81d29283
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/libraries/python/honeycomb/HcAPIKwInterfaces.py')
-rw-r--r-- | resources/libraries/python/honeycomb/HcAPIKwInterfaces.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/resources/libraries/python/honeycomb/HcAPIKwInterfaces.py b/resources/libraries/python/honeycomb/HcAPIKwInterfaces.py index e2be81e877..afd6076c7b 100644 --- a/resources/libraries/python/honeycomb/HcAPIKwInterfaces.py +++ b/resources/libraries/python/honeycomb/HcAPIKwInterfaces.py @@ -301,6 +301,29 @@ class InterfaceKeywords(object): node, interface, path, v3po_l2) @staticmethod + def get_bd_oper_data_from_interface(node, interface): + """Returns operational data about bridge domain settings in the + interface. + + :param node: Honeycomb node. + :param interface: The name of interface. + :type interface: str + :type param: str + :return: Operational data about bridge domain settings in the + interface. + :rtype: dict + """ + + if_data = InterfaceKeywords.get_interface_oper_data(node, interface) + + if if_data: + try: + return if_data["v3po:l2"] + except KeyError: + return {} + return {} + + @staticmethod def configure_interface_base(node, interface, param, value): """Configure the base parameters of interface. |