Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save icarocamelo/aeeff07bddd378cfca97db12f4d7c83a to your computer and use it in GitHub Desktop.
Save icarocamelo/aeeff07bddd378cfca97db12f4d7c83a to your computer and use it in GitHub Desktop.
ubuntu@inocybevm:/opt/confd/bin[15:09]$ ./netconf-console-tcp -i
* Enter a NETCONF operation, end with an empty line
<get-tank-state xmlns="urn:opendaylight:car">
<car-id>1</car-id>
</get-tank-state>
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
<rpc-error>
<error-type>protocol</error-type>
<error-tag>unknown-namespace</error-tag>
<error-severity>error</error-severity>
<error-path>
/rpc
</error-path>
<error-info>
<bad-element>get-tank-state</bad-element>
<bad-namespace>urn:opendaylight:car</bad-namespace>
</error-info>
</rpc-error>
</rpc-reply>
* Enter a NETCONF operation, end with an empty line
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
<rpc-error>
<error-type>protocol</error-type>
<error-tag>unknown-element</error-tag>
<error-severity>error</error-severity>
<error-path>
/rpc
</error-path>
<error-info>
<bad-element>car-id</bad-element>
</error-info>
</rpc-error>
</rpc-reply>
* Enter a NETCONF operation, end with an empty line
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
<rpc-error>
<error-type>rpc</error-type>
<error-tag>malformed-message</error-tag>
<error-severity>error</error-severity>
<error-path>
/rpc
</error-path>
<error-message xml:lang="en">The end tag 'get-tank-state' does not match the start tag 'rpc'.</error-message>
<error-info>
<bad-element>rpc</bad-element>
</error-info>
</rpc-error>
</rpc-reply>
* Enter a NETCONF operation, end with an empty line
^CTraceback (most recent call last):
File "./netconf-console", line 879, in <module>
msg = read_msg()
File "./netconf-console", line 513, in read_msg
ln = sys.stdin.readline()
KeyboardInterrupt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment