netopeer2
netopeer2 copied to clipboard
edit-config receive error **Unknown element "running"**
Hi Please Advise, get-config working great, and I can receive system location from ietf-system.yang BUT when I send the edit-config ( directly to the "running") I have got Unknown element "running" the requests and responses of both are below.
Thanks, Zvika
edit-config request
<?xml version="1.0" encoding="utf-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
<edit-config>
<target>
<running/>
</target>
<config>
<system xmlns="urn:ietf:params:xml:ns:yang:ietf-system">
<location>Heeloa2!!!</location>
</system>
</config>
</edit-config>
</rpc>
edit-config response
<?xml version="1.0" encoding="utf-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
<rpc-error>
<error-type>application</error-type>
<error-tag>operation-failed</error-tag>
<error-severity>error</error-severity>
<error-path>/ietf-netconf:edit-config/target/running</error-path>
<error-message xml:lang="en">Unknown element "running".</error-message>
</rpc-error>
<rpc-error>
<error-type>application</error-type>
<error-tag>operation-failed</error-tag>
<error-severity>error</error-severity>
<error-path>/ietf-netconf:edit-config/target/running</error-path>
<error-message xml:lang="en">Unknown element "running".</error-message>
</rpc-error>
</rpc-reply>
get-config request
<get-config>
<source>
<running/>
</source>
<filter type="subtree">
<sys:system xmlns:sys="urn:ietf:params:xml:ns:yang:ietf-system">
<sys:location/>
</sys:system>
</filter>
</get-config>
get-config response
<?xml version="1.0" encoding="utf-8"?>
<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<system xmlns="urn:ietf:params:xml:ns:yang:ietf-system">
<location>Heeloa!!!</location>
</system>
</data>
Most likely you do not have writable-running feature enabled in ietf-netconf YANG.