You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Create
GetConfig conf = new GetConfig(handler.getSession(), Datastore.running);
conf.setXPathFilter(" /filter");
the xml output is:
<?xml version="1.0" encoding="UTF-8"?><nc:rpc
xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<nc:get-config>
<nc:filter nc:select=" /filter" nc:type="xpath"/>
<nc:source>
<nc:running/>
</nc:source>
</nc:get-config>
</nc:rpc>
response is:
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"
xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"><rpc-error>
<error-type>protocol</error-type>
<error-tag>missing-element</error-tag>
<error-severity>error</error-severity>
<error-path>
/rpc/get-config/source
</error-path><error-info><bad-element>source</bad-element>
</error-info>
</rpc-error>
</rpc-reply>
The generated msg sent should be (filter is at the end of the message)
<?xml version="1.0" encoding="UTF-8"?><nc:rpc
xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<nc:get-config>
<nc:source>
<nc:running/>
</nc:source>
<nc:filter nc:select=" /filter" nc:type="xpath"/>
</nc:get-config>
</nc:rpc>
Original issue reported on code.google.com by [email protected] on 5 Aug 2013 at 9:35
The text was updated successfully, but these errors were encountered:
actually fixed it maybe you should update the code (GetConfig.java ctor - order
change)
filter = operation.getInput().linkAnyxml(
operation.createAnyxml("filter"));
sou = operation.getInput().linkContainer(
operation.createContainer("source"));
changed to
sou = operation.getInput().linkContainer(
operation.createContainer("source"));
filter = operation.getInput().linkAnyxml(
operation.createAnyxml("filter"));
Original issue reported on code.google.com by
[email protected]
on 5 Aug 2013 at 9:35The text was updated successfully, but these errors were encountered: