You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yan@ubuntu-yan:~/ydk-workspace/ydk-gen$ python scripts/tests/test_attribute_error.py ssh://admin:[email protected]:830 -v
2019-02-12 16:26:58,012 - ydk - INFO - Path where models are to be downloaded: /home/yan/.ydk/10.30.110.84
2019-02-12 16:26:58,033 - ydk - INFO - Connected to 10.30.110.84 on port 830 using ssh with timeout of -1
2019-02-12 16:26:58,358 - ydk - INFO - Executing CRUD read operation on [Cisco-IOS-XR-ipv4-ospf-cfg:ospf, Cisco-IOS-XR-ipv4-bgp-cfg:bgp]
2019-02-12 16:26:58,358 - ydk - INFO - Executing 'get' RPC on [Cisco-IOS-XR-ipv4-ospf-cfg:ospf, Cisco-IOS-XR-ipv4-bgp-cfg:bgp]
2019-02-12 16:26:58,420 - ydk - INFO - ============= Generated RPC to send to device =============
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><get xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<filter><ospf xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-ospf-cfg"/><bgp xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-bgp-cfg"/></filter>
</get>
</rpc>
2019-02-12 16:26:58,681 - ydk - INFO - ============= Reply RPC received from device =============
<?xml version="1.0"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<data/>
</rpc-reply>
2019-02-12 16:26:58,681 - ydk - INFO - Found empty data tag
Entities in Config: []
2019-02-12 16:26:58,682 - ydk - INFO - Disconnected from device
yan@ubuntu-yan:~/ydk-workspace/ydk-gen$
In the test both configurations of OSPF and BGP is missing in the device. As a result the Config collection is empty.
Issue tracker is ONLY used for reporting bugs. Please use the YDK Community for any support issues.
Expected Behavior
Scripts with Config/Filter in CRUD read/read_config should works well whether configuration exists or not.
Current Behavior
There may be a bug when using Config/Filter in CRUD read/read_config .
If I have both OSPF and BGP configuration in my netconf server(IOS-XRv 9000), the script works well,
but If I just have OSPF configuration in my netconf server, no BGP configuration, the script will raise a AttributeError.
Steps to Reproduce
Please refer to : https://community.cisco.com/t5/yang-development-kit-ydk/attributeerror-config-object-has-no-attribute-logger/m-p/3788454
Your Script
Logs
Enable logging and post the logs below
System Information
The text was updated successfully, but these errors were encountered: