+ netconf-dev

> On Sep 30, 2016, at 2:29 AM, 陈卓文 <[email protected]> wrote:
> 
> Hi all,
>     
> I am a student working on NETCONF. And I had connected Netconf 
> device(netopeer) to ODL according the tutorial 
> “https://wiki.opendaylight.org/view/OpenDaylight_Controller:Config:Examples:Netconf
>  
> <https://wiki.opendaylight.org/view/OpenDaylight_Controller:Config:Examples:Netconf>”
>  .
> 
> I can find the NODE in DLUX Nodes website. The NODE-ID is new-device. 
> 
> And then, I want to test how to config Netopeer by odl api . 
> 
> I sent a post request via rest and it url is 
> "http://odl-ip:8080/restconf/operations/network-topology:network-topology/topology/topology-netconf/node/new-device/yang-ext:mount/get-bulk
>  
> <http://odl-ip:8080/restconf/operations/network-topology:network-topology/topology/topology-netconf/node/new-device/yang-ext:mount/get-bulk>"
>  .
> And body is
> """
> <?xml version="1.0" encoding="utf-8"?>
> <rpc message-id="100" xmls="urn:ietf:params:xml:ns:netconf:base:1.0">
>       <get-bulk>
>               <filter type="subtree">
>                       <top xmls="http://www.h3c.com/netconf/data:1.0 
> <http://www.h3c.com/netconf/data:1.0>">
>                               <Ifmgr>
>                                       <Interfaces>
>                                               <Interface/>
>                                       </Interfaces>
>                               </Ifmgr>
>                       </top>
>               </filter>
>       </get-bulk>
> </rpc>
> """
> 
> Errorr occured . Error tag is "invalid-value", and error message is "First 
> node after mount point in URI has to be in format "moduleName:nodeName”.

That would mean that the URL is correct but the way you’re trying to access 
your node within YANG is incorrect., e.g. should be in the format 
<moduleName>:<nodeName>.
So what you’re missing is ${module-name} in the following URL:
> http://odl-ip:8080/restconf/operations/network-topology:network-topology/topology/topology-netconf/node/new-device/yang-ext:mount/$
>  
> <http://odl-ip:8080/restconf/operations/network-topology:network-topology/topology/topology-netconf/node/new-device/yang-ext:mount/$>{moduleName}:get-bulk
>  
> <http://odl-ip:8080/restconf/operations/network-topology:network-topology/topology/topology-netconf/node/new-device/yang-ext:mount/get-bulk>
Thanks,
Alexis

_______________________________________________
Discuss mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/discuss

Reply via email to