File: modextleafref.yang

package info (click to toggle)
libyang 4.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 10,788 kB
  • sloc: ansic: 127,487; xml: 671; sh: 442; tcl: 318; makefile: 19
file content (24 lines) | stat: -rw-r--r-- 330 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module modextleafref {
  namespace "urn:yanglint:modextleafref";
  prefix mel;

  list ls {
    key k;
    leaf k {
      type string;
    }
    leaf lf {
      type uint8;
    }
  }
  leaf lfr {
    type leafref {
      path "../ls/k";
    }
  }
  leaf lfrderef {
    type leafref {
      path "deref(../lfr)/../lf";
    }
  }
}