Thread Links | Date Links | ||||
---|---|---|---|---|---|
Thread Prev | Thread Next | Thread Index | Date Prev | Date Next | Date Index |
Hi Mark,
On Oct 30, 2018, at 4:59 PM, Mark Ellison <mark@xxxxxxxxxxxxxxxxxxx> wrote:
================The ieee802-dot1ab-lldp.yang module is flagged during yanglint validation:warn: Schema node "type" not found (deref(.)/../type) with context node "/ieee802-dot1ab-lldp:lldp/port/name".
warn: Schema node "type" not found (deref(.)/../type = 'iana-if-type:ethernetCsmacd' or deref(.)/../type) with context node "/ieee802-dot1ab-lldp:lldp/port/name".If we could review the following change, which appears to resolve the validation warning. However, I would like confirmation that the change will follow the intent of the model as designed. FYI- I did not see any other yang module under <github>/Yangmodels/standard/ that uses the deref() function.deref() is part of YANG 1.1 specification in RFC 7950.
Validation results for ieee802-dot1ab-lldp.yangWarning: Module 'iana-if-type' not usedieee802-dot1ab-lldp.yang:14.3: warning(1015): import not used
ieee802-dot1ab-lldp.yang:14: warning: imported module iana-if-type not usedieee802-dot1ab-lldp.yang:761: warning: Searching for "{}" in leaf or leaf-list statement "{}". Leaf or leaf-list statement does not contain any children
ieee802-dot1ab-lldp.yang:760: warning: The 'must' _expression_ should have a tailf:dependency. If is doesn't, it will be checked for every commit.
[ellison@c30 draft]$ diff ieee802-dot1ab-lldp.yang.ORIG ieee802-dot1ab-lldp-FIX.yang759,761c759,761< type if:interface-ref;< must "deref(.)/../type = 'ianaift:ethernetCsmacd'"< + " or deref(.)/../type = 'ianaift:ieee8023adLag'" {---> type if:interface-ref;> must "/if:interfaces/if:interface[if:name=current()]/if:type = 'ianaift:ethernetCsmacd'"> + " or /if:interfaces/if:interface[if:name=current()]/if:type = 'ianaift:ieee8023adLag'" {
================
To unsubscribe from the STDS-802-YANG list, click the following link: https://listserv.ieee.org/cgi-bin/wa?SUBED1=STDS-802-YANG&A=1