10-05-2017 06:51 PM - edited 03-01-2019 04:00 AM
Hi
Built the netconf NED for latest SROS 15.0R4 using yang models provided by Nokia. Attempting to sync-from the device gives an error, but using Pioneer get-config works. I investigated the raw netconf traces, and the issue seems to be due to following:
Pioneer get-config sends the following message without using any filter, and device returns configs properly.
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<get-config><source><running/></source></get-config>
</rpc>
...but sync-from command sends the following message to which Nokia router returns an error.
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<get-config><source><running/></source><filter><configure xmlns="urn:alcatel-lucent.com:sros:ns:yang:conf-r13"></configure></filter></get-config></rpc>
Nokia device returns:
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<rpc-error>
<error-type>application</error-type>
<error-tag>operation-failed</error-tag>
<error-severity>error</error-severity>
<error-info>
<err-element>get-config</err-element>
</error-info>
<error-message>
command failed - 'configure'
MINOR: CLI Command not allowed for this user.
</error-message>
</rpc-error>
</rpc-reply>
Is this because of errors in Nokia yang? but what makes NSO to pick that yang model as a "filter" for its get-config request?
Thanks
Solved! Go to Solution.
10-09-2017 12:57 AM
Not necessarily in the YANG. I'd say there is a problem in their NETCONF implementation.
If you have relevant contacts at Nokia/ALU, I'd be happy get into the conversation.
10-09-2017 12:57 AM
Not necessarily in the YANG. I'd say there is a problem in their NETCONF implementation.
If you have relevant contacts at Nokia/ALU, I'd be happy get into the conversation.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide