首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Opendaylight RESTful API (RESTCONF)

Opendaylight RESTful API (RESTCONF)
EN

Stack Overflow用户
提问于 2017-08-03 10:27:07
回答 2查看 1.8K关注 0票数 2

有人知道为什么我不能调用OpenDaylight提供的Restful,即使我已经安装了RESTCONF、l2switch、md模块。我从dlux得到的答复也是这样的:

数据丢失:由于相关的数据模型内容不存在,请求无法完成。-无法完成请求,因为相关的数据模型内容不存在在这里输入图像描述

如何完成这个“相关数据模型”?我确信我已经安装了md-sal & restconf-all &l2Switch-所有模块,那么我还需要什么?我用的是碳分配。谢谢大家!!YC

EN

回答 2

Stack Overflow用户

发布于 2017-10-09 23:12:44

我怀疑您正在发送无效的REST请求,试图访问不存在的数据。

NetVirt邮差收藏品中有一些示例REST请求。

票数 1
EN

Stack Overflow用户

发布于 2018-02-12 19:40:28

确保RESCONF流显式包含Ethertype和IP协议。

例如:

代码语言:javascript
复制
<?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地址节以匹配您的流。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45481550

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档