Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The ls-interfaces option currently returns an array of strings that are the string representation of dictionaries with data on the wired interfaces. This patch takes the result and converts then to proper dictionaries, and then sorts the output to sort on the interface names. The output is further formatted to look like the following: interface: em1, mac address: 0c:c4:7a:eb:8c:16, switch IP: 192.168.0.1, port: xe-0/0/22:2 interface: em2, mac address: 0c:c4:7a:eb:8c:17, switch IP: 192.168.0.1, port: xe-0/0/22:3 interface: em3, mac address: b8:ca:3a:63:83:98, switch IP: 192.168.0.1, port: xe-0/0/20:2 interface: em4, mac address: b8:ca:3a:63:83:9a, switch IP: 192.168.0.1, port: xe-0/0/20:3 Fixes: #313 Change-Id: If01ecf56691059561a214c7c4e03933be5cc06a5
- Loading branch information