Hi all:

I am working on NETCONF in ODL. I used YangUI (in ODL Dlux Web) to POST a 
request to connect a device(notepeer).


I custom a api 
"http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mount/config:modules";,
 And API data:

```
<module xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
  <type 
xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">prefix:sal-netconf-connector</type>
  <name>new-netconf-device</name>
  <address 
xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">127.0.0.1</address>
  <port 
xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">830</port>
  <username 
xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">root</username>
  <password 
xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">root</password>
  <tcp-only 
xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">false</tcp-only>
  <event-executor 
xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
    <type 
xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty">prefix:netty-event-executor</type>
    <name>global-event-executor</name>
  </event-executor>
  <binding-registry 
xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
    <type 
xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">prefix:binding-broker-osgi-registry</type>
    <name>binding-osgi-broker</name>
  </binding-registry>
  <dom-registry 
xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
    <type 
xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">prefix:dom-broker-osgi-registry</type>
    <name>dom-broker</name>
  </dom-registry>
  <client-dispatcher 
xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
    <type 
xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:config:netconf">prefix:netconf-client-dispatcher</type>
    <name>global-netconf-dispatcher</name>
  </client-dispatcher>
  <processing-executor 
xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
    <type 
xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:threadpool">prefix:threadpool</type>
    <name>global-netconf-processing-executor</name>
  </processing-executor>
  <keepalive-executor 
xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
    <type 
xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:threadpool">prefix:scheduled-threadpool</type>
    <name>global-netconf-ssh-scheduled-executor</name>
  </keepalive-executor>
</module>

```


When i send POST request , error happen "Error sending request - : Data already 
exists for path: 
/(urn:opendaylight:params:xml:ns:yang:controller:config?revision=2013-04-05)modules".
 


How to fix it ?




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

Reply via email to