Closed joeshaw closed 2 years ago
Version info, such as it is:
$ ip -V
ip utility, iproute2-ss161212
Thank you for report and sorry for the late reply! I checked the both firmware and found that different versions of iproute2 are bundled in v2.0.9-hotfix.4 as you mentioned.
JSON support on iproute2 seems to have been available after August 17, 2017: https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=d0e720111aad2527fa350723779144c56c8a5607
I will try to add a parser that handles the following output instead so wait until then!
$ ip --oneline addr show
v2.6.0 works great. Thanks a lot for the quick turnaround, and I learned about a new rust crate! (nom)
Glad to hear that 😄
Running on an EdgeRouter 12 with firmware v2.0.9-hotfix.4, which is the latest available for this device, I get the following in the debug logs:
My version of
/bin/ip
(and/sbin/ip
) don't support--json
. When I try to run that command, I get on stderr:And the help:
So perhaps this version of EdgeOS has a different/older version of
/bin/ip
than the model you have?