cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
778
Views
0
Helpful
1
Replies

IOS XE and route-map

IBMeR
Level 1
Level 1

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)

1 Reply 1

IBMeR
Level 1
Level 1
Reading of top level object also return empty answer:
crud = CRUDService()
native = xe_native.Native()
routemap=native.RouteMap()
routemap.name="test2"
native.route_map.append(routemap)
routemap=crud.read(provider,native)

2018-07-24 19:31:51,601 - ydk - INFO - Executing CRUD read operation on [Cisco-IOS-XE-native:native]
2018-07-24 19:31:51,711 - ydk - INFO - =============Generating payload to send to device=============
2018-07-24 19:31:51,711 - 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><native xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">
<route-map>
<name>test2</name>
</route-map>
</native></filter>
</get>
</rpc>
2018-07-24 19:31:51,711 - ydk - INFO -

2018-07-24 19:31:52,117 - ydk - INFO - =============Reply payload received from device=============
2018-07-24 19:31:52,117 - 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 19:31:52,118 - ydk - INFO -

2018-07-24 19:31:52,118 - ydk - INFO - Found empty data tag
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: