Open llhotka opened 7 years ago
The following module triggers an error although it is IMO correct:
$ cat -n double-dots.yang 1 module double-dots { 2 3 yang-version "1.1"; 4 5 namespace "http://example.com/double-dots"; 6 7 prefix "dd"; 8 9 typedef typeF { 10 type leafref { 11 path "../../foo"; 12 } 13 } 14 15 container top { 16 leaf foo { 17 type int16; 18 } 19 list items { 20 key "quux"; 21 leaf quux { 22 type string; 23 } 24 leaf bar { 25 type typeF; 26 } 27 } 28 } 29 } $ pyang double-dots.yang double-dots.yang:11: error: the path for typeF at double-dots.yang:9 has too many ".."
Problem for us too
The following module triggers an error although it is IMO correct: