> My question is how do we want to display this information in 'dladm 
 > show-link' output (assuming 'show-link' sub-command is the right 
 > placeholder for this).

Seems like it.

 > bash-3.2# dladm show-link
 > LINK        CLASS    MTU    STATE    PROMISC    OVER
 > e1000g0     phys     1501       up           off                --
 > e1000g1     phys     1502       up           on                --
 > stub1          etherstub 9000   unknown off --
 > vnic1          vnic      1502       up            on               e1000g1
 > vnic4          vnic      9000       up            off               stub1
 > v101           vlan      1502       up           on                e1000g1

Given that 80-column real-estate is precious and we're likely to have more
valuable on/off things to display in the future, it might make sense to
define a FLAGS field akin to file permissions with `ls' which would either
have "p" or "-" depending on whether promiscuous mode is enabled.  We've
done this already for other dladm subcommands; ipmpstat and IPS's pkg also
do this.

--
meem

Reply via email to