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

Cisco-IOS-XR-ipv4-smiap-cfg module: Error "mandatory leaf missing from request" but configuration of leaf is given #596

Closed
ghost opened this issue Oct 9, 2017 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Oct 9, 2017

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

Expected Behavior

Configurations for IPv4 virtual address for management interfaces should reply with ok

Current Behavior

No ok in reply received from device. (RPC reply as mandatory leaf missing from request)

Steps to Reproduce

  1. Configure the IPv4 virtual address for management interfaces.
  2. Received RPC error as "mandatory leaf missing from request"

Your Script

        obj_smiap = ipv4_smiap_cfg.Ipv4Virtual()
        obj_smiap.use_as_source_address = Empty()
        obj_vrf = obj_smiap.Vrfs.Vrf() 
        obj_vrf.vrf_name = "default"
        pdb.set_trace()
        obj_address = obj_vrf.Address()
        obj_vrf.address = obj_address
        obj_address.address = "192.168.10.23/8"
        obj_address.netmask = 24
        obj_smiap.vrfs.vrf.append(obj_vrf)
        crud_service.create(provider, obj_smiap)

Logs

ydk.errors.YPYServiceProviderError:  <?xml version="1.0"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <rpc-error>
    <error-type>protocol</error-type>
    <error-tag>missing-element</error-tag>
    <error-severity>error</error-severity>
    <error-path xmlns:ns1="http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-smiap-cfg">ns1:ipv4-virtual/ns1:vrfs/ns1:vrf[vrf-name = 'default']/ns1:address/ns1:address</error-path>
    <error-info>
      <bad-element>address</bad-element>
      <error-message>mandatory leaf missing from request, please add it and try again.</error-message>
    </error-info>
  </rpc-error>
</rpc-reply>

Full logs are attached in file: ipv4_smiap.log

System Information

Python Version 2.7
Route Operating System: CISCO-IOS-XR
ipv4_smiap.log

@ghost ghost changed the title Error:"mandatory leaf missing from request" but configuration of leaf is given Cisco-IOS-XR-ipv4-smiap-cfg.yang: Error "mandatory leaf missing from request" but configuration of leaf is given Oct 9, 2017
@ghost ghost changed the title Cisco-IOS-XR-ipv4-smiap-cfg.yang: Error "mandatory leaf missing from request" but configuration of leaf is given Cisco-IOS-XR-ipv4-smiap-cfg module: Error "mandatory leaf missing from request" but configuration of leaf is given Oct 9, 2017
@ghost ghost added the bug label Oct 9, 2017
@ghost
Copy link

ghost commented Oct 12, 2017

Similar to #598 (same model, different container). See closing comments for #598

@ghost ghost closed this as completed Oct 12, 2017
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