fabric-testbed / fabrictestbed-extensions

Extensions for the fabric APUI/CLI.
MIT License
7 stars 12 forks source link

get_device_name - add error logging and None check #341

Closed kthare10 closed 4 months ago

kthare10 commented 4 months ago

get_device_name - add error logging and None check

https://learn.fabric-testbed.net/forums/topic/get_device_name-returns-none/

User reported get_device_name sometimes returns None when slice.list_interfaces() does not.

slice.list_interfaces uses the supposedly deprecated function get_os_interface

Make get_device_name implementation consistent and mark get_os_interface deprecated