Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

ovs-ofctl error: failed to open socket (Permission denied)

asked 2015-03-18 10:15:28 -0800

anonymous user

Anonymous

Hi. I created a Mininet topology with three hosts, an OpenFlow switch and a remote controller (following an OpenFlow tutorial over from mininet.org ), like this:

sudo mn --topo single,3 --mac --switch ovsk --controller remote

I need to check the flow table of the switch (s1), even though i know its empty, so I type in the command:

ovs-ofctl show s1

but I get the error:

ovs-ofctl: /var/run/openvswitch/s1.mgmt: faile to open socket (Permission denied)

How do I resolve this? I am following this tutorial: https://github.com/mininet/openflow-tutorial/wiki/Learn-Development-Tools

Thanks in advance!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-03-18 10:39:19 -0800

Vishal Thapar gravatar image

All ovs-xxx require sudo access. Try sudo ovs-ofctl show s1, should work.

edit flag offensive delete publish link more
0

answered 2015-03-18 21:37:30 -0800

Ashwini_Mhatre gravatar image

updated 2015-03-18 21:37:52 -0800

Also try sh ovs-ofctl dump-flows s1

Regards, Ashwini

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-03-18 10:15:28 -0800

Seen: 823 times

Last updated: Mar 18 '15