I have leaves whose status are 'obsolete', but when I referred to these leaves via "uses" statement, pyang --max-status deprecated does not report any error. Other tools like confdc or yanglint do report the error
(1) output from yanglint
yanglint -V Cisco-IOS-XE-switch.yang
libyang err : Status "deprecated" of "" is in conflict with the "obsolete" status of parent "TwentyFiveGigabitEthernet". (/Cisco-IOS-XE-switch:{augment='/ios-sw:TwentyFiveGigabitEthernet'}/{uses='config-interface-switchport-grouping'})
YANGLINT[E]: Parsing schema module "Cisco-IOS-XE-switch.yang" failed.
I have leaves whose status are 'obsolete', but when I referred to these leaves via "uses" statement, pyang --max-status deprecated does not report any error. Other tools like confdc or yanglint do report the error (1) output from yanglint yanglint -V Cisco-IOS-XE-switch.yang libyang err : Status "deprecated" of "" is in conflict with the "obsolete" status of parent "TwentyFiveGigabitEthernet". (/Cisco-IOS-XE-switch:{augment='/ios-sw:TwentyFiveGigabitEthernet'}/{uses='config-interface-switchport-grouping'})
YANGLINT[E]: Parsing schema module "Cisco-IOS-XE-switch.yang" failed.
(2) output from pyang --max-status (devat) bash-4.4$ pyang --max-status deprecated Cisco-IOS-XE-switch.yang (devat) bash-4.4$ (devat) bash-4.4$ pyang --version pyang 2.5.0
Cisco-IOS-XE-switch.txt Please rename 'Cisco-IOS-XE-switch.txt' to 'Cisco-IOS-XE-switch.yang' for running pyang