-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ip addr fails to list the devices with the associated information and throws an exception #57
Comments
Thank you for the bug report.
Can you please attach output of:
ifconfig -a -v
ip -V
|
IPConfig output: ─» ifconfig -a -v ip -V output: |
Thank you, the problematic line was: I am releasing v1.5.2 with the fix. |
Homebrew/homebrew-core#180419 in progress, fixed in HEAD. @signal-09 FYI |
In the past versions (two or three ago, cannot really tell when this issue started), when issuing the ip addr command at the prompt I would get a list of all the adapters on my mac with their ip address and associated information. Currently when issuing the same command, I get the following error (in more than one mac, btw):
└» ip addr
Traceback (most recent call last):
File "/opt/homebrew/Cellar/iproute2mac/1.5.1/libexec/ip", line 713, in
main(sys.argv[1:])
File "/opt/homebrew/Cellar/iproute2mac/1.5.1/libexec/iproute2mac.py", line 96, in inner
if not func(*args, **kwargs):
^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/iproute2mac/1.5.1/libexec/ip", line 706, in main
return cmd_func(argv, af, json_print, pretty_json)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/iproute2mac/1.5.1/libexec/iproute2mac.py", line 96, in inner
if not func(*args, **kwargs):
^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/iproute2mac/1.5.1/libexec/ip", line 394, in do_addr
return do_addr_show(argv, af, json_print, pretty_json)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/iproute2mac/1.5.1/libexec/ip", line 407, in do_addr_show
return link_addr_show(argv, af, json_print, pretty_json, True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/iproute2mac/1.5.1/libexec/ip", line 106, in link_addr_show
links = parse_ifconfig(res, af, address)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/iproute2mac/1.5.1/libexec/ip", line 31, in parse_ifconfig
(ifname, flags, mtu, ifindex) = re.findall(
^^^^^^^^^^^
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: