We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
my db:
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"> <interface> <name>interface-1</name> <type>ianaift:starLan</type> <enabled>true</enabled> </interface> <interface> <name>interface-2</name> <type>ianaift:starLan</type> <enabled>true</enabled> </interface> </interfaces>
I try to filter the data with the procedure -(like the example in the link)
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><get-config><source><running/></source><filter type="subtree"><interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"><interface><name>interface-1</name></interface></interfaces></filter></get-config></rpc>]]>]]>
The reply was --
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><data><interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"><interface><name>interface-1</name><type>ianaift:starLan</type><enabled>true</enabled></interface><interface><name>interface-2</name><type>ianaift:starLan</type><enabled>true</enabled></interface></interfaces></data></rpc-reply>
I expect to the reply
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><data><interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"><interface><name>interface-1</name><type>ianaift:starLan</type><enabled>true</enabled></interface></interfaces></data></rpc-reply>
I did something wrong?
The text was updated successfully, but these errors were encountered:
Yes, I recommend the use of filter type xpath capability (rfc 6241 sec 8.9). In this example, for example the following would work:
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><get-config><source><candidate/></source><filter type="xpath" select="/if:interfaces/if:interface[if:name='1']" xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces"/></get-config></rpc>]]>]]>
That said, subtrees should also work, therefore I file this as a bug.
Sorry, something went wrong.
[filter in netconf - one specific entry #100](#100)
ba2f407
Should be fixed, but is slower than XPATH and does not support namespaces currently. Please verify.
No branches or pull requests
my db:
I try to filter the data with the procedure -(like the example in the link)
The reply was --
I expect to the reply
I did something wrong?
The text was updated successfully, but these errors were encountered: