aristanetworks / bst

A one-stop shop for process isolation
MIT License
101 stars 9 forks source link

Parse json output from ip command #96

Closed KrzysztofMolon closed 7 months ago

KrzysztofMolon commented 7 months ago

When listing interfaces using ip command, output depended on the system where the command was run. For example:

inet6 fe80::fced:deff:fead:beef/64 scope link

This line sometimes contains "tentative" at the end and sometimes not.

To avoid this problem json output from the ip command is used and parsed.