Check available networks:
$ quantum net-list
Boot the VM with a single NIC on the selected network (net1):
$ nova boot --image <img> --flavor <flavor> --nic net-id=<net-id> <vm-name>
Congrats, you have booted a VM on a quantum network. You may need to configure security group rules to allow accesses to the VM.
There is now a Quantum port on 'net1' that corresponds to the VM Nic. You can view it with the following command, which searches for all ports with a "device_id" corresponding to the Nova instance UUID:
$ quantum port-list -- --device_id=<vm-id>
To view only a few fields of the port, you can limit output using -c. For example to see only the mac_address of the port, use:
$ quantum port-list -c mac_address -- --device_id=<vm-id>
You could temporarily disable the port from sending traffic by updating it to have admin_state_up=False:
$ quantum port-update <port-id> --admin_state_up=False
When we delete the Nova VM, the underlying Quantum port is automatically deleted:
$ quantum port-list -c mac_address -- --device_id=<vm-id>