stratum / fabric-tna

The SD-Fabric data plane
https://docs.sd-fabric.org/
31 stars 15 forks source link

errors for 【make netcfg ONOS_HOST=localhost】 #523

Closed xfyan0408 closed 2 years ago

xfyan0408 commented 2 years ago

When I use onos-2.7 docker images which runs correctly, but when I push tofino-netcfg.json to onos, the following error happens, does any one knows how to fix this problem?

saki@onos~/fabric-tna-main$ make netcfg ONOS_HOST=localhost
*** Pushing tofino-netcfg.json to ONOS at localhost...
curl --fail -sSL --user onos:rocks --noproxy localhost -X POST -H Content-Type:application/json \
        http://localhost:8181/onos/v1/network/configuration -d@./tofino-netcfg.json
curl: (22) The requested URL returned error: 400 Bad Request
Makefile:150: recipe for target 'netcfg' failed
make: *** [netcfg] Error 22