rtslib bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



rtslib/utils.py

def list_eth_ips(ifnames=None):
    if ifnames is None:
        ifnames = [iface for iface in list_eth_names() if iface != 'lo']
    addrs = []
    for iface in list_eth_names():

this last line should be "for iface in ifnames:"

Also, how about using python-ethool instead of python-netifaces to get
ips for an iface? It's a little more widely used.

Thanks -- Regards -- Andy
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux