Skip to content
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

Executor Service is encoding empty containers with no data #590

Closed
ghost opened this issue Oct 5, 2017 · 0 comments
Closed

Executor Service is encoding empty containers with no data #590

ghost opened this issue Oct 5, 2017 · 0 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 5, 2017

Issue tracker is ONLY used for reporting bugs. Please use the YDK Community for any support issues.

Expected Behavior

Should only encode containers with some data

Current Behavior

Encoding containers with no data. For example, <ipv6/> is showing up below

Your Script

self.ping = Cisco_IOS_XR_ping_act.Ping()
self.input = self.ping.Input()
self.destination = self.input.Destination()
self.ping.input.destination.destination = '1.2.3.4'
self.ping.input.destination.timeout = 1
self.execn_rpc = ExecutorService().execute_rpc(self.provider,self.ping)
 

Logs

Enable logging and post the logs below


rpc:
 
libnetconf TRACE: Missing message-id in rpc.
libnetconf TRACE: Writing message (session 1806145929): <?xml version="1.0"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="7">
  <ping xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ping-act">
    <destination>
      <destination>10.105.230.160</destination>
      <timeout>1</timeout>
    </destination>
    <ipv6/>
  </ping>
</rpc>
 
libnetconf TRACE: Received message (session 1806145929): <?xml version="1.0"?>
<rpc-reply message-id="7" 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-message xml:lang="en">'IPv6PingTrace' detected the 'warning' condition 'Bad hostname or IPv6 address or protocol not running'</error-message>
</rpc-error>
</rpc-reply>
 

System Information

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants