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??
 .


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";
 .
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";>
                                <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".


So I change the url to 
"http://odl-ip:8080/restconf/operations/network-topology:network-topology/topology/topology-netconf/node/netconf:new-device/yang-ext:mount/get-bulk".And
 didn't change others.


This time error tag is "data-missing" and error message is "Mount point does 
not exist."
But I can find the node in DLUX website  and I sure it connected .




Is my rest api wrong ? Or my body data wrong?
I don't know how to fix it . And i can't find so useful message in google...




Please advise.




Thanks & regards,


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

Reply via email to