Comments (2)
It's not supported by PTF currently, but I would recommend the gRPC service for injecting packets (https://github.com/p4lang/behavioral-model/blob/main/services/p4/bm/dataplane_interface.proto), instead of the nanomsg socket. You could consider adding that support to PTF...
The nanomsg stuff we use doesn't seem to be actively maintained any more. There are new implementations (both for the core library and the Python module). I don't know if using these would help.
I could think of the following workaround (not guaranteed to work): force delete the socket files after you detect that simple_switch_grpc has crashed. I assume this is an unplanned crash (e.g. segfault), and not a signal we could trap in bmv2 to close the socket before exiting.
from ptf.
Thanks, will try to give the hack a shot.
from ptf.
Related Issues (20)
- PR blocked: CI status not being reported HOT 1
- PTF creates double log entries HOT 3
- Setting up ptf isn't working for me HOT 3
- No API exists to just show received pkt and not match pkt HOT 2
- scapy is GPL but PTF is not HOT 18
- Usage of default_timeout vs default_negative_timeout HOT 5
- Renew Travis licencse HOT 4
- Documentation regading Python 3
- `format_failure` throws an error because of unexpanded tuple
- Can PTF be distributed by pypi.org (pip)? HOT 5
- Field mrtime in IGMP packet has different name in Scapy: mrcode HOT 4
- Mask has problem with headers with conditional fields (like VXLAN) HOT 1
- Python module imp is deprecated in favor of importlib HOT 3
- Unify test packet payload and allow for manual control HOT 1
- Enhance test results logging HOT 1
- "TypeError: ord() expected string of length 1, but int found" thrown in get_mac function in netutils.py
- dhcp_discover_packet fills incorrect client mac address in Discover packet
- Openflow license details throws 404 HOT 1
- how can i solve this problem HOT 1
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 ptf.