When we create a virtual network and use the network in openstack, we just can get some simple information about this network by use neutron command " neutron net-show". However, getting more details is useful and necessary for us . For example , how many virtual devices such as vm, router, dhcp which connected to the network. Further, we also want to know the tenants which those devices belong to and the nodes on which those devices are located. If we know all this information , we can generate a network topology about this network.
Using the network topology, Understanding, planning and managing network become very easy. Also, fault diagnosis is more efficient. For example, wo can easily know the compute node on which problematic port is located, not need to do a lot of inquiries in Nova
> how many virtual devices such as vm, router, dhcp which connected to the network
You can port-list then filter by a network id.
> Further, we also want to know the tenants which those devices belong to
Once you have a list of ports, you can print out their tenant_id field.
> and the nodes on which those devices are located
That is persisted in the binding:host field.
Point is that all of this information may be found via a simple client script. What would a single command give you, and what would that command look like?