Second commit handles/ignores errors before successful commit message:
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:junos="http://xml.juniper.net/junos/12.3R8/junos">
rcmd: getaddrinfo: hostname nor servname provided, or not known
rcmd: getaddrinfo: hostname nor servname provided, or not known
rcmd: getaddrinfo: hostname nor servname provided, or not known
rcmd: getaddrinfo: hostname nor servname provided, or not known
<rpc-error>
<error-type>protocol</error-type>
<error-tag>operation-failed</error-tag>
<error-severity>warning</error-severity>
<error-message>
Could not connect to fpc-1 : Can't assign requested address
</error-message>
</rpc-error>
<rpc-error>
<error-type>protocol</error-type>
<error-tag>operation-failed</error-tag>
<error-severity>warning</error-severity>
<error-message>
Cannot connect to other RE, ignoring it
</error-message>
</rpc-error>
<commit-results>
<routing-engine junos:style="normal">
<name>fpc0</name>
<commit-check-success/>
<commit-success/>
</routing-engine>
</commit-results>
<ok/>
</rpc-reply>
After this changes it is possible to use Netconf by console when there is Avocent console server in the way (usage in ansible-junos-stdlib):
Second commit handles/ignores errors before successful commit message: