Skip to content

Commit 585e0d3

Browse files
authored
feat(network-interface): Extend list output to contain device and ipv4 (#695)
Signed-off-by: Alexander Dahmen <[email protected]>
1 parent 9d002ba commit 585e0d3

File tree

1 file changed

+3
-1
lines changed
  • internal/cmd/network-interface/list

1 file changed

+3
-1
lines changed

internal/cmd/network-interface/list/list.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,15 @@ func outputResult(p *print.Printer, outputFormat string, nics []iaas.NIC) error
173173
return nil
174174
default:
175175
table := tables.NewTable()
176-
table.SetHeader("ID", "NAME", "NIC SECURITY", "STATUS", "TYPE")
176+
table.SetHeader("ID", "NAME", "NIC SECURITY", "DEVICE ID", "IPv4 ADDRESS", "STATUS", "TYPE")
177177

178178
for _, nic := range nics {
179179
table.AddRow(
180180
utils.PtrString(nic.Id),
181181
utils.PtrString(nic.Name),
182182
utils.PtrString(nic.NicSecurity),
183+
utils.PtrString(nic.Device),
184+
utils.PtrString(nic.Ipv4),
183185
utils.PtrString(nic.Status),
184186
utils.PtrString(nic.Type),
185187
)

0 commit comments

Comments
 (0)