def get_device_by_name(ns, device_name):
    return ns.LMI_IPNetworkConnection.first_instance({ 'ElementName': device_name })
Get instance of LMI_IPNetworkConnection class by the device name.
dataset/ETHPy150Open openlmi/openlmi-scripts/commands/networking/lmi/scripts/networking/__init__.py/get_device_by_name