Hi guys,
I'm trying to run a bmv2 switch outside the mininet environment:
simple_switch_grpc --no-p4 -i 0@wlp1s0 --device-id 1 -- --grpc-server-addr localhost:1234 --cpu-port 255
It seems the bmv2 switch is running properly because I could use P4Runtime Shell to push a P4pipeline to this switch.
I would like the onos controller to connect with this switch, so I did some changes in the netcfg file provided by NGSDN tutorial, the configuration looks like this:
{
"devices": {
"device:bmv2:s1": {
"basic": {
"managementAddress": "grpc://127.0.0.1:1234?device_id=1",
"driver": "bmv2",
"pipeconf": "org.onosproject.ngsdn-tutorial"
}
}
}
}
After pushing this netcfg, in onos-log, it shows that the connection with the device was refused, and in onos-cli the device's available status is FALSE, here is the screenshot from onos-log:
I'm wondering if something is missing in the netcfg file.
I appreciate any advice or guidance from you.
Thanks.