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
encapsulation dot1q 100
rewrite ingress tag pop 1 symmetric
bundle load-balancing hash auto
service-policy input eco-x
service-policy output eco-x
xconnect group eco
neighbor ipv4 172.16.20.1 pw-id 10013
YDK-Py polling result: (Removed..)
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,
<rpc-reply message-id="urn:uuid:eb2cb296-4d50-11e6-b485-08002722cb22" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<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>
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:firstname.lastname@example.org
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>
AttributeError: 'YList' object has no attribute 'p2p_xconnects'
*** 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.
Please sign in to leave a comment.