cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1709
Views
0
Helpful
7
Replies

NETCONF NED is not working

Allase
Level 1
Level 1

I have an XRv Router 6.0.1 and I try to manage it with NETCONF. I take the Yang models from github and I build a NETCONF NED package. When I try to connect to the device I have an error message :

 

admin@ncs# devices device acme1 connect
result false
info Device acme1 does not advertise any known YANG modules

 

admin@ncs# show running-config devices device acme1
devices device acme1
address 10.1.1.254
port 830
ssh host-key ssh-rsa
key-data "AAAAB3NzaC1yc2EAAAADAQABAAAAgQCQrx4L6sr2bhNBqiwNSW9AN1LnhGqog3pFbRh+IzP+\ndoMplrNgmGmj6gs9vY7TjaDqesxvCNGnK2IihIX7FWsNkg1+NiArXPGAkHg9v8SnHPkQ9BM5\n+UlsxAhX30aiFh3/qTG64p5yzTVQ9TYUetHDJO6dZQNE6sT8nliQeVUcoQ=="
!
authgroup southbound-bob
device-type netconf ned-id acme-nc-1.0
state admin-state unlocked
!
admin@ncs# show packages package oper-status
PACKAGE
PROGRAM META FILE
CODE JAVA PYTHON BAD NCS PACKAGE PACKAGE CIRCULAR DATA LOAD ERROR
NAME UP ERROR UNINITIALIZED UNINITIALIZED VERSION NAME VERSION DEPENDENCY ERROR ERROR INFO
----------------------------------------------------------------------------------------------------------------------
acme-nc-1.0 X - - - - - - - - - -

 

7 Replies 7

rogaglia
Cisco Employee
Cisco Employee

Hi,

 

I would say that XR 6.0.1 is a very early release of NETCONF and I would recommend you to test a much newer version (like 6.6.3 for example).

 

In any case, if you want help here, you need to please provide the device traces as it seams that the problem is that your NED does not matches the YANG modules announced by the device.

 

Regards,

Roque

 

 

When I try to connect to the device I have the following traces

 

==> xpath.trace <==
9-May-2020::18:35:15.255 evaluating: /devices/device[name='acme1']/live-status/nm:netconf: not(../../ncs:capability) or ../../ncs:capability[ncs:uri='urn:ietf:params:netconf:capability:notification:1.0']
9-May-2020::18:35:15.260 get_next(/devices/device[name='acme1']/capability) = false
9-May-2020::18:35:15.261 result: /devices/device[name='acme1']/live-status/nm:netconf: true

==> devel.log <==
<DEBUG> 9-May-2020::18:35:15.354 ubuntu-nso ncs[3374]: ncs progress db=undefined usid=37 thandle=296: ncs: device acme1: connect: device connect...
<DEBUG> 9-May-2020::18:35:17.168 ubuntu-nso ncs[3374]: ncs progress db=undefined usid=37 thandle=296: ncs: device acme1: connect: device connect error

==> xpath.trace <==
9-May-2020::18:35:17.247 evaluating: /devices/device[name='acme1']/lsa-remote-node: derived-from-or-self(../device-type/netconf/ned-id, 'ned:lsa-netconf')
9-May-2020::18:35:17.249 get_elem(/devices/device[name='acme1']/device-type/netconf/ned-id) = acme-nc-1.0:acme-nc-1.0
9-May-2020::18:35:17.250 result: /devices/device[name='acme1']/lsa-remote-node: false

==> audit.log <==
<INFO> 9-May-2020::18:35:42.639 ubuntu-nso ncs[3374]: audit user: admin/37 CLI aborted
<INFO> 9-May-2020::18:35:51.378 ubuntu-nso ncs[3374]: audit user: admin/37 CLI 'devices device acme1 disconnect'
<INFO> 9-May-2020::18:35:51.570 ubuntu-nso ncs[3374]: audit user: admin/37 CLI done

Hi,

I'm a beginner in nso and I need help.

I have an XRv Router with an IOS XR v.6.0.1. I want to manage it witch netconf. What I understand that the first thing to do is to download the Yang models supported buy the devise. Should I identify the supported Yang models (show devices device router-name capabilities) and download them from github or should I download the models from the device ?

 

To build the NETCONF NED, should I use the command ncs-make-package (nso-development document paragraph "creating a netconf NED package") or should I use a NED Builder as expplained in this document : https://info.tail-f.com/hubfs/Whitepapers/Tail-f%20NSO%20interop%20User%20Guide%20V2%20Rev%20H%202019-11-20.pdf

 

I tried the two procedures but I have errors messages.

When I use Netconf NED Builder, I can download and select Yang Modules from devices but when I try to build the NED I have this error message :

admin@ncs(config)# netconf-ned-builder project netconf-xr 6.0 build-ned
Error: Copying YANG files for building failed

 

admin@ncs# show netconf-ned-builder project netconf-xr 6.0 module status
NAME REVISION STATUS
----------------------------------------------------------------------------
Cisco-IOS-XR-aaa-lib-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-aaa-locald-admin-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-aaa-locald-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-aaa-locald-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-aaa-protocol-radius-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-aaa-protocol-radius-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-aaa-tacacs-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-aaa-tacacs-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-bundlemgr-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-bundlemgr-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-cdp-cfg 2015-07-30 selected,downloaded
Cisco-IOS-XR-cdp-oper 2015-07-30 selected,downloaded
Cisco-IOS-XR-clns-isis-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-clns-isis-datatypes 2015-11-09 selected,downloaded
Cisco-IOS-XR-clns-isis-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-common-acl-datatypes 2015-11-09 selected,downloaded
Cisco-IOS-XR-config-mda-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-config-mibs-cfg 2015-01-07 selected,downloaded
Cisco-IOS-XR-controller-optics-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-controller-optics-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-controller-otu-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-controller-otu-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-crypto-sam-cfg 2015-01-07 selected,downloaded
Cisco-IOS-XR-crypto-sam-oper 2015-01-07 selected,downloaded
Cisco-IOS-XR-crypto-ssh-cfg 2015-07-30 selected,downloaded
Cisco-IOS-XR-crypto-ssh-oper 2015-06-02 selected,downloaded
Cisco-IOS-XR-drivers-media-eth-cfg 2015-07-30 selected,downloaded
Cisco-IOS-XR-drivers-media-eth-oper 2015-10-14 selected,downloaded
Cisco-IOS-XR-es-acl-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-es-acl-datatypes 2015-11-09 selected,downloaded
Cisco-IOS-XR-es-acl-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ethernet-cfm-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ethernet-cfm-datatypes 2015-11-09 selected,downloaded
Cisco-IOS-XR-ethernet-cfm-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ethernet-link-oam-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ethernet-link-oam-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ethernet-lldp-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ethernet-lldp-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-fib-common-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-flashmib-cfg 2015-12-15 selected,downloaded
Cisco-IOS-XR-ha-eem-cfg 2015-07-30 selected,downloaded
Cisco-IOS-XR-ha-eem-oper 2015-01-07 selected,downloaded
Cisco-IOS-XR-ha-eem-policy-oper 2016-02-05 selected,downloaded
Cisco-IOS-XR-icpe-infra-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-icpe-infra-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ifmgr-cfg 2015-07-30 selected,downloaded
Cisco-IOS-XR-ifmgr-oper 2015-07-30 selected,downloaded
Cisco-IOS-XR-infra-alarm-logger-cfg 2015-07-30 selected,downloaded
Cisco-IOS-XR-infra-alarm-logger-datatypes 2015-01-07 selected,downloaded
Cisco-IOS-XR-infra-alarm-logger-oper 2015-01-07 selected,downloaded
Cisco-IOS-XR-infra-ceredundancymib-cfg 2015-01-07 selected,downloaded
Cisco-IOS-XR-infra-dumper-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-infra-infra-clock-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-infra-infra-locale-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-infra-objmgr-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-infra-objmgr-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-infra-policymgr-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-infra-rcmd-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-infra-rmf-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-infra-rsi-cfg 2015-07-30 selected,downloaded
Cisco-IOS-XR-infra-rsi-oper 2015-01-07 selected,downloaded
Cisco-IOS-XR-infra-sla-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-infra-sla-datatypes 2015-11-09 selected,downloaded
Cisco-IOS-XR-infra-sla-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-infra-statsd-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-infra-statsd-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-infra-syslog-cfg 2015-10-08 selected,downloaded
Cisco-IOS-XR-infra-syslog-oper 2015-12-01 selected,downloaded
Cisco-IOS-XR-infra-systemmib-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-bfd-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-bfd-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-domain-cfg 2015-05-13 selected,downloaded
Cisco-IOS-XR-ip-domain-oper 2015-09-29 selected,downloaded
Cisco-IOS-XR-ip-iarm-datatypes 2015-01-07 selected,downloaded
Cisco-IOS-XR-ip-icmp-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-iep-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-iep-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-mobileip-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-ntp-admin-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-ntp-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-ntp-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-pfilter-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-pfilter-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-rib-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-rib-ipv4-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-rib-ipv6-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-rsvp-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-rsvp-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-static-cfg 2015-09-10 selected,downloaded
Cisco-IOS-XR-ip-tcp-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-tcp-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-udp-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ip-udp-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv4-acl-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv4-acl-datatypes 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv4-acl-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv4-arp-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv4-arp-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv4-bgp-cfg 2015-08-27 selected,downloaded
Cisco-IOS-XR-ipv4-bgp-datatypes 2015-08-27 selected,downloaded
Cisco-IOS-XR-ipv4-bgp-oper 2015-08-27 selected,downloaded
Cisco-IOS-XR-ipv4-hsrp-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv4-hsrp-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv4-io-cfg 2015-07-30 selected,downloaded
Cisco-IOS-XR-ipv4-io-oper 2015-10-20 selected,downloaded
Cisco-IOS-XR-ipv4-ma-cfg 2015-07-30 selected,downloaded
Cisco-IOS-XR-ipv4-ma-oper 2015-10-20 selected,downloaded
Cisco-IOS-XR-ipv4-ospf-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv4-ospf-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv4-telnet-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv4-telnet-mgmt-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv4-vrrp-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv4-vrrp-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv6-acl-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv6-acl-datatypes 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv6-acl-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv6-io-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv6-io-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv6-ma-cfg 2015-07-30 selected,downloaded
Cisco-IOS-XR-ipv6-ma-oper 2015-10-20 selected,downloaded
Cisco-IOS-XR-ipv6-nd-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv6-nd-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv6-new-dhcpv6d-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv6-ospfv3-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-ipv6-ospfv3-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-l2-eth-infra-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-l2-eth-infra-datatypes 2015-11-09 selected,downloaded
Cisco-IOS-XR-l2-eth-infra-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-l2vpn-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-l2vpn-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-lib-keychain-cfg 2015-07-30 selected,downloaded
Cisco-IOS-XR-lib-keychain-macsec-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-lib-keychain-oper 2015-01-07 selected,downloaded
Cisco-IOS-XR-lib-mpp-cfg 2015-07-30 selected,downloaded
Cisco-IOS-XR-lib-mpp-oper 2015-01-07 selected,downloaded
Cisco-IOS-XR-lpts-lib-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-lpts-pre-ifib-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-lpts-pre-ifib-oper 2016-02-22 selected,downloaded
Cisco-IOS-XR-man-netconf-cfg 2016-03-15 selected,downloaded
Cisco-IOS-XR-man-xml-ttyagent-cfg 2015-07-30 selected,downloaded
Cisco-IOS-XR-man-xml-ttyagent-oper 2015-07-30 selected,downloaded
Cisco-IOS-XR-mdrv-lib-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-mpls-ldp-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-mpls-ldp-cfg-datatypes 2015-11-09 selected,downloaded
Cisco-IOS-XR-mpls-ldp-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-mpls-ldp-oper-datatypes 2015-11-09 selected,downloaded
Cisco-IOS-XR-mpls-lsd-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-mpls-lsd-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-mpls-oam-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-mpls-static-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-mpls-static-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-mpls-te-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-mpls-te-datatypes 2015-11-09 selected,downloaded
Cisco-IOS-XR-mpls-te-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-mpls-vpn-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-nto-misc-shprocmem-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-parser-cfg 2015-06-02 selected,downloaded
Cisco-IOS-XR-pfi-im-cmd-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-plat-chas-invmgr-oper 2015-01-07 selected,downloaded
Cisco-IOS-XR-pmengine-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-pmengine-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-policy-repository-cfg 2015-08-27 selected,downloaded
Cisco-IOS-XR-policy-repository-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-qos-ma-oper 2015-01-07 selected,downloaded
Cisco-IOS-XR-rgmgr-cfg 2015-07-30 selected,downloaded
Cisco-IOS-XR-rgmgr-oper 2015-01-07 selected,downloaded
Cisco-IOS-XR-segment-routing-ms-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-segment-routing-ms-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-shellutil-cfg 2015-10-12 selected,downloaded
Cisco-IOS-XR-shellutil-filesystem-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-shellutil-oper 2015-01-07 selected,downloaded
Cisco-IOS-XR-snmp-agent-cfg 2015-10-27 selected,downloaded
Cisco-IOS-XR-snmp-agent-oper 2015-10-08 selected,downloaded
Cisco-IOS-XR-snmp-entitymib-cfg 2015-01-07 selected,downloaded
Cisco-IOS-XR-snmp-entstatemib-cfg 2015-07-27 selected,downloaded
Cisco-IOS-XR-snmp-frucontrolmib-cfg 2015-01-07 selected,downloaded
Cisco-IOS-XR-snmp-ifmib-cfg 2015-05-14 selected,downloaded
Cisco-IOS-XR-snmp-ifmib-oper 2015-01-07 selected,downloaded
Cisco-IOS-XR-snmp-syslogmib-cfg 2015-12-01 selected,downloaded
Cisco-IOS-XR-traffmon-netflow-cfg 2015-11-09 selected,downloaded
Cisco-IOS-XR-tty-management-cfg 2015-09-25 selected,downloaded
Cisco-IOS-XR-tty-management-cmd-oper 2015-11-09 selected,downloaded
Cisco-IOS-XR-tty-management-datatypes 2015-01-07 selected,downloaded
Cisco-IOS-XR-tty-management-oper 2015-01-07 selected,downloaded
Cisco-IOS-XR-tty-server-cfg 2015-07-30 selected,downloaded
Cisco-IOS-XR-tty-server-oper 2015-07-30 selected,downloaded
Cisco-IOS-XR-tty-vty-cfg 2015-01-07 selected,downloaded
Cisco-IOS-XR-types 2015-06-29 selected,downloaded
Cisco-IOS-XR-wd-cfg 2015-11-09 selected,downloaded
bgp 2015-05-15 selected,downloaded
bgp-multiprotocol 2015-05-15 selected,downloaded
bgp-operational 2015-05-15 selected,downloaded
bgp-policy 2015-05-15 selected,downloaded
bgp-types 2015-05-15 selected,downloaded
cisco-xr-bgp-deviations 2015-10-21 selected,downloaded
cisco-xr-bgp-policy-deviations 2015-10-21 selected,downloaded
cisco-xr-netconf-monitoring-deviations 2016-02-16 selected,downloaded
cisco-xr-routing-policy-deviations 2015-10-21 selected,downloaded
ietf-inet-types 2013-07-15 selected,downloaded
ietf-yang-types 2013-07-15 selected,downloaded
policy-types 2015-05-15 selected,downloaded
routing-policy 2015-05-15 selected,downloaded

admin@ncs#


admin@ncs(config)# netconf-ned-builder project netconf-xr 6.0 build-ned
Error: Copying YANG files for building failed

If the building of the NED fails, the errors from the build are stored as oper data in CDB. You can do

show netconf-ned-builder project netconf-xr 6.0 module build-error

to see the actual errors from the build.

/Ram

Hi,

There is no error details with this command :

admin@ncs# netconf-ned-builder project netconf-xr 6.0 build-ned overwrite            
Error: Copying YANG files for building failed
admin@ncs# show netconf-ned-builder project netconf-xr 6.0 module build-error 
% No entries found.
admin@ncs# show netconf-ned-builder project netconf-xr 6.0 build-error-info  
build-error-info "Copying YANG files for building failed"

I' m going step by step when selecting the modules and I found that the following modules must be deselected to succeed to compile

Cisco-IOS-XR-ha-eem-policy-oper
Cisco-IOS-XR-lpts-pre-ifib-oper
bgp
bgp-multiprotocol
bgp-operational
bgp-policy
bgp-types
cisco-xr-bgp-deviations
cisco-xr-bgp-policy-deviations
cisco-xr-netconf-monitoring-deviations
cisco-xr-routing-policy-deviations

When I compile the module it's ok but when I want to modify the device configuration to have the new ned associated with the device I have errors

admin@ncs# show netconf-ned-builder project netconf-xr 6.0 build-status    
build-status success
admin@ncs# packages reload 

>>> System upgrade is starting.
>>> Sessions in configure mode must exit to operational mode.
>>> No configuration changes can be performed until upgrade has completed.
>>> System upgrade has completed successfully.
reload-result {
    package drned-xmnr
    result true
}
reload-result {
    package netconf-xr-nc-6.0
    result true
}
admin@ncs(config)# devices device test1a device-type netconf ned-id netconf-xr-nc-6.0 
admin@ncs(config-device-test1a)# commit
Aborted: 'devices device test1a config exception choice3' : the 'must' expression "(compress and not(lower-limit) and not(higher-limit) and file-path and not(filename)) or (compress and lower-limit and higher-limit and file-path and filename)" failed

It seems that the errors comes from the IOS XR version 6.0.1 (old version). There are many bugs in Yang Modules. I deselect some Yang Modules but I still have other kinds of errors. I tried to build a Netconf NED for an IOS XE 16.9.5 and everything is ok.