Comments (6)
That is possible. You can connect two controllers as long as the controller can send packets to the port the switch program is listening to.
from p4-utils.
That is possible. You can connect two controllers as long as the controller can send packets to the port the switch program is listening to.
When I tried to connect using p4utils's SimpleSwitchP4RuntimeAPI it shows:
CRITICAL:root:StreamChannel error, closing stream
CRITICAL:root:P4Runtime RPC error (INVALID_ARGUMENT): Election id already exists
CRITICAL:root:Failed to establish session with server
I tried changing the election_id to different tuple it works then. but i am sure it is wrong.
from p4-utils.
Can you try with the thrift client? I guess you are using the P4runtime one. I am trying to recall this, but I believe I only attempted to connect to the same switch from multiple controllers using the thrift API. I, however, understand you do not want to use that deprecated API.
from p4-utils.
Can you try with the thrift client? I guess you are using the P4runtime one. I am trying to recall this, but I believe I only attempted to connect to the same switch from multiple controllers using the thrift API. I, however, understand you do not want to use that deprecated API.
Thank you @edgar-costa works when I use thrift API.
Also I have one more question, How to send some of the packets to embedded controller and some to remote controller. Currently all the packets are going to both controller.
in my p4 code I am using this
clone3(CloneType.I2E, 100, meta);
and in the controller this
self.controller.mirroring_add(100, self.cpu_port)
from p4-utils.
Well, packets are received by using veth
interfaces. If both controllers are listening to the same interface, they will receive the packet two times. You need to either, add 2 CPU ports (not directly supported by p4-utils) or you should add some sort of TAG to your packets so you can filter them at the controller.
from p4-utils.
Thanks @edgar-costa
from p4-utils.
Related Issues (20)
- Using @controller_header
- How to clone packets more than once back to back? HOT 2
- Tofino Example: no bf_swithcd for one of the switches HOT 3
- Why SimpleSwitchP4RuntimeAPI doesn't support reading and writing register? HOT 1
- Problem with the “sudo p4run --config p4app.json” command regarding ping between hosts HOT 3
- Read and write to registers HOT 6
- Installing issue HOT 6
- Username and password for pre-installed VM HOT 2
- Problem with switch_thrift_API.py file
- Graceful shutdown when stopping with Ctrl+C HOT 1
- Does P4Utils Support IPv6 ? HOT 3
- register cell size HOT 1
- p4run problem HOT 5
- virtualenv problem HOT 2
- Format for providing launch options for a P4 switch HOT 3
- FRR Router binary path /usr/local/sbin does not contain daemons
- Example cannot pingall after enough long time
- Install error libpiprotobuf.so: undefined references
- Meter rates: docs state units/second, while code uses units/microsecond
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p4-utils.