如何访问 OpenDaylight Northbound REST API

How can I access the OpenDaylight Northbound REST API

我正在尝试使用 OpenDaylight 与使用 NETCONF 的网络设备进行通信。

我安装了所有 NETCONF 和 RESTCONF 功能的最新版本 (NEON)。我尝试了几种方式访问​​北向RESTCONFAPI。不幸的是,dlux 和 apiexplorer 似乎都无法在最新版本中使用。

当我尝试访问 http://localhost:8181/apidoc/explorer 或使用 API 以前版本的 restconf 时,出现 404 错误。

我确信 ODL 和 restconf 是 运行 正确的,因为我收到了对邮递员 GET 请求的答复,例如

<errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf">
    <error>
        <error-type>protocol</error-type>
        <error-tag>data-missing</error-tag>
        <error-message>Mount point does not exist.</error-message>
    </error>
</errors>

正确,不再维护或发布像 dlux 这样的 GUI 前端 OpenDaylight.

您显示的 GET 响应正在运行并告诉您您的设备 正在尝试检索不存在。装了吗什么是全 GET URL 你正在使用?

这是在我正在使用的测试环境中工作的一个:

curl -u admin:admin http://$ODL_SYSTEM_IP:8181/restconf/operational/network-topology:network-topology/topology/topology-netconf/node/$DEV_TYPE-netconf-scaling-device-10

但是,请注意 $DEV_TYPE-netconf-scaling-device-10 已经安装。

link http://localhost:8181/apidoc/explorer/index.html 成功了。我只需要在末尾添加 "index.html" 。现在它就像一个魅力。