I work on a script that prompt the user to fill network ; interface and device names to bind a builded command like that:
lxc network attach $__NETWORK_NAME $__CONTAINER_NAME $__DEVICE_NAME $__INTERFACE_NAME
For example lxc network attach lxdbr0 mycontainer eth0 eth0
When I work like this with container for example. I return any existing container names with a command like
lxc list -c n --format csv. -c option is used to return only the container name field.
My problem is when I try to do this with
lxc network list because the -c option doesn’t exist for this command. Only --format is supported. Is it schedule to implement this option?
So. If someone have idea about bash command ways to get a list of existing network ; devices ; and interface. Thanks in advance