opnsense / ports

OPNsense ports on top of FreeBSD
https://opnsense.org/
Other
157 stars 112 forks source link

opnsense/ifinfo: Print interface index #170

Closed n-thumann closed 1 year ago

n-thumann commented 1 year ago

As requested by @fichtner in https://github.com/opnsense/core/pull/6490#issuecomment-1508772378, this PR prints the interface index in ifinfo:

root@OPNsense:~ # /tmp/ifinfo
Interface vtnet0 (vtnet0):
    index: 1
[...]
Interface pppoe0 (ng0):
    index: 11
[...]
Interface wg0 (wg0):
    index: 12
[...]
fichtner commented 1 year ago

Merged, thanks!