-
Notifications
You must be signed in to change notification settings - Fork 907
Closed
Description
Hello, I just started with P4 and I am trying to do the tutorial's exercises.
I downloaded the VM image (as recommended), cloned the tutorials and attempted to 'make run' in basic example.
I managed to solve the first issue I found updrading grpcio library to version 1.20.1 (as described here).
Now I have another error:
p4@p4:~/tutorials/exercises/basic$ sudo make run
mkdir -p build pcaps logs
p4c-bm2-ss --p4v 16 --p4runtime-files build/basic.p4.p4info.txt -o build/basic.json basic.p4
basic.p4(81): [--Wwarn=unused] warning: Unused action parameter dstAddr
action ipv4_forward(macAddr_t dstAddr, egressSpec_t port) {
^^^^^^^
basic.p4(81): [--Wwarn=unused] warning: Unused action parameter port
action ipv4_forward(macAddr_t dstAddr, egressSpec_t port) {
^^^^
sudo python ../../utils/run_exercise.py -t pod-topo/topology.json -j build/basic.json -b simple_switch_grpc
Reading topology file.
Building mininet topology.
P4 switch s1 did not start correctly.
../../utils/Makefile:35: recipe for target 'run' failed
make: *** [run] Error 1
As the error seems to be related to simple_switch_grpc I also tried to run it alone. Here is what I got:
p4@p4:~/tutorials/exercises/basic$ sudo simple_switch_grpc pod-topo/topology.json
Calling target program-options parser
Field standard_metadata.egress_port is required by switch target but is not defined
Is possible that simple switch is missing some required metadata? Otherwise what could be the problem?
Thanks a lot for any help,
Michele
Metadata
Metadata
Assignees
Labels
No labels