Opendaylight RESTful API(RESTCONF)
有人知道为什么我不能调用OpenDaylight提供的Restful API吗?即使我已经安装了RESTCONF、l2switch、md sal模块。我从dlux得到的回复通常是这样的: 数据缺失:无法完成请求,因为相关 数据模型内容不存在。-:无法完成请求 因为相关的数据模型内容不存在Opendaylight RESTful API(RESTCONF),rest,opendaylight,Rest,Opendaylight,有人知道为什么我不能调用OpenDaylight提供的Restful API吗?即使我已经安装了RESTCONF、l2switch、md sal模块。我从dlux得到的回复通常是这样的: 数据缺失:无法完成请求,因为相关 数据模型内容不存在。-:无法完成请求 因为相关的数据模型内容不存在 如何完成此“相关数据模型”??我确信我已经安装了md sal&restconf all&l2switch all模块,那么我还需要什么呢?我使用碳分布。谢谢大家!!YC我怀疑您发送的REST请求无效,试图访问不
如何完成此“相关数据模型”??我确信我已经安装了md sal&restconf all&l2switch all模块,那么我还需要什么呢?我使用碳分布。谢谢大家!!YC我怀疑您发送的REST请求无效,试图访问不存在的数据
中有示例REST请求。确保您的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>
0
1.
0
256
2048
192.168.11.0/24
192.168.11.0/24
6.
0
0
10
0
流向表的流程指令
200
确保更改指令和ipv4地址节以匹配您的流量。您能给出您正在进行的确切REST呼叫和ODL的确切版本吗?