Add topology method for generic handling of interface references 57/3357/4
authorselias <samelias@cisco.com>
Tue, 11 Oct 2016 15:17:36 +0000 (17:17 +0200)
committerPeter Mikus <pmikus@cisco.com>
Thu, 20 Oct 2016 06:51:53 +0000 (06:51 +0000)
commit99519a54811a70b4ff2579baf46294507a8adfcb
treed00fb11b10ff62d40857d0ca658df2a6e4f1bfe1
parenta61e7de7f4e4491df5d25c59750178c0fe06e6a7
Add topology method for generic handling of interface references

 - add "convert_interface_reference" to topology.py

This is a convenience method, mainly intended for Honeycomb tests
which often require conversions between interface key, name
and sw_if_index.

Change-Id: I427736111f2a1dc07a581c9ccc25e181065bb6fd
Signed-off-by: selias <samelias@cisco.com>
resources/libraries/python/topology.py

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.