vinfra service compute server iface list
List virtual machine networks:
usage: vinfra service compute server iface list [--long] --server <server>
--long
- Enable access and listing of all fields of objects.
--server <server>
- Virtual machine ID or name
Example:
# vinfra service compute server iface list --server myvm +----------------+----------------+-------------------+-----------------+ | id | network_id | mac_address | fixed_ips | +----------------+----------------+-------------------+-----------------+ | 690ed3f2-<...> | 0710372e-<...> | fa:16:3e:54:59:08 | 192.168.129.8 | | a5b13bf3-<...> | 1bf2c9da-<...> | fa:16:3e:b9:33:bb | 192.168.128.100 | +----------------+----------------+-------------------+-----------------+
This command lists the virtual networks that the virtual machine myvm
is attached to. It also shows VM’s IP address in each network.