Trying to use netconf-yang to provision production system ASR9K, when they try following configuration, three problem met. Want to check if ASR9K/IOS-XR support these configuration on yang model now.
Problem-1: does “service-policy” supported by YDK-API in IOS-XR 6.0.1.
Customer use YDK-Py sandbox to get VLL(VPWS) running configuration of ASR9K, the result is most of configuration could be successfully obtain except “service-policy input/output”, is it supported now., if not, roadmap.
<ASR9K CLI command>
interface Bundle-Ether10001.100 l2transport
description "Leaseline_Number--10013--20M/5M"
encapsulation dot1q 100
rewrite ingress tag pop 1 symmetric
mtu 1580
bundle load-balancing hash auto
service-policy input eco-x
service-policy output eco-x
!
l2vpn
xconnect group eco
p2p 10013
interface Bundle-Ether10001.100
neighbor ipv4 172.16.20.1 pw-id 10013
pw-class control-word
!
description "Leaseline_Number--10013--20M/5M"
!
!
YDK-Py polling result: (Removed..)
<YDK netconfservice.get_config>
:
Problem-2: continue the problem-1, while using YDK API to create a VLL circuit configuration. However, when the “p2p-description” was removed, the configuration could be created successfully without error. want to know the reason,
<?xml version="1.0"?>
<rpc-reply message-id="urn:uuid:eb2cb296-4d50-11e6-b485-08002722cb22" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<rpc-error>
<error-type>protocol</error-type>
<error-tag>bad-element</error-tag>
<error-severity>error</error-severity>
<error-path xmlns:ns1="http://cisco.com/ns/yang/Cisco-IOS-XR-l2vpn-cfg">ns1:l2vpn/ns1:database/ns1:xconnect-groups/ns1:xconnect-group[name = 'hinet-eco']/ns1:p2p-xconnects/ns1:p2p-xconnect[name = '10015']/ns1:p2p-description</error-path>
<error-info>
<bad-element>p2p-description</bad-element>
</error-info>
</rpc-error>
</rpc-reply>
Problem-3 : Can not delete VLL circuit configuration by using netconf-yang
*** follows are example configuration of VLL circuit.(Removed)
*** use the “problem3-Fail-nc-delete-p2p-ydk.py” to delete the “p2p 10016” circuit, the result was failed and got following error message:
vagrant@ydk-py:models$ ./Fail-nc-delete-p2p-ydk.py -v ssh://cisco:cisco@172.20.10.7
2016-07-21 08:13:28,611 - ydk.providers.NetconfServiceProvider - INFO - NetconfServiceProvider connected to 172.20.10.7:None using ssh
Traceback (most recent call last):
File "./Fail-nc-delete-p2p-ydk.py", line 91, in <module>
crud.delete(provider, l2vpn.database.xconnect_groups.xconnect_group.p2p_xconnects.p2p_xconnect)
AttributeError: 'YList' object has no attribute 'p2p_xconnects'
vagrant@ydk-py:models$
*** use the problem3-nc-delete-xc-group-ydk.py to delete whole xconnect group “hinet-eco”, the result is successful.
For problem 1, The service policy statement is not supported in XR 6.0.1, but will be in XR 6.1.1.
For problem 2, The regex for p2p-description leaf is "[\w\-\.:,_@#%$\+=\|;]+" (link for YANG model), so it is not compatible with value "\"223Y1006--10016--20M/5M\"", maybe it could be changed to some other value? Such as "223Y1006--10016--20M|5M".
For problem 3,The way to delete a list instance is to create an instance and extend the parent's list with it. There is an example here. Hope this helps.
Comments
0 comments
Please sign in to leave a comment.