07-24-2018 08:15 AM
Hello,
I'm trying to receive route-maps from IOS XE and receiving only empty responses.
Text of script:
crud = CRUDService()
native = xe_native.Native()
routemap=native.RouteMap()
routemap.name="test2"
native.route_map.append(routemap)
routemap=crud.read(provider,routemap)
Route-maps on equipment:
hkg-core-1#sh run | s route-map
route-map test2 permit 1
route-map testdiscard deny 1
match ip address prefix-list test
route-map testdiscard permit 2
set community 1:1 2:2 3:3 additive
hkg-core-1#
Logs:
2018-07-24 16:49:16,331 - ydk - INFO - Executing CRUD read operation on [route-map[name='test2']]
2018-07-24 16:49:16,409 - ydk - INFO - =============Generating payload to send to device=============
2018-07-24 16:49:16,410 - ydk - INFO -
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<filter><route-map xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">
<name>test2</name>
</route-map></filter>
</get>
</rpc>
2018-07-24 16:49:16,410 - ydk - INFO -
2018-07-24 16:49:16,817 - ydk - INFO - =============Reply payload received from device=============
2018-07-24 16:49:16,817 - ydk - INFO -
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
<data/>
</rpc-reply>
2018-07-24 16:49:16,817 - ydk - INFO -
2018-07-24 16:49:16,817 - ydk - INFO - Found empty data tag
Versions:
ASR 1001-X 16.06.04
ydk (0.7.2)
ydk-models-cisco-ios-xe (16.8.1.post1)
ydk-models-ietf (0.1.5.post1)
ydk-models-openconfig (0.1.6)
07-24-2018 09:37 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide