Giter Club home page Giter Club logo

Comments (9)

antoninbas avatar antoninbas commented on August 19, 2024 3

Yes, it means mininet did not exit properly the previous time, or you have another instance of behavioral-model running. Try the following:
sudo mn -c
sudo killall behavioral-model
redis-cli FLUSHALL

from p4factory.

rahulbhalerao001 avatar rahulbhalerao001 commented on August 19, 2024

I too was facing the same issue. Thank you for the solution.

from p4factory.

lmingcsce avatar lmingcsce commented on August 19, 2024

I encounter the same issue.
Thanks.

from p4factory.

hamkuu avatar hamkuu commented on August 19, 2024

I had the same issue and solved it by:

sudo mn -c
sudo killall behavioral-model
redis-cli FLUSHALL

However, when I run
./run_cli.bash"
under "p4factory/targets/simple_router", I got TTransportException, how can I fix this?

Using default thrift server and port localhost:9090
Traceback (most recent call last):
File "../../cli/pd_cli.py", line 677, in
main(sys.argv[1:])
File "../../cli/pd_cli.py", line 665, in main
pd_cli = PdCli(p4_name, thrift_client_module, thrift_server, port)
File "../../cli/pd_cli.py", line 35, in init
self._thrift_client = pd_thrift_client.ThriftClient(self._module, thrift_server, port, self._p4_name)
File "/home/hamkuu/p4/p4factory/cli/pd_thrift_client.py", line 55, in init
self.setup(hostname, port)
File "/home/hamkuu/p4/p4factory/cli/pd_thrift_client.py", line 77, in setup
self._transport.open()
File "/usr/local/lib/python2.7/dist-packages/thrift/transport/TTransport.py", line 149, in open
return self.__trans.open()
File "/usr/local/lib/python2.7/dist-packages/thrift/transport/TSocket.py", line 101, in open
message=message)
thrift.transport.TTransport.TTransportException: Could not connect to localhost:9090

from p4factory.

antoninbas avatar antoninbas commented on August 19, 2024

Did you start the software switch? What was the output for this?

from p4factory.

shahbhoomi avatar shahbhoomi commented on August 19, 2024

Hi I am trying to add demo entries to the switch.
I did the following procedure:
From the terminal, add entries in the switch:
/p4factory/targets/simple_router$ more run_add_demo_entries.bash
and then ./run_add_demo_entries.bash
I tried using the above three commands given for killing the behavioral process and exiting the mining but still I am getting the same error.
Can you please help me out on where am I going wrong?
screen shot 2016-06-15 at 11 08 08 pm

from p4factory.

antoninbas avatar antoninbas commented on August 19, 2024

You did not show how you started the switch in your screenshot.
We are also deprecating this software switch and replacing it with bmv2. I encourage you to look at these repositories:

from p4factory.

sandaruwanjayaweera avatar sandaruwanjayaweera commented on August 19, 2024

I had the same issue which hamkuu had.
Then I changed run_cli.bash,
python ../../cli/pd_cli.py -p simple_router -i p4_pd_rpc.simple_router -s $PWD/tests/pd_thrift:$PWD/../../testutils "$@"
into
python ../../cli/pd_cli.py -p simple_router -i p4_pd_rpc.simple_router -s $PWD/tests/pd_thrift:$PWD/../../testutils "$@" -c localhost:22222
to provide the CLI with the port. After that it worked fine.

from p4factory.

LLRH avatar LLRH commented on August 19, 2024

root@wenxingbeng:/home/wenxingbeng/p4factory# redis-cli FLUSHALL
Could not connect to Redis at 127.0.0.1:6379: Connection refused

What should I do?

I solve it by doing the following commond.
redis-server &

from p4factory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.