我正在尝试使用OpenDaylight与网络设备进行通信,使用NETCONF。
我有最新的版本(霓虹灯)与所有NETCONF和RESTCONF的功能安装。我尝试过几种访问RESTCONF北行API的方法。不幸的是,dlux和apiexplorer似乎都无法在最新的版本中工作。
当我试图从以前版本的API中访问http://localhost:8181/apidoc/explorer或使用restconf时,我会得到404个错误。
我确信ODL和restconf运行正常,因为我收到了对我的邮递员请求的答复,比如
<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>发布于 2019-06-14 06:30:26
链接http://localhost:8181/apidoc/explorer/index.html做到了这一点。我只需要在结尾加上"index.html“。现在它就像一种魅力。
发布于 2019-06-13 19:08:29
正确的是,像dlux这样的GUI前端不再使用OpenDaylight维护或发布。
显示的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-缩放-设备-10已经安装.
https://stackoverflow.com/questions/56583499
复制相似问题