有人知道为什么我不能调用OpenDaylight提供的Restful,即使我已经安装了RESTCONF、l2switch、md模块。我从dlux得到的答复也是这样的:
数据丢失:由于相关的数据模型内容不存在,请求无法完成。-无法完成请求,因为相关的数据模型内容不存在在这里输入图像描述
如何完成这个“相关数据模型”?我确信我已经安装了md-sal & restconf-all &l2Switch-所有模块,那么我还需要什么?我用的是碳分配。谢谢大家!!YC
发布于 2017-10-09 23:12:44
我怀疑您正在发送无效的REST请求,试图访问不存在的数据。
在NetVirt邮差收藏品中有一些示例REST请求。
发布于 2018-02-12 19:40:28
确保RESCONF流显式包含Ethertype和IP协议。
例如:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow xmlns="urn:opendaylight:flow:inventory">
<instructions>
<instruction>
<order>0</order>
<go-to-table>
<table_id>1</table_id>
</go-to-table>
</instruction>
</instructions>
<table_id>0</table_id>
<id>256</id>
<match>
<ethernet-match>
<ethernet-type>
<type>2048</type>
</ethernet-type>
</ethernet-match>
<ipv4-source>192.168.11.0/24</ipv4-source>
<ipv4-destination>192.168.11.0/24</ipv4-destination>
<ip-match>
<ip-protocol>6</ip-protocol>
</ip-match>
<in-port>0</in-port>
</match>
<hard-timeout>0</hard-timeout>
<cookie>10</cookie>
<idle-timeout>0</idle-timeout>
<flow-name>flow-instruction-go-to-table</flow-name>
<priority>200</priority>
</flow>确保更改指令和ipv4地址节以匹配您的流。
https://stackoverflow.com/questions/45481550
复制相似问题