How to use plotnetcfg to solve the neutron jumble ?

Recently, I came acorss recently tool “plotnetcfg” which was included in RHEL OSP 7 [kilo] to make our life easy while working on neutron issues.

You need to install two packages to use that tool.

# yum install -y plotnetcfg
# yum install -y graphviz

After installing these packages, issue the below command :

# plotnetcfg | dot -Tpdf > file1.pdf

Boom, open a pdf file and you will get whole idea about the network configuration in openstack environment.

I ran the same on my all-in-one openstack setup. When I ran the above commands below was the network interfaces present on my node.

–> One instance was in running state.

[root@allinone ~(keystone_admin)]# virsh list
Id    Name                           State
3     instance-00000055              running

[root@allinone ~(keystone_admin)]# virsh domiflist 3
Interface  Type       Source     Model       MAC
tapf06383c5-03 bridge     qbrf06383c5-03 virtio      fa:16:3e:b5:ef:93

[root@allinone ~(keystone_admin)]# brctl show
bridge name    bridge id        STP enabled    interfaces
qbrf06383c5-03        8000.027cd0a39e14    no        qvbf06383c5-03

–> Three network namespaces were present. Among these one was internal only and one was routed to external network.

[root@allinone ~(keystone_admin)]# ip netns list

–> ens3 was the physical interface which was plumbed to br-ex.


I have shown the example output at below link :

Also, we can ran the same on collected sosreport as well.

plotnetcfg –ovs-db=sos_commands/openvswitch/ovsdb-client_dump | dot -Tpdf > file2.pdf

However, it doesn’t look so much accurate while running on sosreport. It could be possible that I have chosen a wrong file. I need to look into it.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s