-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
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
Replace operation #350
Comments
My reflections:
I think the above fails becauseI I think ip is a container (is it?) and more than one container is invalid.
I need to understand what YANG ipv4 is? If it is a list, the delete operation is kind of strange. What happens in this case: is a list instance deleted, all instances deleted, or none deleted? |
Do you mean the above usage is invalid? |
No, I just assumed it was a list. The expected behavior is different. |
I have looked at it again now. |
Hi Olof,
We are trying to classify two phenomenons that might have impact on our customers:
<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <target> <candidate/> </target> <default-operation>merge</default-operation> <config> <ip xmlns="http://siklu.com/yang/tg/ip"> <ipv4 nc:operation="delete"/> </ip> <ip xmlns="http://siklu.com/yang/tg/ip"> <ipv4> <address> <ip>10.60.137.3</ip> <prefix-length>24</prefix-length> </address> <default-gateway>10.60.137.1</default-gateway> </ipv4> </ip> </config> </edit-config>
Error:
<?xml version="1.0" encoding="utf-8"?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="51"> <rpc-error> <error-type>protocol</error-type> <error-tag>operation-failed</error-tag> <error-app-tag>too-many-elements</error-app-tag> <error-severity>error</error-severity> <error-path>/rpc/edit-config/config/ip</error-path> </rpc-error> </rpc-reply>
<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <target> <candidate/> </target> <default-operation>merge</default-operation> <config> <ip xmlns="http://siklu.com/yang/tg/ip"> <ipv4 nc:operation="delete"/> <ipv4> <address> <ip>10.60.137.3</ip> <prefix-length>24</prefix-length> </address> <default-gateway>10.60.137.1</default-gateway> </ipv4> </ip> </config> </edit-config>
Here is the valid RPC to replace IP settings:
<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <target> <candidate/> </target> <config> <ip xmlns="http://siklu.com/yang/tg/ip"> <ipv4 nc:operation="replace"> <address> <ip>10.60.137.3</ip> <prefix-length>24</prefix-length> </address> <default-gateway>10.60.137.1</default-gateway> </ipv4> </ip> </config> </edit-config>
While it's obviously not a proper way to use consequent delete and merge operations (instead of replace) in the same RPC to update IP settings, still our questions are:
Whether the error described in the 1st bullet is correct?
The absence of the error described in the second bullet is a normal behavior?
please comment
The text was updated successfully, but these errors were encountered: