You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This compiles using the p4-bm2-ss binary but fails when run on the simple switch target:
$ sudo ../behavioral-model/targets/simple_switch/simple_switch test.json
Thrift port was not specified, will use 9090
Calling target program-options parser
terminate called after throwing an instance of 'std::runtime_error'
what(): in Json::Value::operator[](char const*)const: requires objectValue
I've also attached test.json for reference.
However, when I comment out keys.read(k, 32w1) or use keys.write(32k1, k) instead, simple_switch appears to be able to parse the JSON, getting as far as starting its thrift server.
Is this because theread capability is not supported in the behavioral model?
#145 may be a symptom of the same problem: some extern methods from v1model.p4 aren't supported by bmv2, even though they compile fine. There's a hash function call in #145, reproduced below:
In the attached p4 file, I'm invoking the register
read
function declared at v1model.p4:74 as follows:This compiles using the
p4-bm2-ss
binary but fails when run on the simple switch target:I've also attached
test.json
for reference.However, when I comment out
keys.read(k, 32w1)
or usekeys.write(32k1, k)
instead,simple_switch
appears to be able to parse the JSON, getting as far as starting its thrift server.Is this because the
read
capability is not supported in the behavioral model?test.json.txt
test.p4.txt
The text was updated successfully, but these errors were encountered: